SAF_SE_TEST_TREX_ABAP 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 SAF_SE_TEST_TREX_ABAP 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 TEST_SAF_TREX_ABAP
No INCLUDES are used within this REPORT code!
No SAP DATABASE tables are accessed within this REPORT code!
LANGUAGE_CODE_SAP_TO_ISO call function 'LANGUAGE_CODE_SAP_TO_ISO' exporting SAP_CODE = LANGUAGE importing ISO_CODE = LV_LANGU exceptions NOT_FOUND = 1 others = 2.
TREX_EXT_SEARCH_DOCUMENTS call function 'TREX_EXT_SEARCH_DOCUMENTS' exporting I_INDEXES = LT_INDEXES I_RFC_DESTINATION = RFC_DEST I_QUERY_ENTRIES = LT_QUERY I_REQ_ATTRIBUTES = LT_REQ_ATTR I_RESULT_FROM = R_FROM I_RESULT_TO = R_TO importing E_RETURN_CODE = L_RETURN_CODE E_RETURN_TEXT = L_RETURN_TEXT E_RESULT_DOCS = LT_RESULT_DOCS E_NO_OF_HITS = L_NO_OF_HITS E_NO_OF_ALL_HITS = L_NO_OF_ALL_HITS E_INDEX_SIZE = L_INDEX_SIZE exceptions others = 1.
LANGUAGE_CODE_SAP_TO_ISO call function 'LANGUAGE_CODE_SAP_TO_ISO' exporting SAP_CODE = LANGUAGE importing ISO_CODE = LV_LANGU exceptions NOT_FOUND = 1 others = 2.
TREX_EXT_SEARCH_DOCUMENTS call function 'TREX_EXT_SEARCH_DOCUMENTS' exporting I_INDEXES = LT_INDEXES I_RFC_DESTINATION = RFC_DEST I_QUERY_ENTRIES = LT_QUERY I_REQ_ATTRIBUTES = LT_REQ_ATTR I_RESULT_FROM = R_FROM I_RESULT_TO = R_TO importing E_RETURN_CODE = L_RETURN_CODE E_RETURN_TEXT = L_RETURN_TEXT E_RESULT_DOCS = LT_RESULT_DOCS E_NO_OF_HITS = L_NO_OF_HITS E_NO_OF_ALL_HITS = L_NO_OF_ALL_HITS E_INDEX_SIZE = L_INDEX_SIZE exceptions others = 1.
Although this basic information may have limited use it does provide an easy to find location to store any knowledge about this program/report.