RCCARCH1 is a standard Executable ABAP Report available within your SAP system (depending on your version and release level). It is used for Archiving Change Numbers You use this program to archive
If you would like to execute this report or see the full code listing simply enter RCCARCH1 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: CREATE = Generate Archive File
Selection Text: TESTRUN = Deletion Program as Test Run
Title: Program for Archiving Change Master Records
Text Symbol: 001 = This Is Only Test Data. It Can Be Deleted.
Text Symbol: 002 = Archived Change Master Records
Text Symbol: 003 = Change Master Record
Text Symbol: 004 = Change Master Record Description
No INCLUDES are used within this REPORT code!
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 = 'X' object = 'LO_CHANGEM' importing archive_handle = handle exceptions internal_error = 1 object_not_found = 2 open_error = 3 not_authorized = 4 others = 5.
ARCHIVE_REGISTER_CLASS call function 'ARCHIVE_REGISTER_CLASS' exporting archive_class = 'TEXT' archive_handle = handle exceptions class_not_found = 1 internal_error = 2 wrong_access_to_archive = 3 file_io_error = 4 others = 5.
ARCHIVE_REGISTER_CLASS call function 'ARCHIVE_REGISTER_CLASS' exporting archive_class = 'CLASSIFY' archive_handle = handle exceptions class_not_found = 1 internal_error = 2 wrong_access_to_archive = 3 file_io_error = 4 others = 5.
ARCHIVE_NEW_OBJECT call function 'ARCHIVE_NEW_OBJECT' exporting archive_handle = handle exceptions internal_error = 1 wrong_access_to_archive = 2 others = 3.
ARCHIVE_PUT_RECORD call function 'ARCHIVE_PUT_RECORD' exporting archive_handle = handle record = itab_aenr record_flags = ' ' record_structure = 'AENR' exceptions internal_error = 1 wrong_access_to_archive = 2 invalid_record_structure = 3 others = 4.
TEXT_ARCHIVE_OBJECT call function 'TEXT_ARCHIVE_OBJECT' exporting archive_handle = handle id = 'AENR' language = sy-langu name = name object = 'CHANGE' object_delete_flag = 'X' exceptions wrong_access_to_archive = 1 others = 2.
CLASSIFY_ARCHIVE_OBJECT call function 'CLASSIFY_ARCHIVE_OBJECT' exporting archive_handle = handle object = object ptable = 'AENR' object_delete_flag = 'X' exceptions wrong_access_to_archive = 1 others = 2.
ARCHIVE_PUT_RECORD call function 'ARCHIVE_PUT_RECORD' exporting archive_handle = handle record = itab_aenv record_flags = ' ' record_structure = 'AENV' exceptions internal_error = 1 wrong_access_to_archive = 2 invalid_record_structure = 3 others = 4.
ARCHIVE_PUT_RECORD call function 'ARCHIVE_PUT_RECORD' exporting archive_handle = handle record = itab_aeoi record_flags = ' ' record_structure = 'AEOI' exceptions internal_error = 1 wrong_access_to_archive = 2 invalid_record_structure = 3 others = 4.
TEXT_ARCHIVE_OBJECT call function 'TEXT_ARCHIVE_OBJECT' exporting archive_handle = handle id = 'AEOI' language = sy-langu name = name object = 'CHANGE' object_delete_flag = 'X' exceptions wrong_access_to_archive = 1 others = 2.
ARCHIVE_PUT_RECORD call function 'ARCHIVE_PUT_RECORD' exporting archive_handle = handle record = itab_aedt record_flags = ' ' record_structure = 'AEDT' exceptions internal_error = 1 wrong_access_to_archive = 2 invalid_record_structure = 3 others = 4.
ARCHIVE_PUT_RECORD call function 'ARCHIVE_PUT_RECORD' exporting archive_handle = handle record = itab_aehi record_flags = ' ' record_structure = 'AEHI' exceptions internal_error = 1 wrong_access_to_archive = 2 invalid_record_structure = 3 others = 4.
ARCHIVE_PUT_RECORD call function 'ARCHIVE_PUT_RECORD' exporting archive_handle = handle record = itab_aeef record_flags = ' ' record_structure = 'AEEF' 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 = 'X' exceptions internal_error = 1 wrong_access_to_archive = 2 others = 3.
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.