Make your own free website on Tripod.com
SAP ABAP Programming, Functional and Basis Components Books


*
*  Author by  : SAP Hints and Tips on Configuration and ABAP/4 Programming
*                 http://sapr3.tripod.com
*
*  Executing Unix command 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.

*--- End of Program