SAP Reports / Programs

RSAADMLE SAP ABAP Report - Archive Management Data Read Program







RSAADMLE is a standard Executable ABAP Report available within your SAP system (depending on your version and release level). It is used for ..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 RSAADMLE 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 RSAADMLE. "Basic submit
SUBMIT RSAADMLE AND RETURN. "Return to original report after report execution complete
SUBMIT RSAADMLE 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_USER = D .
Selection Text: S_OBJECT = D .
Selection Text: S_DOC = D .
Selection Text: S_DATE = Date of Archiving
Selection Text: P_SELFIL = Select files manually
Selection Text: P_AS = Archive Information System
Title: Archive Management Data Read Program
Text Symbol: 079 = Deleted DB Cluster Space in MB
Text Symbol: 080 = DB Structure Space (Delete)
Text Symbol: 081 = Deleted DB Structure Space in MB
Text Symbol: 082 = DB Space (Reload)
Text Symbol: 083 = Reloaded DB Space in MB
Text Symbol: 084 = DB Table Space (Reload)
Text Symbol: 085 = Reloaded DB Table Space in MB
Text Symbol: 086 = DB Index Space (Reload)
Text Symbol: 087 = Reloaded DB Index Space in MB
Text Symbol: 088 = DB Cluster Space (Reload)
Text Symbol: 089 = Reloaded DB Cluster Space in MB
Text Symbol: 090 = DB Structure Space (Reload)
Text Symbol: 091 = Reloaded DB Structure Space in MB
Text Symbol: 092 = Written Data Objects
Text Symbol: 093 = Number of Written Data Objects
Text Symbol: 094 = Deleted Data Objects
Text Symbol: 095 = Number of Deleted Data Objects
Text Symbol: 098 = Reloaded Data Objects
Text Symbol: 099 = Number of Reloaded Data Objects
Text Symbol: 100 = Number of Delete Jobs
Text Symbol: 101 = Number of Delete Jobs
Text Symbol: 102 = Write Job Duration
Text Symbol: 103 = Write Job Duration (Hours)
Text Symbol: 104 = Delete Job Duration
Text Symbol: 105 = Average Delete Job Duration (Hours)
Text Symbol: 106 = Reload Job Duration
Text Symbol: 107 = Reload Job Duration (Hours)
Text Symbol: 108 = Policies Applied
Text Symbol: 150 = No entries exist
Text Symbol: 031 = Type of Archive Selection
Text Symbol: 034 = Sessions Archived with BC_ARCHIVE





Text Symbol: 035 = Archive Files
Text Symbol: 036 = Statistics
Text Symbol: 037 = Resources
Text Symbol: 038 = File Info
Text Symbol: 039 = Details
Text Symbol: 050 = Session Number
Text Symbol: 051 = Archiving Session Number
Text Symbol: 052 = Object
Text Symbol: 053 = Archiving Object
Text Symbol: 054 = Client
Text Symbol: 055 = Client
Text Symbol: 056 = Date
Text Symbol: 057 = Archiving Date
Text Symbol: 058 = Disk Space
Text Symbol: 059 = Disk Space in MB
Text Symbol: 060 = Header Data
Text Symbol: 061 = Proportion of Header Data in %
Text Symbol: 062 = DB Space (Write)
Text Symbol: 063 = Written DB Space in MB
Text Symbol: 064 = DB Table Space (Write)
Text Symbol: 065 = Written DB Table Space in MB
Text Symbol: 066 = DB Index Space (Write)
Text Symbol: 067 = Written DB Index Space in MB
Text Symbol: 068 = DB Cluster Space (Write)
Text Symbol: 069 = Written DB Cluster Space in MB
Text Symbol: 070 = DB Structure Space (Write)
Text Symbol: 071 = Written DB Structure Space in MB
Text Symbol: 072 = DB Space (Delete)
Text Symbol: 073 = Deleted DB Space in MB
Text Symbol: 074 = DB Table Space (Delete)
Text Symbol: 075 = Deleted DB Table Space in MB
Text Symbol: 076 = DB Index Space (Delete)
Text Symbol: 077 = Deleted DB Index Space in MB
Text Symbol: 078 = DB Cluster Space (Delete)


INCLUDES used within this REPORT RSAADMLE

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:

AS_API_READ CALL FUNCTION 'AS_API_READ' EXPORTING i_fieldcat = 'SAP_BC_ARCHIVE1' i_selections = lt_frange[] IMPORTING e_result = lt_files_and_offset_as_aux[] EXCEPTIONS no_infostruc_found = 2.






