SAP Reports / Programs

MSR_TRACKING_ARCH_RELOAD SAP ABAP Report - Reload Program for Archiving Adv. Returns Tracking Data







MSR_TRACKING_ARCH_RELOAD is a standard Executable ABAP Report available within your SAP system (depending on your version and release level). It is used for You use this report to reload all the documents that have been deleted from the database by the delete program...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 MSR_TRACKING_ARCH_RELOAD 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 MSR_TRACKING_ARCH_RELOAD. "Basic submit
SUBMIT MSR_TRACKING_ARCH_RELOAD AND RETURN. "Return to original report after report execution complete
SUBMIT MSR_TRACKING_ARCH_RELOAD 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: P_PROT = Detail Log
Selection Text: P_PROT_O = Log Output
Selection Text: P_RELPRD = Production Mode
Selection Text: P_RELTST = Test Mode
Title: Reload Program for Archiving Adv. Returns Tracking Data
Text Symbol: 001 = &1% (&2 of &3) of the data objects processed
Text Symbol: 002 = Data object has been reloaded
Text Symbol: 003 = Data Object exists already in DB
Text Symbol: 004 = Sales document number:
Text Symbol: 005 = Purchasing document number:
Text Symbol: 006 = Saved data object not reloaded


INCLUDES used within this REPORT MSR_TRACKING_ARCH_RELOAD

INCLUDE ARCH_RELOAD_PRG_STANDARD2.


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_PROTOCOL_INIT CALL FUNCTION 'ARCHIVE_PROTOCOL_INIT' EXPORTING i_detailprotocol = p_prot i_protocol_output = p_prot_o.

ARCHIVE_OPEN_FOR_MOVE CALL FUNCTION 'ARCHIVE_OPEN_FOR_MOVE' EXPORTING object = gc_object test_mode = p_reltst IMPORTING archive_read_handle = lv_archive_read_handle archive_write_handle = lv_archive_write_handle EXCEPTIONS no_files_available = 4.

ARCHIVE_GET_INFORMATION CALL FUNCTION 'ARCHIVE_GET_INFORMATION' EXPORTING archive_handle = lv_archive_read_handle IMPORTING object_number_in_file = lv_n_o_objects.

ARCHIVE_GET_NEXT_OBJECT CALL FUNCTION 'ARCHIVE_GET_NEXT_OBJECT' EXPORTING archive_handle = lv_archive_read_handle IMPORTING archive_name = lv_archive_key object_offset = lv_offset EXCEPTIONS end_of_file = 1.

ARCHIVE_READ_OBJECT_BY_HANDLE CALL FUNCTION 'ARCHIVE_READ_OBJECT_BY_HANDLE' EXPORTING iv_handle = lv_archive_read_handle CHANGING ct_obj_data = lt_obj_data_tmp.

PROGRESS_INDICATOR CALL FUNCTION 'PROGRESS_INDICATOR' EXPORTING i_text = text-001 i_processed = lv_cnt_pro i_total = lv_n_o_objects IMPORTING e_progress_sent = lv_progress_send.

DB_COMMIT CALL FUNCTION 'DB_COMMIT'. "force immediate output of message

PROGRESS_INDICATOR CALL FUNCTION 'PROGRESS_INDICATOR' EXPORTING i_text = text-001 i_processed = lv_cnt_pro i_total = lv_n_o_objects i_output_immediately = 'X'.

ARCHIVE_WRITE_STATISTICS CALL FUNCTION 'ARCHIVE_WRITE_STATISTICS' EXPORTING archive_handle = lv_archive_read_handle.

ARCHIVE_PROTOCOL_WRITE CALL FUNCTION 'ARCHIVE_PROTOCOL_WRITE'.

ARCHIVE_CLOSE_FILE CALL FUNCTION 'ARCHIVE_CLOSE_FILE' EXPORTING archive_handle = lv_archive_read_handle.

ARCH_RELO_TABLE_INSERT_TEST CALL FUNCTION 'ARCH_RELO_TABLE_INSERT_TEST' EXPORTING i_structure = -tabname i_accepting_duplicate_records = iv_accepting_duplicate_records IMPORTING e_reload_property = lv_table_reload_property TABLES t_data = t_could_be_inserted = EXCEPTIONS table_not_active = 1.

ARCH_RELO_PROPERTY_DECIDE CALL FUNCTION 'ARCH_RELO_PROPERTY_DECIDE' EXPORTING i_table_reload_property = lv_table_reload_property i_archiv_key = iv_archive_key i_offset = iv_offset i_accepting_duplicate_records = iv_accepting_duplicate_records IMPORTING e_object_reload_property = ev_object_reload_property.

ARCHIVE_SAVE_OBJECT CALL FUNCTION 'ARCHIVE_SAVE_OBJECT' EXPORTING archive_handle = iv_write_handle.

ARCH_RELO_TABLE_INSERT CALL FUNCTION 'ARCH_RELO_TABLE_INSERT' EXPORTING i_structure = ls_obj_data-tabname TABLES t_data = .

ARCHIVE_RELOAD_OBJECT_DATA CALL FUNCTION 'ARCHIVE_RELOAD_OBJECT_DATA' EXPORTING archive_handle = iv_read_handle.

ARCHIVE_GIVE_STATISTICS CALL FUNCTION 'ARCHIVE_GIVE_STATISTICS' EXPORTING archive_handle = iv_read_handle TABLES table = lt_statistic.

ARCHIVE_PROTOCOL_COLLECT CALL FUNCTION 'ARCHIVE_PROTOCOL_COLLECT' EXPORTING i_object = lv_object_id i_msgtype = lv_msgtype i_text = lv_message.



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