‎2005 Dec 14 8:53 PM
Hi All,
we have a batch file in Application server
usr\..\a.bat,
I have to execute the batch file from my ABAP program, is there any function module.
Thanks,
Nara.
‎2005 Dec 14 9:01 PM
below code will able to execute any application server commands from abap
REPORT ZUNIX.
data: unix_command(50) type c value 'ls -ls /usr/sap/trans/data'.
data: begin of internal_table occurs 0,
line(200),
end of internal_table.
PARAMETERS UNIXCOMM LIKE unix_command
DEFAULT 'ls -ls /usr/sap/trans/data' LOWER CASE.
call 'SYSTEM' id 'COMMAND' field UNIXCOMM
id 'TAB' field internal_table-SYS.
EDITOR-CALL FOR INTERNAL_TABLE DISPLAY-MODE.
‎2005 Dec 14 9:03 PM
The code provided in the earlier post is the correctway to do it, all you need to do now is provide the command you want to execute
usr\..\a.bat in the Selection Screen parameter & you will be set to go...
‎2005 Dec 15 6:52 AM