AS_API_READ CALL FUNCTION 'AS_API_READ' EXPORTING i_fieldcat = 'SAP_BC_ARCHIVE2' i_selections = lt_frange[] IMPORTING e_result = lt_files_and_offset_as_aux[] EXCEPTIONS no_infostruc_found = 2.

ARCHIVE_FILES_ACCESS_KIND_GET CALL FUNCTION 'ARCHIVE_FILES_ACCESS_KIND_GET' TABLES it_files_and_pos = lt_files_and_offset_as et_files_seq_read = lt_files_read_sequential et_files_obj_read = lt_files_read_by_object.

ARCHIVE_OPEN_FOR_READ CALL FUNCTION 'ARCHIVE_OPEN_FOR_READ' EXPORTING object = lc_object IMPORTING archive_handle = l_handle TABLES archive_files = lt_files_rng[] EXCEPTIONS internal_error = 1 no_files_available = 2 object_not_found = 3 open_error = 4 OTHERS = 5.

ARCHIVE_GET_NEXT_OBJECT CALL FUNCTION 'ARCHIVE_GET_NEXT_OBJECT' EXPORTING archive_handle = l_handle IMPORTING session = l_session EXCEPTIONS end_of_file = 01 internal_error = 02 open_error = 03 wrong_access_to_archive = 04.

ARCHIVE_CLOSE_FILE CALL FUNCTION 'ARCHIVE_CLOSE_FILE' EXPORTING archive_handle = l_handle.

ARCHIVE_READ_OBJECT CALL FUNCTION 'ARCHIVE_READ_OBJECT' EXPORTING object = 'BC_ARCHIVE' archivkey = -archivekey offset = -archiveofs IMPORTING archive_handle = l_handle.

ARCHIVE_CLOSE_FILE CALL FUNCTION 'ARCHIVE_CLOSE_FILE' EXPORTING archive_handle = l_handle.

ARCHIVE_OPEN_FOR_READ CALL FUNCTION 'ARCHIVE_OPEN_FOR_READ' EXPORTING object = 'BC_ARCHIVE' IMPORTING archive_handle = l_handle EXCEPTIONS internal_error = 01 no_files_available = 02 object_not_found = 03 open_error = 04.

ARCHIVE_GET_NEXT_OBJECT CALL FUNCTION 'ARCHIVE_GET_NEXT_OBJECT' EXPORTING archive_handle = l_handle IMPORTING session = l_session EXCEPTIONS end_of_file = 01 internal_error = 02 open_error = 03 wrong_access_to_archive = 04.

ARCHIVE_CLOSE_FILE CALL FUNCTION 'ARCHIVE_CLOSE_FILE' EXPORTING archive_handle = l_handle.

ARCHIVE_GET_INFORMATION CALL FUNCTION 'ARCHIVE_GET_INFORMATION' EXPORTING archive_handle = l_handle IMPORTING archive_creation_release = s_creation_release EXCEPTIONS OTHERS = 1.

ARCHIVE_GET_STRUCTURES CALL FUNCTION 'ARCHIVE_GET_STRUCTURES' EXPORTING archive_handle = l_handle TABLES record_structures = lt_structures_aux EXCEPTIONS wrong_access_to_archive = 1 OTHERS = 2.

ARCHIVE_GET_FIRST_RECORD CALL FUNCTION 'ARCHIVE_GET_FIRST_RECORD' EXPORTING archive_handle = l_handle IMPORTING record_structure = ls_structure-name record_ref = lr_table_ref EXCEPTIONS end_of_object = 1 internal_error = 2 wrong_access_to_archive = 3 OTHERS = 4.

ARCHIVE_GET_TABLE CALL FUNCTION 'ARCHIVE_GET_TABLE' EXPORTING archive_handle = l_handle record_structure = 'ADMI_FILES' all_records_of_object = 'X' TABLES table = lt_admi_files EXCEPTIONS end_of_object = 1 internal_error = 2 wrong_access_to_archive = 3 OTHERS = 4.

ARCHIVE_GET_TABLE CALL FUNCTION 'ARCHIVE_GET_TABLE' EXPORTING archive_handle = l_handle record_structure = 'ADMI_FILE_DAVLNK' all_records_of_object = 'X' TABLES table = lt_admi_file_davlnk EXCEPTIONS end_of_object = 1 internal_error = 2 wrong_access_to_archive = 3 OTHERS = 4.

