Wednesday, August 27, 2014

ABAP TIP System Command

ABAP System Command

There is need to execute the system command at OS level. You can apply this by using below statement.

CALL 'SYSTEM' ID 'COMMAND' field lv_cmd
             
ID 'TAB' field lt_result.

There is another more efficient way to use system command by calling function SXPG_CALL_SYSTEM.
First you need to create system command with t-code:sm69 to use this at a abap program.
For example, lets exercise with the command of LS which can list the all command list in UNIX system.

T-CODE:SM69, click the create button.





No comments:

Post a Comment