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.

Dig Deeper on SAP Basis

Start the conversation

Send me notifications when other members comment.

Please create a username to comment.

-ADS BY GOOGLE

SearchERP

SearchOracle

SearchDataManagement

SearchAWS

SearchBusinessAnalytics

SearchContentManagement

SearchHRSoftware

Close