RSLDARCH02 is a standard Executable ABAP Report available within your SAP system (depending on your version and release level). It is used for The program
If you would like to execute this report or see the full code listing simply enter RSLDARCH02 into the relevant SAP transactions such as SE38 or SE80
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.
Selection Text: P_DELETE = Delete
Selection Text: P_TEST = Test Run
Title: Delete Program for Database Log Archiving
Text Symbol: 001 = Flow Control
Text Symbol: 100 = No authorization to delete archived data from the system
Text Symbol: 101 = Archive Open Error
Text Symbol: 102 = Archive Read Error
Text Symbol: 103 = Archiving statistics write error
INCLUDE RSLD_DEF.
No SAP DATABASE tables are accessed within this REPORT code!
ARCHIVE_OPEN_FOR_DELETE CALL FUNCTION 'ARCHIVE_OPEN_FOR_DELETE' EXPORTING * ARCHIVE_NAME = ' ' object = dblog_arch_obj_name test_mode = testrun IMPORTING archive_handle = handle * TABLES * 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_INFORMATION CALL FUNCTION 'ARCHIVE_GET_INFORMATION' EXPORTING ARCHIVE_HANDLE = HANDLE IMPORTING ARCHIVE_CREATION_DATE = ARCH_info-DATE ARCHIVE_CREATION_RELEASE = ARCH_info-REL ARCHIVE_CREATION_SYSTEM = ARCH_info-SYST ARCHIVE_DOCUMENT = ARCH_info-DOC * ARCHIVE_NAME = * OBJECT = * ARCHIVE_CODE_PAGE = * ARCHIVE_NUMBER_FORMAT = * TABLES * USED_CLASSES = exceptions * internal_error = 1 * wrong_access_to_archive = 2 others = 0.
ARCHIVE_GET_CUSTOMIZING_DATA CALL FUNCTION 'ARCHIVE_GET_CUSTOMIZING_DATA' EXPORTING object = dblog_arch_obj_name IMPORTING commit_count_for_delete_prg = commit_cnt * MAINTAIN_INDEX = EXCEPTIONS * object_not_found = 1 others = 2.
ARCHIVE_GET_NEXT_OBJECT CALL FUNCTION 'ARCHIVE_GET_NEXT_OBJECT' EXPORTING archive_handle = handle * IMPORTING * OBJECT_ID = * OBJECT_OFFSET = * ARCHIVE_NAME = EXCEPTIONS end_of_file = 1 * file_io_error = 2 * internal_error = 3 * open_error = 4 * wrong_access_to_archive = 5 others = 6.
ARCHIVE_GET_TABLE CALL FUNCTION 'ARCHIVE_GET_TABLE' EXPORTING archive_handle = handle record_structure = dblog_log_table_name ALL_RECORDS_OF_OBJECT = 'X' AUTOMATIC_CONVERSION = 'X' * IMPORTING * RECORD_CURSOR = * RECORD_FLAGS = * RECORD_LENGTH = tables table = log_buffer * RECORD_FLAGS_TABLE = EXCEPTIONS * END_OF_OBJECT = 1 * INTERNAL_ERROR = 2 * WRONG_ACCESS_TO_ARCHIVE = 3 OTHERS = 0.
ARCHIVE_GIVE_STATISTICS CALL FUNCTION 'ARCHIVE_GIVE_STATISTICS' EXPORTING archive_handle = handle TABLES table = statistics_tab exceptions * internal_error = 1 others = 0. " ignore errors
ARCHIVE_WRITE_STATISTICS CALL FUNCTION 'ARCHIVE_WRITE_STATISTICS' EXPORTING archive_handle = handle * STATISTICS_ONLY_PER_RUN = ' ' EXCEPTIONS * internal_error = 1 others = 2.
ARCHIVE_CLOSE_FILE CALL FUNCTION 'ARCHIVE_CLOSE_FILE' EXPORTING archive_handle = handle EXCEPTIONS * internal_error = 1 * wrong_access_to_archive = 2 others = 0. " ignore errors
Although this basic information may have limited use it does provide an easy to find location to store any knowledge about this program/report.