TREX_ADMIN_TOOL_F02 is a standard ABAP INCLUDE 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_ADMIN_TOOL_F02 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: Include TREX_ADMIN_TOOL_F02
INCLUDE TREX_ADMIN_TOOL_F02_F02.
No SAP DATABASE tables are accessed within this REPORT code!
TREX_EXT_GET_INDEX_INFO_PARAMS CALL FUNCTION 'TREX_EXT_GET_INDEX_INFO_PARAMS' EXPORTING i_rfc_destination = g_rfc_destination i_index_list = gt_selected_indexes IMPORTING e_return_code = lv_return_code e_return_text = lv_return_text e_index_info = lt_index_info e_attribute_info = lt_attr_info e_index_parameters = lt_index_parameters e_index_taxonomies = lt_index_taxonomies e_index_extensions = lt_index_extensions EXCEPTIONS OTHERS = 0.
LVC_FIELDCATALOG_MERGE CALL FUNCTION 'LVC_FIELDCATALOG_MERGE' EXPORTING i_structure_name = 'TREXS_INDEX_INFO' CHANGING ct_fieldcat = gt_fieldcat1_0200[].
LVC_FIELDCATALOG_MERGE CALL FUNCTION 'LVC_FIELDCATALOG_MERGE' EXPORTING i_structure_name = 'TREXS_INDEX_PARAMETERS' CHANGING ct_fieldcat = gt_fieldcat2_0200[].
LVC_FIELDCATALOG_MERGE CALL FUNCTION 'LVC_FIELDCATALOG_MERGE' EXPORTING i_structure_name = 'TREXS_INDEX_TAXONOMIES' CHANGING ct_fieldcat = gt_fieldcat3_0200[].
LVC_FIELDCATALOG_MERGE CALL FUNCTION 'LVC_FIELDCATALOG_MERGE' EXPORTING i_structure_name = 'TREXS_INDEX_EXTENSION' CHANGING ct_fieldcat = gt_fieldcat4_0200[].
LVC_FIELDCATALOG_MERGE CALL FUNCTION 'LVC_FIELDCATALOG_MERGE' EXPORTING i_structure_name = 'TREXS_ATTR_INFO' CHANGING ct_fieldcat = gt_fieldcat5_0200[].
POPUP_TO_INFORM CALL FUNCTION 'POPUP_TO_INFORM' EXPORTING titel = g_repid_02 txt2 = sy-subrc txt1 = text-142. "Error in Flush
POPUP_TO_DECIDE_LIST CALL FUNCTION 'POPUP_TO_DECIDE_LIST' EXPORTING mark_flag = ' ' textline1 = lv_text1 titel = lv_text1 IMPORTING answer = lv_answer TABLES t_spopli = lt_spopli EXCEPTIONS not_enough_answers = 1 too_much_answers = 2 too_much_marks = 3 OTHERS = 4.
TREX_EXT_SET_INDEX_PROPERTY CALL FUNCTION 'TREX_EXT_SET_INDEX_PROPERTY' EXPORTING i_index_id = lv_index_id i_rfc_destination = g_rfc_destination i_property = p_prop i_value = p_value IMPORTING e_return_code = lv_return_code e_return_text = lv_return_text EXCEPTIONS conversion_error = 1 error = 2 OTHERS = 3.
TREX_EXT_MERGE_DELTA_INDEX CALL FUNCTION 'TREX_EXT_MERGE_DELTA_INDEX' EXPORTING i_index_id = lv_index_id i_rfc_destination = g_rfc_destination IMPORTING e_return_code = lv_return_code e_return_text = lv_return_text EXCEPTIONS conversion_error = 1 error = 2 OTHERS = 3.
POPUP_TO_CONFIRM CALL FUNCTION 'POPUP_TO_CONFIRM' EXPORTING titlebar = pv_title text_question = pv_text default_button = '1' display_cancel_button = ' ' popup_type = 'ICON_MESSAGE_QUESTION' IMPORTING answer = pv_answer.
TR_POPUP_TO_CONFIRM CALL FUNCTION 'TR_POPUP_TO_CONFIRM' EXPORTING iv_titlebar = lv_title iv_text_question = text-520 iv_text_button1 = 'In Background '(521) iv_icon_button1 = 'ICON_EXECUTE_OBJECT' iv_text_button2 = 'Online '(522) iv_icon_button2 = 'ICON_EXECUTE_OBJECT' iv_with_cancel_button = 'X' iv_start_column = 10 iv_start_row = 6 IMPORTING ev_answer = lv_answer.
TREX_EXT_OPTIMIZE CALL FUNCTION 'TREX_EXT_OPTIMIZE' EXPORTING i_index_id = lv_index_id i_rfc_destination = g_rfc_destination IMPORTING e_return_error_doc = lt_error_doc e_return_code = lv_return_code e_return_text = lv_return_text EXCEPTIONS conversion_error = 1 error = 2 OTHERS = 3.
REUSE_ALV_FIELDCATALOG_MERGE CALL FUNCTION 'REUSE_ALV_FIELDCATALOG_MERGE' EXPORTING i_structure_name = 'TREXS_INDEX_DOC' CHANGING ct_fieldcat = lt_fieldcat[].
REUSE_ALV_GRID_DISPLAY CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY' EXPORTING it_fieldcat = lt_fieldcat[] i_grid_title = lv_grid_title i_screen_start_column = 7 i_screen_start_line = 5 i_screen_end_column = 150 i_screen_end_line = 16 TABLES t_outtab = pt_error_doc.
TR_POPUP_TO_CONFIRM CALL FUNCTION 'TR_POPUP_TO_CONFIRM' EXPORTING iv_titlebar = lv_title iv_text_question = text-520 iv_text_button1 = 'In Background '(521) iv_icon_button1 = 'ICON_EXECUTE_OBJECT' iv_text_button2 = 'Online '(522) iv_icon_button2 = 'ICON_EXECUTE_OBJECT' iv_with_cancel_button = 'X' iv_start_column = 10 iv_start_row = 6 IMPORTING ev_answer = lv_answer.
TREX_EXT_ROLLBACK CALL FUNCTION 'TREX_EXT_ROLLBACK' EXPORTING i_index_id = lv_index_id i_rfc_destination = g_rfc_destination IMPORTING e_return_code = lv_return_code e_return_text = lv_return_text EXCEPTIONS conversion_error = 1 error = 2 OTHERS = 3.
JOB_OPEN CALL FUNCTION 'JOB_OPEN' EXPORTING jobname = lv_jobname IMPORTING jobcount = lv_jobcount EXCEPTIONS OTHERS = 1.
CALL FUNCTION 'JOB_CLOSE' EXPORTING jobcount = lv_jobcount jobname = lv_jobname strtimmed = 'X' EXCEPTIONS cant_start_immediate = 1 invalid_startdate = 2 jobname_missing = 3 job_close_failed = 4 job_nosteps = 5 job_notex = 6 lock_failed = 7 OTHERS = 8.
BP_JOB_SELECT CALL FUNCTION 'BP_JOB_SELECT' EXPORTING jobselect_dialog = 'N' jobsel_param_in = ls_jobsel_params TABLES jobselect_joblist = lt_jobs EXCEPTIONS no_jobs_found = 1 OTHERS = 2.
GET_PRINT_PARAMETERS CALL FUNCTION 'GET_PRINT_PARAMETERS' * EXPORTING * no_dialog = 'X' * immediately = ' ' IMPORTING out_parameters = ls_pri_params.
JOB_OPEN CALL FUNCTION 'JOB_OPEN' EXPORTING jobname = pv_jobname IMPORTING jobcount = lv_jobcount EXCEPTIONS OTHERS = 1.
JOB_CLOSE CALL FUNCTION 'JOB_CLOSE' EXPORTING jobcount = lv_jobcount jobname = pv_jobname strtimmed = 'X' EXCEPTIONS cant_start_immediate = 1 invalid_startdate = 2 jobname_missing = 3 job_close_failed = 4 job_nosteps = 5 job_notex = 6 lock_failed = 7 OTHERS = 8.
POPUP_TO_INFORM CALL FUNCTION 'POPUP_TO_INFORM' EXPORTING titel = g_repid_02 txt2 = sy-subrc txt1 = text-141.
POPUP_TO_INFORM CALL FUNCTION 'POPUP_TO_INFORM' EXPORTING titel = g_repid_02 txt2 = sy-subrc txt1 = text-142.
TREX_EXT_INDEX_EXISTS CALL FUNCTION 'TREX_EXT_INDEX_EXISTS' EXPORTING i_indexes = lt_indexes i_rfc_destination = g_rfc_destination IMPORTING e_return_code = lv_return_code e_return_text = lv_return_text e_index_info = lt_info 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.
The contribute/comments section below therefore offer's an opportunity for anyone to add additional information. This can be anything from useful hints, tips and screen shots to relevant SAP notes or anything else you feel is relevant to this report.
This will then be available for everyone to easily find by simply searching on the report name TREX_ADMIN_TOOL_F02 or its description.
TREX_ADMIN_TOOL_F02 - Include TREX_ADMIN_TOOL_F02 TREX_ADMIN_TOOL_F01 - Include TREX_ADMIN_TOOL_F01 TREX_ADMIN_TOOL_AT_SEL_SCREF01 - Include TREX_ADMIN_TOOL_AT_SEL_SCREF01 TREX_ADMIN_TOOL - TREX Administration TREX_ADMIN_TOOL - TREX Administration TREX_ABAP_CUSTOMIZINGTOP - Include TREX_ABAP_CUSTOMIZINGTOP