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

Executing Operating system commands in ABAP

Former Member
0 Kudos
411

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
Read only

Former Member
0 Kudos
362

hi,

use FM 'WS_EXECITE'.

4 REPLIES 4
Read only

Former Member
0 Kudos
363

hi,

use FM 'WS_EXECITE'.

Read only

sreeramkumar_madisetty
Active Contributor
0 Kudos
362

Hi

U can use the FM

WS_EXECUTE.

Regards,

Sreeram

Read only

Former Member
0 Kudos
362

Hi

refer this thread

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

Reward points if useful..

Regards

Nilesh

Read only

kostas_tsioubris
Contributor
0 Kudos
362

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