‎2009 Jun 04 7:57 AM
Hi folks,
using the transaction code sm69 it is possible to create an SAP command that's executing an operating system command.
Is it possible to integrate such an SAP command into our ABAP programs ?
How would we do so ?
Regards
Thomas
‎2009 Jun 04 7:59 AM
‎2009 Jun 04 7:59 AM
‎2009 Jun 04 1:04 PM
‎2009 Jun 04 7:08 PM
Hello Thomas,
We have an easier way of achieving this without declaring a command in SM69.
Try the below piece of code:
DATA: command LIKE rs37a-line.
DATA: BEGIN OF tabl OCCURS 0,
line(2000),
END OF tabl.
command = 'ls -l'.
CALL 'SYSTEM' ID 'COMMAND' FIELD command
ID 'TAB' FIELD tabl-*sys*.Replace the string in the variable 'comand' with any UNIX command.
Regards
Sabu
‎2009 Jun 16 8:40 AM
That sounds good,
we're going to check this out as well.
Thanks a lot !