TREX_EXECUTE_SQL_STATEMENT 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_EXECUTE_SQL_STATEMENT 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: Execute SQL statement via ADBC.
No INCLUDES are used within this REPORT code!
No SAP DATABASE tables are accessed within this REPORT code!
GUI_UPLOAD CALL FUNCTION 'GUI_UPLOAD' EXPORTING filename = l_filename TABLES data_tab = l_itab EXCEPTIONS file_open_error = 1 file_read_error = 2 no_batch = 3 gui_refuse_filetransfer = 4 invalid_type = 5 no_authority = 6 unknown_error = 7 bad_data_format = 8 header_not_allowed = 9 separator_not_allowed = 10 header_too_long = 11 unknown_dp_error = 12 access_denied = 13 dp_out_of_memory = 14 disk_full = 15 dp_timeout = 16 OTHERS = 17.
Although this basic information may have limited use it does provide an easy to find location to store any knowledge about this program/report.
TREX_EXECUTE_SQL_STATEMENT - Execute SQL statement via ADBC. TREX_EXECUTE_SQL_STATEMENT - Execute SQL statement via ADBC. TREX_EXECUTE_INTEGRATION_TEST - Execute Integration Test TREX_EXECUTE_INTEGRATION_TEST - Execute Integration Test TREX_EXCUTE_COMMAND_REMOTE - Execute a TREX command remote TREX_EXCUTE_COMMAND_REMOTE - Execute a TREX command remote