‎2010 Sep 24 9:55 AM
hi,
we are doing migration from Uinx to Windows.In Unix the FM SXPG_COMMAND_EXECUTE is working fine.In windows the FM is not working .I want to know what does SXPG_COMMAND_EXECUTE do? is the FM create a file?
Regards,
Pratapvdl.
‎2010 Sep 24 9:58 AM
Dude,there is FUNCTION MODULE DOCUMENTATION available for this.
‎2010 Sep 24 12:10 PM
In windows the FM is not working
It will work , make sure that you have changed the unix command to windows command ( DOS Command ).
‎2010 Sep 24 12:36 PM
Hi,
This FM is used to call Unix (System level) commands from SAP.
Thanks,
Best regards,
Prashant
‎2010 Sep 24 12:56 PM
Hi,
I am using this function module for Unix as well as windows.
However in commandname interface OS command being passed, same is defferent for UNIX and Windows.
For Windows you need to create OS command as below,
Goto SM49
in operating system command give your full path till batch file or file to be executed.
eg. E:\encrypt\file.bat
Whilw for UNIX
In operating system command give your file format
eg. ksh (here it can't be bat)
then in Parameters for operating system comman give full path
eg /usr/sap/trans/encrypt/file.ksh
Hope this will help.
‎2010 Sep 30 6:32 AM
Hi
In SM69 Operating System was SunOS and command name was mv, we changed the Operating System as Windows NT and command name as move .Should i add extra in SM69?. Problem is :data is not moving from one folder another folder.
Regards,
Pratapvdl.
‎2010 Sep 30 6:36 AM
Hello,
I think the corresponding command for Windows NT would be 'cd'. Google it out !!
Also have a look at this thread: .
BR,
Suhas
‎2010 Sep 30 8:34 AM
hi,
I did not understand . Could you please explain?
Regards,
Pratapvdl