In reply to rohitkumar.b:
I knew that was going to be your next question. SystemVerilog identifiers are not dynamically constructed strings. They must be resolved as you compile the source code. You could create a text macro to help you, but you still would need to repeat the line.
`define config_vif(N) \
uvm_config_db #(virtual input_if)::set(null,`"uvm_test_top.top_env.env[``N``]`","pcm_if_SCAN_ENABLE",PCM_top.DUT1.pcmif_``N``_SCAN_ENABLE);
`config_vif(1)
`config_vif(2)
`config_vif(3)
`config_vif(4)