RTXWLOG2_ADJUST_COMPCO is a standard Executable ABAP Report available within your SAP system (depending on your version and release level). It is used for Report to adjust company code field in extract log...see full standard documentation available for this report. Also check out the submitted Comments related to this SAP report and the details below to see which OBJECTS it interacts with such as TABLES, FUNCTION MODULES, INCLUDES ETC.
If you would like to execute this report or see the full code listing simply enter RTXWLOG2_ADJUST_COMPCO 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: Data Retention Tool: Adjust Company Code in extract log
Text Symbol: Q01 = Select extracts with initial company code only?
Text Symbol: Q02 = Determine company code settings automatically?
Text Symbol: Q03 = Save Company Code in extract log?
Text Symbol: T01 = Data Retention Tool: Adjust Company Code in extract log
No INCLUDES are used within this REPORT code!
No SAP DATABASE tables are accessed within this REPORT code!
POPUP_TO_CONFIRM CALL FUNCTION 'POPUP_TO_CONFIRM' EXPORTING text_question = text-q01 titlebar = text-t01 display_cancel_button = space IMPORTING answer = ld_answer.
POPUP_TO_CONFIRM CALL FUNCTION 'POPUP_TO_CONFIRM' EXPORTING text_question = text-q02 titlebar = text-t01 IMPORTING answer = ld_answer.
TXW_EXTRACT_READ_INIT CALL FUNCTION 'TXW_EXTRACT_READ_INIT' EXPORTING file_name =
-l_file voldir_set = -vol_set EXCEPTIONS OTHERS = 4.
TXW_EXTRACT_SELECTION_READ CALL FUNCTION 'TXW_EXTRACT_SELECTION_READ' TABLES t_txw_sel = lt_sel.
TXW_EXTRACT_READ_CLOSE CALL FUNCTION 'TXW_EXTRACT_READ_CLOSE'.
LVC_FIELDCATALOG_MERGE CALL FUNCTION 'LVC_FIELDCATALOG_MERGE' EXPORTING i_structure_name = 'TXW_DIR2' CHANGING ct_fieldcat = lt_fcat.
POPUP_TO_CONFIRM CALL FUNCTION 'POPUP_TO_CONFIRM' EXPORTING text_question = text-q03 titlebar = text-t01 IMPORTING answer = ld_answer.
Although this basic information may have limited use it does provide an easy to find location to store any knowledge about this program/report.