Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

SXPG_COMMAND_EXECUTE

Former Member
0 Likes
947

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.

7 REPLIES 7
Read only

kiran_k8
Active Contributor
0 Likes
862

Dude,there is FUNCTION MODULE DOCUMENTATION available for this.

Read only

kesavadas_thekkillath
Active Contributor
0 Likes
862

In windows the FM is not working

It will work , make sure that you have changed the unix command to windows command ( DOS Command ).

Read only

Former Member
0 Likes
862

Hi,

This FM is used to call Unix (System level) commands from SAP.

Thanks,

Best regards,

Prashant

Read only

0 Likes
862

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.

Read only

0 Likes
862

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.

Read only

SuhaSaha
Product and Topic Expert
Product and Topic Expert
0 Likes
862

Hello,

I think the corresponding command for Windows NT would be 'cd'. Google it out !!

Also have a look at this thread: .

BR,

Suhas

Read only

0 Likes
862

hi,

I did not understand . Could you please explain?

Regards,

Pratapvdl