ARCHIVE_GET_TABLE CALL FUNCTION 'ARCHIVE_GET_TABLE' EXPORTING archive_handle = l_handle record_structure = 'ADMI_FILE_RULES' all_records_of_object = 'X' TABLES table = lt_admi_file_rules EXCEPTIONS end_of_object = 1 internal_error = 2 wrong_access_to_archive = 3 OTHERS = 4.

ARCHIVE_GET_TABLE CALL FUNCTION 'ARCHIVE_GET_TABLE' EXPORTING archive_handle = l_handle record_structure = 'ADMI_SKIP' all_records_of_object = 'X' TABLES table = lt_admi_skip EXCEPTIONS end_of_object = 1 internal_error = 2 wrong_access_to_archive = 3 OTHERS = 4.

TEXT_READ_ARCHIVE_OBJECT CALL FUNCTION 'TEXT_READ_ARCHIVE_OBJECT' EXPORTING archive_handle = l_handle id = '0001' language = sy-langu name = l_name object = 'ARCHIVE' IMPORTING header = ls_doc_text-header TABLES lines = ls_doc_text-lines EXCEPTIONS OTHERS = 99.

ARCHIVE_GET_TABLE CALL FUNCTION 'ARCHIVE_GET_TABLE' EXPORTING archive_handle = l_handle record_structure = 'ADMI_XDOCS' all_records_of_object = 'X' TABLES table = lt_admi_xdocs EXCEPTIONS end_of_object = 1 internal_error = 2 wrong_access_to_archive = 3 OTHERS = 4.

TEXT_READ_ARCHIVE_OBJECT



CALL FUNCTION 'TEXT_READ_ARCHIVE_OBJECT' EXPORTING archive_handle = l_handle id = '0001' language = sy-langu name = l_name object = 'ARCHIVE' IMPORTING header = ls_doc_text-header TABLES lines = ls_doc_text-lines EXCEPTIONS OTHERS = 99.

ARCHIVE_GET_TABLE CALL FUNCTION 'ARCHIVE_GET_TABLE' EXPORTING archive_handle = l_handle record_structure = 'ADMI_VARIA' all_records_of_object = 'X' TABLES table = lt_admi_varia EXCEPTIONS end_of_object = 1 internal_error = 2 wrong_access_to_archive = 3 OTHERS = 4.

ARCHIVE_GET_TABLE CALL FUNCTION 'ARCHIVE_GET_TABLE' EXPORTING archive_handle = l_handle record_structure = 'ADMI_STATS' all_records_of_object = 'X' TABLES table = lt_admi_stats EXCEPTIONS end_of_object = 1 internal_error = 2 wrong_access_to_archive = 3 OTHERS = 4.

ARCHIVE_GET_TABLE CALL FUNCTION 'ARCHIVE_GET_TABLE' EXPORTING archive_handle = l_handle record_structure = ls_structure-name all_records_of_object = 'X' TABLES table = EXCEPTIONS end_of_object = 1 internal_error = 2 wrong_access_to_archive = 3 OTHERS = 4.

REUSE_ALV_GRID_DISPLAY CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY' EXPORTING i_callback_program = l_report i_callback_pf_status_set = 'SESSION_EVENT_PF_STATUS_SET' i_callback_user_command = 'SESSION_EVENT_USER_COMMAND' i_grid_title = l_grid_title is_layout = ls_layout it_fieldcat = lt_fieldcat it_sort = lt_sort i_save = 'A' is_variant = ls_variant TABLES t_outtab = gt_sessions_out EXCEPTIONS program_error = 1 OTHERS = 2.

REUSE_ALV_FIELDCATALOG_MERGE CALL FUNCTION 'REUSE_ALV_FIELDCATALOG_MERGE' EXPORTING i_program_name = l_report i_structure_name = 'ADMI_RUN' CHANGING ct_fieldcat = lt_fieldcat EXCEPTIONS inconsistent_interface = 1 program_error = 2 OTHERS = 3.

REUSE_ALV_FIELDCATALOG_MERGE CALL FUNCTION 'REUSE_ALV_FIELDCATALOG_MERGE' EXPORTING i_program_name = l_report i_structure_name = 'ADMI_XRUN' CHANGING ct_fieldcat = lt_fieldcat EXCEPTIONS inconsistent_interface = 1 program_error = 2 OTHERS = 3.

REUSE_ALV_GRID_DISPLAY CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY' EXPORTING i_callback_program = l_report i_grid_title = l_grid_title is_layout = ls_layout it_fieldcat = lt_fieldcat it_excluding = lt_extab it_sort = lt_sort i_save = 'A' is_variant = ls_variant TABLES t_outtab = gt_files_out EXCEPTIONS program_error = 1 OTHERS = 2.

