ABAP Certification, Smartform, Sapscripts, BAPI, JAVA, Visual Basic Programming Books
*
*  Author by  : SAP ABAP/4 Programming, Basis Administration, Configuration Hints and Tips
*               http://www.sap-basis-abap.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

Return to :-
SAP ABAP/4 Programming, Basis Administration, Configuration Hints and Tips

(c) www.sap-basis-abap.com All material on this site is Copyright.
Every effort is made to ensure the content integrity.  Information used on this site is at your own risk.
All product names are trademarks of their respective companies.  The site www.sap-basis-abap.com is in no way affiliated with SAP AG.
Any unauthorised copying or mirroring is prohibited.