Problem solve Get help with specific problems with your technologies, process and projects.

OS command execution

This tip shows you how to execute OS level command without configuring in SAP.

Execute OS level command without configuring in SAP. Code gives a list of files and directories in SAP default...

directory.


DATA:  BEGIN OF TABL OCCURS 0,
        LINE(132),
       END OF TABL.
DATA: BEGIN OF PFAD,
        A(07) TYPE C VALUE 'ls -lt ',
        P(60),
      END OF PFAD.

CALL 'SYSTEM' ID 'COMMAND' FIELD PFAD
                ID 'TAB'     FIELD TABL-*SYS*.

loop at tabl.
write / tabl.
endloop.
This was last published in May 2002

Dig Deeper on SAP Basis administration and NetWeaver administration

PRO+

Content

Find more PRO+ content and other member only offers, here.

Start the conversation

Send me notifications when other members comment.

By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Please create a username to comment.

-ADS BY GOOGLE

SearchManufacturingERP

SearchOracle

SearchDataManagement

SearchAWS

SearchBusinessAnalytics

SearchCRM

SearchContentManagement

SearchFinancialApplications

Close