REUSE_ALV_GRID_DISPLAY CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY' EXPORTING i_callback_program = l_report i_grid_title = l_grid_title is_layout = ls_layout it_fieldcat = lt_fieldcat it_excluding = lt_extab it_sort = lt_sort i_save = 'A' is_variant = ls_variant TABLES t_outtab = gt_file_davlnk_out EXCEPTIONS program_error = 1 OTHERS = 2.

REUSE_ALV_FIELDCATALOG_MERGE CALL FUNCTION 'REUSE_ALV_FIELDCATALOG_MERGE' EXPORTING i_program_name = l_report i_structure_name = 'ADMI_FILE_RULES' CHANGING ct_fieldcat = lt_fieldcat EXCEPTIONS inconsistent_interface = 1 program_error = 2 OTHERS = 3.

REUSE_ALV_GRID_DISPLAY CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY' EXPORTING i_callback_program = l_report i_grid_title = l_grid_title is_layout = ls_layout it_fieldcat = lt_fieldcat it_excluding = lt_extab i_save = 'A' is_variant = ls_variant TABLES t_outtab = gt_policy_outtab EXCEPTIONS program_error = 1 OTHERS = 2.

REUSE_ALV_FIELDCATALOG_MERGE CALL FUNCTION 'REUSE_ALV_FIELDCATALOG_MERGE' EXPORTING i_program_name = l_report i_structure_name = 'ADMI_FILES' CHANGING ct_fieldcat = lt_fieldcat EXCEPTIONS inconsistent_interface = 1 program_error = 2 OTHERS = 3.

REUSE_ALV_FIELDCATALOG_MERGE CALL FUNCTION 'REUSE_ALV_FIELDCATALOG_MERGE' EXPORTING i_program_name = l_report i_structure_name = 'ADMI_FILE_DAVLNK' CHANGING ct_fieldcat = lt_fieldcat EXCEPTIONS inconsistent_interface = 1 program_error = 2 OTHERS = 3.

EDIT_TEXT CALL FUNCTION 'EDIT_TEXT' EXPORTING display = 'X' header = ls_doc_text-header TABLES lines = ls_doc_text-lines EXCEPTIONS OTHERS = 99.

ARCHIVE_ADMIN_SHOW_VARIANT CALL FUNCTION 'ARCHIVE_ADMIN_SHOW_VARIANT' EXPORTING iv_session = ls_session_out-document it_admi_varia = lt_admi_varia iv_create_date = ls_session_out-creat_date iv_comment = ls_session_out-comments iv_archiving_object = ls_session_out-object.

REUSE_ALV_GRID_DISPLAY CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY' EXPORTING i_callback_program = l_report i_grid_title = l_grid_title is_layout = ls_layout it_fieldcat = lt_fieldcat it_excluding = lt_extab it_sort = lt_sort i_save = 'A' is_variant = ls_variant TABLES t_outtab = gt_statistics_out EXCEPTIONS program_error = 1 OTHERS = 2.

REUSE_ALV_GRID_DISPLAY CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY' EXPORTING i_callback_program = l_report i_grid_title = l_grid_title is_layout = ls_layout it_fieldcat = lt_fieldcat it_excluding = lt_extab it_sort = lt_sort i_save = 'A' is_variant = ls_variant TABLES t_outtab = gt_resources_out EXCEPTIONS program_error = 1 OTHERS = 2.

REUSE_ALV_FIELDCATALOG_MERGE CALL FUNCTION 'REUSE_ALV_FIELDCATALOG_MERGE' EXPORTING i_program_name = l_report i_structure_name = 'ADMI_XDOCS' CHANGING ct_fieldcat = lt_fieldcat EXCEPTIONS inconsistent_interface = 1 program_error = 2 OTHERS = 3.

REUSE_ALV_FIELDCATALOG_MERGE CALL FUNCTION 'REUSE_ALV_FIELDCATALOG_MERGE' EXPORTING i_program_name = l_report i_structure_name = ls_table_with_content-name CHANGING ct_fieldcat = lt_fieldcat EXCEPTIONS inconsistent_interface = 1 program_error = 2 OTHERS = 3.

REUSE_ALV_GRID_DISPLAY CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY' EXPORTING i_callback_program = l_report i_grid_title = l_grid_title is_layout = ls_layout it_fieldcat = lt_fieldcat it_excluding = lt_extab i_save = 'A' is_variant = ls_variant TABLES t_outtab = 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 RSAADMLE or its description.