Application Development 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: 

Executing Operating system commands in ABAP

Former Member
0 Kudos
87

Hi

I want to execute a unix operating system command in an ABAP program. I remember seeing code which executes an operating system command. Could any please let me know about that code?

Thank You.

Eswar

1 ACCEPTED SOLUTION

Former Member
0 Kudos
38

hi,

use FM 'WS_EXECITE'.

4 REPLIES 4

Former Member
0 Kudos
39

hi,

use FM 'WS_EXECITE'.

sreeramkumar_madisetty
Active Contributor
0 Kudos
38

Hi

U can use the FM

WS_EXECUTE.

Regards,

Sreeram

Former Member
0 Kudos
38

Hi

refer this thread

https://forums.sdn.sap.com/click.jspa?searchID=2425063&messageID=3181266

Reward points if useful..

Regards

Nilesh

kostas_tsioubris
Contributor
0 Kudos
38

Hi,

you can try something like this.


data:cmd(254) type c.
data: RESULT(255) OCCURS 100 WITH HEADER LINE. 
            cmd = 'ls'.
** Execute command
  REFRESH RESULT.
  CALL 'SYSTEM' ID 'COMMAND' FIELD CMD
                ID 'TAB'     FIELD RESULT-*SYS*.

Kostas