SAP Reports / Programs | Basis Components | Basis Components | Table History(BC-CUS-TOL-ALO) SAP BC

RSLDARCH02 SAP ABAP Report - Delete Program for Database Log Archiving







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 RSLDARCH02 deletes table log entries from the database, which have been transferred to an 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 RSLDARCH02 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 RSLDARCH02. "Basic submit
SUBMIT RSLDARCH02 AND RETURN. "Return to original report after report execution complete
SUBMIT RSLDARCH02 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_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


INCLUDES used within this REPORT RSLDARCH02

INCLUDE RSLD_DEF.


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_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



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