/AIN/DM_ARCH_WRITE is a standard Executable ABAP Report available within your SAP system (depending on your version and release level). Below is the basic information available for this SAP report including which OBJECTS it interacts with such as TABLES, FUNCTION MODULES, INCLUDES ETC. Also check out the submitted Comments related to this SAP report or see any standard documentation available.
If you would like to execute this report or see the full code listing simply enter /AIN/DM_ARCH_WRITE 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: S_ACO_TY = D .
Selection Text: SO_DO_TY = D .
Selection Text: SO_DO_ST = D .
Selection Text: SO_DO_ID = D .
Selection Text: SO_AC_TY = D .
Selection Text: P_WRITST = D .
Selection Text: P_WRIPRD = D .
Selection Text: P_PROT_O = D .
Selection Text: P_PROT = D .
Selection Text: P_EXTL = Action Execution Start Time
Selection Text: P_EXTH = Action Execution Start Time
Selection Text: P_EXDL = Action Execution Start Date
Selection Text: P_EXDH = Action Execution Start Date
Selection Text: P_DUTL = D .
Selection Text: P_DUTH = D .
Selection Text: P_DUDL = D .
Selection Text: P_DUDH = D .
Selection Text: P_DOCS = Archive Documents with actions
Selection Text: P_DELTST = D .
Selection Text: P_COMENT = D .
Selection Text: P_AXTL = Action Execution Start Time
Selection Text: P_AXTH = Action Execution Start Time
Selection Text: P_AXDL = Action Execution Start Date
Selection Text: P_AXDH = Action Execution Start Date
Selection Text: P_ACT = Archive Actions
Title: Archiving AIN Actions and Documents: Write program
Text Symbol: 005 = AIN Actions without documents
Text Symbol: 004 = archived
Text Symbol: 003 = &1 (&2 of &3) objects are archived
Text Symbol: 002 = Test Data for Archiving with /AIN/ARCH
Text Symbol: 001 = to
Text Symbol: 000 = AIN Documents with Actions
INCLUDE ARCH_WRITE_PRG_STANDARD2.
No SAP DATABASE tables are accessed within this REPORT code!
ARCHIVE_PROTOCOL_INIT CALL FUNCTION 'ARCHIVE_PROTOCOL_INIT' EXPORTING i_detailprotocol = p_prot.
ARCHIVE_OPEN_FOR_WRITE CALL FUNCTION 'ARCHIVE_OPEN_FOR_WRITE' EXPORTING call_delete_job_in_test_mode = lv_delete_testmode comments = p_coment create_archive_file = lv_files_create object = /ain/cl_c=>archiving_object output_sel_screen_when_dialog = '' IMPORTING archive_handle = lv_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 = lv_handle EXCEPTIONS internal_error = 1 wrong_access_to_archive = 2 OTHERS = 3.
ARCHIVE_SAVE_OBJECT CALL FUNCTION 'ARCHIVE_SAVE_OBJECT' EXPORTING archive_handle = lv_handle EXCEPTIONS file_io_error = 1 internal_error = 2 open_error = 3 termination_requested = 4 wrong_access_to_archive = 5 OTHERS = 6.
PROGRESS_INDICATOR CALL FUNCTION 'PROGRESS_INDICATOR' EXPORTING i_text = text-003 i_processed = lv_objects_processed i_total = lv_total_object_number IMPORTING e_progress_sent = lv_progress_sent.
DB_COMMIT CALL FUNCTION 'DB_COMMIT'.
ARCHIVE_NEW_OBJECT CALL FUNCTION 'ARCHIVE_NEW_OBJECT' EXPORTING archive_handle = lv_handle EXCEPTIONS internal_error = 1 wrong_access_to_archive = 2 OTHERS = 3.
ARCHIVE_SAVE_OBJECT CALL FUNCTION 'ARCHIVE_SAVE_OBJECT' EXPORTING archive_handle = lv_handle EXCEPTIONS file_io_error = 1 internal_error = 2 open_error = 3 termination_requested = 4 wrong_access_to_archive = 5 OTHERS = 6.
PROGRESS_INDICATOR CALL FUNCTION 'PROGRESS_INDICATOR' EXPORTING i_text = text-003 i_processed = lv_objects_processed i_total = lv_total_object_number IMPORTING e_progress_sent = lv_progress_sent.
DB_COMMIT CALL FUNCTION 'DB_COMMIT'.
PROGRESS_INDICATOR CALL FUNCTION 'PROGRESS_INDICATOR' EXPORTING i_text = text-003 i_processed = lv_objects_processed i_total = lv_total_object_number i_output_immediately = 'X'.
ARCHIVE_WRITE_STATISTICS CALL FUNCTION 'ARCHIVE_WRITE_STATISTICS' EXPORTING archive_handle = lv_handle EXCEPTIONS internal_error = 1 OTHERS = 2.
ARCHIVE_CLOSE_FILE CALL FUNCTION 'ARCHIVE_CLOSE_FILE' EXPORTING archive_handle = lv_handle EXCEPTIONS internal_error = 1 wrong_access_to_archive = 2 OTHERS = 3.
ARCHIVE_PROTOCOL_WRITE CALL FUNCTION 'ARCHIVE_PROTOCOL_WRITE'.
Although this basic information may have limited use it does provide an easy to find location to store any knowledge about this program/report.
/AIN/DM_ARCH_WRITE - Archiving AIN Actions and Documents: Write program /AIN/DM_ARCH_WRITE - Archiving AIN Actions and Documents: Write program /AIN/DM_ARCH_DELETE_F01 - Include /AIN/DM_ARCH_DELETE_F01 /AIN/DM_ARCH_DELETE - Archiving AIN Actions and Documents: Delete program /AIN/DM_ARCH_DELETE - Archiving AIN Actions and Documents: Delete program /AIN/BW_QUERY_09_URL - Program /AIN/BW_QUERY_01_URL