TREX_RFC_REMOTE_COMMAND is a standard Executable ABAP Report available within your SAP system (depending on your version and release level). Below is the basic information available for this SAP report including which OBJECTS it interacts with such as TABLES, FUNCTION MODULES, INCLUDES ETC. Also check out the submitted Comments related to this SAP report or see any standard documentation available.
If you would like to execute this report or see the full code listing simply enter TREX_RFC_REMOTE_COMMAND into the relevant SAP transactions such as SE38 or SE80
This report can be called from another progam/report simply by using the ABAP SUBMIT statement, see below for example ABAP code snipts of how to do this.
Title: Program TREX_RFC_REMOTE_COMMAND
No INCLUDES are used within this REPORT code!
No SAP DATABASE tables are accessed within this REPORT code!
TREX_EXT_EXECUTE_PYTHON CALL FUNCTION 'TREX_EXT_EXECUTE_PYTHON' EXPORTING i_indexserver_location = 'p102182_reg' i_rfc_destination = trex_rfc_location i_command = 'DIR2>&1' IMPORTING e_return_code = return_code e_return_text = return_text e_lines = pt_trace_file EXCEPTIONS conversion_error = 1 error = 2 OTHERS = 3.
Although this basic information may have limited use it does provide an easy to find location to store any knowledge about this program/report.