SAP Reports / Programs

RSAADMRL SAP ABAP Report - Archive Management Data Reload Program







RSAADMRL is a standard Executable ABAP Report available within your SAP system (depending on your version and release level). It is used for This program is used to reload the archive management data which was archived using the archiving object BC_ARCHIVE...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 RSAADMRL 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 RSAADMRL. "Basic submit
SUBMIT RSAADMRL AND RETURN. "Return to original report after report execution complete
SUBMIT RSAADMRL 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: ARCHOBJ = Archiving Object
Selection Text: CLIENT = Client
Selection Text: P_PROT = D .
Selection Text: P_PROT_O = D .
Selection Text: P_RELPRD = D .
Selection Text: P_RELTST = D .
Title: Archive Management Data Reload Program
Text Symbol: 001 = Archive Management Data Reloaded
Text Symbol: 003 = &1% (&2 of &3) of the data objects were processed.
Text Symbol: 005 = Further Selection Criteria
Text Symbol: 020 = Archive management data already exists in the database
Text Symbol: 021 = Archive management data was not reloaded due to selection criteria


INCLUDES used within this REPORT RSAADMRL

INCLUDE ARCH_RELOAD_PRG_STANDARD2. "<<< FLOW CONTROL


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_MOVE CALL FUNCTION 'ARCHIVE_OPEN_FOR_MOVE' EXPORTING object = 'BC_ARCHIVE' test_mode = p_reltst IMPORTING archive_read_handle = read_handle.

ARCHIVE_GET_INFORMATION CALL FUNCTION 'ARCHIVE_GET_INFORMATION' EXPORTING archive_handle = read_handle IMPORTING object_number_in_run = l_total.

ARCHIVE_PROTOCOL_INIT CALL FUNCTION 'ARCHIVE_PROTOCOL_INIT' EXPORTING i_detailprotocol = p_prot.

ARCHIVE_GET_NEXT_OBJECT CALL FUNCTION 'ARCHIVE_GET_NEXT_OBJECT' EXPORTING archive_handle = read_handle EXCEPTIONS end_of_file = 01.

ARCHIVE_GET_FIRST_RECORD CALL FUNCTION 'ARCHIVE_GET_FIRST_RECORD' EXPORTING archive_handle = read_handle IMPORTING record_ref = buffer_ref record_structure = record_structure EXCEPTIONS end_of_object = 01.

ARCHIVE_PROTOCOL_COLLECT CALL FUNCTION 'ARCHIVE_PROTOCOL_COLLECT' EXPORTING i_object = -document i_text = text-021 i_msgtype = '2'.

PROGRESS_INDICATOR CALL FUNCTION 'PROGRESS_INDICATOR' EXPORTING i_text = text-003 i_processed = l_count IMPORTING e_progress_sent = l_progress_send.

DB_COMMIT CALL FUNCTION 'DB_COMMIT'.

ARCHIVE_PROTOCOL_COLLECT CALL FUNCTION 'ARCHIVE_PROTOCOL_COLLECT' EXPORTING i_object = -document i_text = text-021 i_msgtype = '2'.

PROGRESS_INDICATOR CALL FUNCTION 'PROGRESS_INDICATOR' EXPORTING i_text = text-003 i_processed = l_count IMPORTING e_progress_sent = l_progress_send.

DB_COMMIT CALL FUNCTION 'DB_COMMIT'.

ARCHIVE_PROTOCOL_COLLECT CALL FUNCTION 'ARCHIVE_PROTOCOL_COLLECT' EXPORTING i_object = iadmi_run-document i_text = text-001 i_msgtype = '1'.

ARCHIVE_PROTOCOL_COLLECT CALL FUNCTION 'ARCHIVE_PROTOCOL_COLLECT' EXPORTING i_object = iadmi_run-document i_text = text-020 i_msgtype = '2'.

ARCHIVE_PROTOCOL_COLLECT CALL FUNCTION 'ARCHIVE_PROTOCOL_COLLECT' EXPORTING i_object = -document i_text = text-021 i_msgtype = '2'.

PROGRESS_INDICATOR CALL FUNCTION 'PROGRESS_INDICATOR' EXPORTING i_text = text-003 i_processed = l_count IMPORTING e_progress_sent = l_progress_send.

DB_COMMIT CALL FUNCTION 'DB_COMMIT'.

ARCHIVE_PROTOCOL_COLLECT CALL FUNCTION 'ARCHIVE_PROTOCOL_COLLECT' EXPORTING i_object = -document i_text = text-021 i_msgtype = '2'.

PROGRESS_INDICATOR CALL FUNCTION 'PROGRESS_INDICATOR' EXPORTING i_text = text-003 i_processed = l_count IMPORTING e_progress_sent = l_progress_send.

DB_COMMIT





CALL FUNCTION 'DB_COMMIT'.

ARCHIVE_PROTOCOL_COLLECT CALL FUNCTION 'ARCHIVE_PROTOCOL_COLLECT' EXPORTING i_object = iadmi_xrun-document i_text = text-001 i_msgtype = '1'.

ARCHIVE_PROTOCOL_COLLECT CALL FUNCTION 'ARCHIVE_PROTOCOL_COLLECT' EXPORTING i_object = iadmi_xrun-document i_text = text-020 i_msgtype = '2'.

ARCHIVE_GET_NEXT_RECORD CALL FUNCTION 'ARCHIVE_GET_NEXT_RECORD' EXPORTING archive_handle = read_handle IMPORTING record_structure = record_structure record_ref = buffer_ref EXCEPTIONS end_of_object = 02.

ARCHIVE_GIVE_STATISTICS CALL FUNCTION 'ARCHIVE_GIVE_STATISTICS' EXPORTING archive_handle = read_handle TABLES table = lt_stat_itab.

ARCHIVE_RELOAD_OBJECT_DATA CALL FUNCTION 'ARCHIVE_RELOAD_OBJECT_DATA' EXPORTING archive_handle = read_handle.

PROGRESS_INDICATOR CALL FUNCTION 'PROGRESS_INDICATOR' EXPORTING i_text = text-003 i_processed = l_count IMPORTING e_progress_sent = l_progress_send.

DB_COMMIT CALL FUNCTION 'DB_COMMIT'.

PROGRESS_INDICATOR CALL FUNCTION 'PROGRESS_INDICATOR' EXPORTING i_text = text-003 i_total = l_total i_processed = l_count i_output_immediately = 'X'.

ARCHIVE_WRITE_STATISTICS CALL FUNCTION 'ARCHIVE_WRITE_STATISTICS' EXPORTING archive_handle = read_handle.

ARCHIVE_PROTOCOL_WRITE CALL FUNCTION 'ARCHIVE_PROTOCOL_WRITE'.

ARCHIVE_CLOSE_FILE CALL FUNCTION 'ARCHIVE_CLOSE_FILE' EXPORTING archive_handle = read_handle.



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