Hi Gourav
Hope you've found a solution by now.
If not, can you please share your script and maybe a screen shot of where you're stuck.
Transaction may work, but have you considered a BAPI? Using Direct for these "enjoy tcodes" is sometimes a better choice.
Please let us know.
Sigrid
------------------------------
Sigrid Kok
Precisely Software Inc.
------------------------------