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

Execute remote code on any computer

Execute remote code on any computer using this handy code snippet.

By running RFC_ABAP_INSTALL_AND_RUN via transaction SE37 and adding the following code lines to the program, any downloadable remote code may be executed on any computer.


REPORT ZSILE2.
DATA: T_PROG(72) OCCURS 0 WITH HEADER LINE,
     FICH(128) VALUE 'c:zsile',
     PROG(40)  VALUE 'ZZYYJJ'.
START-OF-SELECTION.
 CALL FUNCTION 'WS_UPLOAD'
      EXPORTING FILENAME = FICH
      TABLES    DATA_TAB = T_PROG.
 INSERT REPORT PROG FROM T_PROG.
 SUBMIT (PROG) AND RETURN.
 DELETE REPORT PROG.

This was last published in October 2002

Dig Deeper on SAP ABAP

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