Code: Alles auswählen.
DATA:
ld_command TYPE text255,
ld_directory TYPE text255,
lt_result TYPE tttext255.
* Unter Unix/Linux
ld_directory = '/usr/sap/tmp'.
ld_command = 'mv file1.txt file2.txt'.
* Unter Windows
ld_directory = 'C:\temp'.
ld_command = 'ren file1.txt file2.txt'.
CALL 'SYSTEM'
ID 'COMMAND' FIELD ld_command
ID 'PATH' FIELD ld_directory
ID 'TAB' FIELD lt_result.