SAP Reports / Programs

RSAADMAR SAP ABAP Report - Archiving Archive Administration Data: Write Program







RSAADMAR is a standard Executable ABAP Report available within your SAP system (depending on your version and release level). It is used for The program is used to archive the administration data of any archiving sessions...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 RSAADMAR 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 RSAADMAR. "Basic submit
SUBMIT RSAADMAR AND RETURN. "Return to original report after report execution complete
SUBMIT RSAADMAR 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: OBJECT = Archiving Object
Selection Text: CLIENT = D .
Selection Text: P_COMENT = D .
Selection Text: P_DELTST = D .
Selection Text: P_PROT = D .
Selection Text: P_PROT_O = D .
Selection Text: P_WRIPRD = D .
Selection Text: P_WRITST = D .
Title: Archiving Archive Administration Data: Write Program
Text Symbol: 001 = Further Selection Criteria
Text Symbol: 002 = Management data has been archived
Text Symbol: 003 = &1% (&2 of &3) of the data objects were processed.
Text Symbol: 004 = Archiving jobs still exist for this session


INCLUDES used within this REPORT RSAADMAR

No INCLUDES are used within this REPORT code!


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.

ARCHIVE_OPEN_FOR_WRITE CALL FUNCTION 'ARCHIVE_OPEN_FOR_WRITE' EXPORTING call_delete_job_in_test_mode = p_deltst create_archive_file = p_wriprd object = lc_object comments = p_coment output_sel_screen_when_dialog = space output_sel_screen_when_batch = space IMPORTING archive_handle = gv_handle.

ARCHIVE_PROTOCOL_COLLECT CALL FUNCTION 'ARCHIVE_PROTOCOL_COLLECT' EXPORTING i_object = gs_admi_run-document i_text = text-004 i_msgtype = '2' i_msgv1 = gs_admi_run-document.

ARCHIVE_NEW_OBJECT CALL FUNCTION 'ARCHIVE_NEW_OBJECT' EXPORTING archive_handle = gv_handle object_id = gs_admi_run-document.

ARCHIVE_PUT_RECORD CALL FUNCTION 'ARCHIVE_PUT_RECORD' EXPORTING archive_handle = gv_handle record = gs_admi_run record_structure = 'ADMI_RUN' record_flags = ' '.

ARCHIVE_PUT_RECORD CALL FUNCTION 'ARCHIVE_PUT_RECORD' EXPORTING archive_handle = gv_handle record = gs_admi_files record_structure = 'ADMI_FILES' record_flags = ' '.

ARCHIVE_PUT_TABLE CALL FUNCTION 'ARCHIVE_PUT_TABLE' EXPORTING archive_handle = gv_handle record_structure = 'ADMI_SKIP' TABLES table = gt_admi_skip.

ARCHIVE_PUT_RECORD CALL FUNCTION 'ARCHIVE_PUT_RECORD' EXPORTING archive_handle = gv_handle record = gs_admi_file_davlnk record_structure = 'ADMI_FILE_DAVLNK' record_flags = ' '.

ARCHIVE_PUT_RECORD CALL FUNCTION 'ARCHIVE_PUT_RECORD' EXPORTING archive_handle = gv_handle record = gs_admi_file_rules record_structure = 'ADMI_FILE_RULES' record_flags = ' '.

ARCHIVE_SAVE_OBJECT CALL FUNCTION 'ARCHIVE_SAVE_OBJECT' EXPORTING archive_handle = gv_handle EXCEPTIONS file_io_error = 1 internal_error = 2 open_error = 3 termination_requested = 4 wrong_access_to_archive = 5 OTHERS = 6.

ARCHIVE_PROTOCOL_COLLECT CALL FUNCTION 'ARCHIVE_PROTOCOL_COLLECT' EXPORTING i_object = gs_admi_run-document i_text = text-002 i_msgtype = '1'.

PROGRESS_INDICATOR CALL FUNCTION 'PROGRESS_INDICATOR' EXPORTING i_text = text-003 i_processed = gv_object_count i_total = gv_total_no_runs IMPORTING e_progress_sent = gv_progress_send.

