The following example explain how to execute operating system commands with abap statements :
REPORT zexec_cmd.
*----------------------------------------------------------
*
* www.developerpages.gr
*
* execute operating system command
*----------------------------------------------------------
data : v_command(255).
DATA: BEGIN OF TABL OCCURS 0,
LINE(255),
END OF TABL.
v_command = 'dir c:\'. " Application Server directory
clear TABL. refresh TABL.
call 'SYSTEM' id 'COMMAND' field v_command
ID 'TAB' FIELD TABL-*SYS*.
LOOP AT TABL.
write :/ TABL-LINE.
ENDLOOP.
Original Article : http://developerpages.gr/index.php/en/desktop-development-2/abap/73-execute-operating-system-commands-with-abap
REPORT zexec_cmd.
*----------------------------------------------------------
*
* www.developerpages.gr
*
* execute operating system command
*----------------------------------------------------------
data : v_command(255).
DATA: BEGIN OF TABL OCCURS 0,
LINE(255),
END OF TABL.
v_command = 'dir c:\'. " Application Server directory
clear TABL. refresh TABL.
call 'SYSTEM' id 'COMMAND' field v_command
ID 'TAB' FIELD TABL-*SYS*.
LOOP AT TABL.
write :/ TABL-LINE.
ENDLOOP.
Original Article : http://developerpages.gr/index.php/en/desktop-development-2/abap/73-execute-operating-system-commands-with-abap
No comments:
Post a Comment