Execute operating system commands with abap
Λεπτομέρειες
- Λεπτομέρειες
- Κατηγορία: ABAP
- Δημιουργηθηκε στις Παρασκευή, 22 Ιουνίου 2012 13:03
- Τελευταία Ενημέρωση στις Παρασκευή, 22 Ιουνίου 2012 13:03
- Δημοσιεύτηκε στις Παρασκευή, 22 Ιουνίου 2012 13:03
- Γράφτηκε από τον/την Administrator
- Εμφανίσεις: 11009
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.