SAP Reports / Programs | Financials | Financial Supply Chain Management | Transaction Manager(FIN-FSCM-TRM-TM) SAP FIN

RTCOR_CO_ARCHIVE_READ SAP ABAP Report - Reading the Archived CO objects







RTCOR_CO_ARCHIVE_READ 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 RTCOR_CO_ARCHIVE_READ into the relevant SAP transactions such as SE38 or SE80


ABAP code to call this SAP report using the submit statement

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.






SUBMIT RTCOR_CO_ARCHIVE_READ. "Basic submit
SUBMIT RTCOR_CO_ARCHIVE_READ AND RETURN. "Return to original report after report execution complete
SUBMIT RTCOR_CO_ARCHIVE_READ VIA SELECTION-SCREEN. "Display selection screen of submitted report to user
    See more syntax options for the ABAP SUBMIT statement


Text pool values


Selection Text: S_BUKRS = D .
Selection Text: S_COKEY = D .
Selection Text: S_RFHA = D .
Selection Text: S_SECACC = D .
Title: Reading the Archived CO objects
Text Symbol: 001 = General Selection
Text Symbol: A01 = Archive CO


INCLUDES used within this REPORT RTCOR_CO_ARCHIVE_READ

INCLUDE RTCOR_CO_ARCHIVE_READ_TOP . " GLOBAL DATA


TABLES used within REPORT and the associated SELECT statement:





No SAP DATABASE tables are accessed within this REPORT code!


Function Modules used within report and the associated call statement:

ARCHIVE_OPEN_FOR_READ CALL FUNCTION 'ARCHIVE_OPEN_FOR_READ' EXPORTING * ARCHIVE_DOCUMENT = '000000' * ARCHIVE_NAME = ' ' object = g_arc_object * MAINTAIN_INDEX = ' ' IMPORTING archive_handle = g_handle_archive * TABLES * ARCHIVE_FILES = * SELECTED_FILES = EXCEPTIONS file_already_open = 1 file_io_error = 2 internal_error = 3 no_files_available = 4 object_not_found = 5 open_error = 6 not_authorized = 7 OTHERS = 8 .

ARCHIVE_GET_NEXT_OBJECT CALL FUNCTION 'ARCHIVE_GET_NEXT_OBJECT' EXPORTING archive_handle = g_handle_archive IMPORTING * OBJECT_ID = * OBJECT_OFFSET = archive_name = g_archiv_nam * COMPR_OBJECT_LENGTH = * SESSION = EXCEPTIONS end_of_file = 1 file_io_error = 2 internal_error = 3 open_error = 4 wrong_access_to_archive = 5 OTHERS = 6.

ARCHIVE_READ_OBJECT_BY_HANDLE CALL FUNCTION 'ARCHIVE_READ_OBJECT_BY_HANDLE' EXPORTING iv_handle = g_handle_archive * IV_READ_CLASS_DATA = 'CONTEXT' CHANGING ct_obj_data = g_tab_object_data.

ARCHIVE_CLOSE_FILE CALL FUNCTION 'ARCHIVE_CLOSE_FILE' EXPORTING archive_handle = g_handle_archive EXCEPTIONS internal_error = 1 wrong_access_to_archive = 2 OTHERS = 3.

REUSE_ALV_FIELDCATALOG_MERGE CALL FUNCTION 'REUSE_ALV_FIELDCATALOG_MERGE' EXPORTING i_program_name = sy-repid i_structure_name = con_struct_nam CHANGING ct_fieldcat = gt_fieldcat EXCEPTIONS OTHERS = 0.

REUSE_ALV_GRID_DISPLAY CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY' EXPORTING i_callback_program = sy-repid i_callback_pf_status_set = 'SET_PF_STATUS' i_callback_user_command = 'USER_COMMAND' i_grid_title = text-a01 is_layout = gs_layout it_fieldcat = gt_fieldcat it_events = gt_event TABLES t_outtab = gt_co_data EXCEPTIONS program_error = 1 OTHERS = 2.



Contribute (Add Comments)

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 RTCOR_CO_ARCHIVE_READ or its description.