Hi Aniruddha,
what is the content of MSG in this case?
If the issue occurs also on your DEV system, then you can code a
BREAK-POINT MSG.
code line after your OPEN DATSET code line. The content of MSG in background mode will be shown in System log (SM21) then.
Regards,
Klaus