Issuing an Unix Command from
ABAP
*
* Written by : SAP Basis, ABAP Programming and Other
IMG Stuff
*
https://www.erpgreat.com
*
* Issuing an Unix Command from ABAP
*
REPORT ZUNIX.
DATA UNIXCMD(50) TYPE C.
DATA: BEGIN OF ITAB occurs 0,
LINE(200),
end of ITAB.
PARAMETERS UNIXCOMM LIKE UNIXCMD
DEFAULT 'ls -ls /usr/sap/trans/data' LOWER CASE.
* Executing the system commands witin ABAP.
call 'SYSTEM' id 'COMMAND' field UNIXCOMM
id 'TAB'
field ITAB-*SYS*.
EDITOR-CALL FOR ITAB DISPLAY-MODE.
Fast Links:
BDC program examples:
Auto
Disallowed Back Posting to Previous Period
Get help for your ABAP problems
Do you
have a ABAP Question?
SAP Books
SAP Certification,
Functional, Basis Administration and ABAP Programming Reference Books
ABAP Programming Tips
ABAP and Samples Program
Codes for Abapers
Best regards,
SAP Basis, ABAP Programming and Other IMG Stuff
http://www.erpgreat.com
All the site contents are Copyright © www.erpgreat.com
and the content authors. All rights reserved.
All product names are trademarks of their respective
companies. The site www.erpgreat.com is in no way affiliated with
SAP AG.
Every effort is made to ensure the content integrity.
Information used on this site is at your own risk.
The content on this site may not be reproduced
or redistributed without the express written permission of
www.erpgreat.com or the content authors.
|