RSLDARCH01 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 RSLDARCH01 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: TO_T = Time
Selection Text: TO_DAY = Date
Selection Text: P_TEST = Test Run
Selection Text: P_DEL_T = Archive
Selection Text: P_DEL_P = Archive and Delete
Selection Text: P_COM = Archiving Run Memo
Selection Text: FROM_T = Time
Selection Text: FROM_DAY = Date
Title: Archiving Program for Database Logs
Text Symbol: 104 = Archiving statistics write error
Text Symbol: 103 = Interruption by Administrator or Timeout
Text Symbol: 102 = Archive write error
Text Symbol: 101 = Archive creation error
Text Symbol: 100 = No authorization to create an archive
Text Symbol: 008 = Flow Control
Text Symbol: 005 = Time
Text Symbol: 004 = Date
Text Symbol: 003 = End of Archiving Period
Text Symbol: 002 = Beginning of Archiving Period
Text Symbol: 001 = Database Table Log
INCLUDE RSLD_DEF.
No SAP DATABASE tables are accessed within this REPORT code!
ARCHIVE_OPEN_FOR_WRITE CALL FUNCTION 'ARCHIVE_OPEN_FOR_WRITE' EXPORTING call_delete_job_in_test_mode = testrun create_archive_file = create_f object = dblog_arch_obj_name comments = comment_buf do_not_delete_data = ' ' IMPORTING archive_handle = handle EXCEPTIONS * internal_error = 1 * object_not_found = 2 * open_error = 3 not_authorized = 4 OTHERS = 5.
ARCHIVE_NEW_OBJECT CALL FUNCTION 'ARCHIVE_NEW_OBJECT' EXPORTING archive_handle = handle * OBJECT_ID = ' ' EXCEPTIONS * internal_error = 1 * wrong_access_to_archive = 2 OTHERS = 3.
ARCHIVE_PUT_TABLE CALL FUNCTION 'ARCHIVE_PUT_TABLE' EXPORTING archive_handle = handle * RECORD_FLAGS = ' ' record_structure = dblog_xkey_struc_name TABLES table = xkey_buffer exceptions * internal_error = 1 * wrong_access_to_archive = 2 * invalid_record_structure = 3 others = 4.
ARCHIVE_PUT_TABLE CALL FUNCTION 'ARCHIVE_PUT_TABLE' EXPORTING archive_handle = handle * RECORD_FLAGS = ' ' record_structure = dblog_log_table_name TABLES table = log_buffer exceptions * internal_error = 1 * wrong_access_to_archive = 2 * invalid_record_structure = 3 others = 4.
ARCHIVE_SAVE_OBJECT CALL FUNCTION 'ARCHIVE_SAVE_OBJECT' EXPORTING archive_handle = handle EXCEPTIONS * file_io_error = 1 * internal_error = 2 * open_error = 3 termination_requested = 4 * wrong_access_to_archive = 5 others = 6.
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 = 3.
Although this basic information may have limited use it does provide an easy to find location to store any knowledge about this program/report.