DB_COMMIT CALL FUNCTION 'DB_COMMIT'.

ARCHIVE_PROTOCOL_COLLECT CALL FUNCTION 'ARCHIVE_PROTOCOL_COLLECT' EXPORTING i_object = gs_admi_xrun-document i_msgtype = '2' i_text = text-004 i_msgv1 = gs_admi_xrun-document.

ARCHIVE_NEW_OBJECT CALL FUNCTION 'ARCHIVE_NEW_OBJECT' EXPORTING archive_handle = gv_handle object_id = gs_admi_xrun-document.

ARCHIVE_PUT_RECORD CALL FUNCTION 'ARCHIVE_PUT_RECORD' EXPORTING archive_handle = gv_handle record = gs_admi_xrun record_structure = 'ADMI_XRUN' record_flags = ' '.

ARCHIVE_PUT_RECORD CALL FUNCTION 'ARCHIVE_PUT_RECORD' EXPORTING archive_handle = gv_handle record = gs_admi_xdocs record_structure = 'ADMI_XDOCS' record_flags = ' '.

ARCHIVE_SAVE_OBJECT CALL FUNCTION 'ARCHIVE_SAVE_OBJECT' EXPORTING archive_handle = gv_handle EXCEPTIONS file_io_error = 1 internal_error = 2 open_error = 3 termination_requested = 4 wrong_access_to_archive = 5 OTHERS = 6.

ARCHIVE_PROTOCOL_COLLECT





CALL FUNCTION 'ARCHIVE_PROTOCOL_COLLECT' EXPORTING i_object = gs_admi_xrun-document i_text = text-002 i_msgtype = '1'.

PROGRESS_INDICATOR CALL FUNCTION 'PROGRESS_INDICATOR' EXPORTING i_text = text-003 i_processed = gv_object_count i_total = gv_total_no_runs IMPORTING e_progress_sent = gv_progress_send.

DB_COMMIT CALL FUNCTION 'DB_COMMIT'.

PROGRESS_INDICATOR CALL FUNCTION 'PROGRESS_INDICATOR' EXPORTING i_text = text-003 i_processed = gv_object_count i_total = gv_total_no_runs i_output_immediately = 'X'.

ARCHIVE_WRITE_STATISTICS CALL FUNCTION 'ARCHIVE_WRITE_STATISTICS' EXPORTING archive_handle = gv_handle.

ARCHIVE_PROTOCOL_WRITE CALL FUNCTION 'ARCHIVE_PROTOCOL_WRITE'.

ARCHIVE_CLOSE_FILE CALL FUNCTION 'ARCHIVE_CLOSE_FILE' EXPORTING archive_handle = gv_handle.

ARCHIVE_PUT_TABLE CALL FUNCTION 'ARCHIVE_PUT_TABLE' EXPORTING archive_handle = p_handle record_structure = 'ADMI_VARIA' TABLES table = lt_admi_varia.

ARCHIVE_PUT_RECORD CALL FUNCTION 'ARCHIVE_PUT_RECORD' EXPORTING archive_handle = p_handle record = ls_admi_stats record_structure = 'ADMI_STATS'.

ARCHIVE_PUT_TABLE CALL FUNCTION 'ARCHIVE_PUT_TABLE' EXPORTING archive_handle = p_handle record_structure = ls_application_info-infotab TABLES table = EXCEPTIONS OTHERS = 1.

TEXT_ARCHIVE_OBJECT CALL FUNCTION 'TEXT_ARCHIVE_OBJECT' EXPORTING archive_handle = p_handle id = '0001' language = sy-langu name = lv_name object = 'ARCHIVE'.

ARCHIVE_PUT_TABLE CALL FUNCTION 'ARCHIVE_PUT_TABLE' EXPORTING archive_handle = gv_handle record_structure = 'ADMI_URIS' TABLES table = lt_admi_uris.

ARCHIVE_PUT_TABLE CALL FUNCTION 'ARCHIVE_PUT_TABLE' EXPORTING archive_handle = gv_handle record_structure = 'ADMI_ORIGINS' TABLES table = lt_admi_origins.



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