REEDMSETTLARCH_ARCH is a standard Executable ABAP Report available within your SAP system (depending on your version and release level). It is used for This report is the first step in the process of archiving settlement documents...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 REEDMSETTLARCH_ARCH 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_AR_ILM = D .
Selection Text: P_COMENT = D .
Selection Text: P_DELTST = D .
Selection Text: P_DEST = D .
Selection Text: P_PROT = D .
Selection Text: P_PROT_O = D .
Selection Text: P_SNAP = D .
Selection Text: P_WRIPRD = D .
Selection Text: P_WRITST = D .
Selection Text: SE_DOC = D .
Selection Text: SE_PROC = D .
Selection Text: SE_SELE = D .
Selection Text: SE_STATI = D .
Title: Analyse and Archive Settlement Documents
Text Symbol: 002 = &3 Settlement Documents Archived
Text Symbol: S01 = Archiving
Text Symbol: ST1 = Active
Text Symbol: ST2 = Canceled
Text Symbol: ST3 = Created
INCLUDE REEDMSETTLARCH_ARCH_TOP.
INCLUDE REEDMSETTLARCH_ARCH_A01.
INCLUDE MEAMAC00.
INCLUDE EMSG.
INCLUDE IEEDMERRORMACROS.
INCLUDE ARCH_WRITE_PRG_STANDARD2.
No SAP DATABASE tables are accessed within this REPORT code!
ARCHIVE_PROTOCOL_LINE_DETAIL CALL FUNCTION 'ARCHIVE_PROTOCOL_LINE_DETAIL'.
ISU_DETERMINE_ARCHIVE_DATES CALL FUNCTION 'ISU_DETERMINE_ARCHIVE_DATES' EXPORTING x_archive_obj = co_doc_arch_obj IMPORTING y_archive_dates = lv_archive_dates EXCEPTIONS not_found = 1 OTHERS = 2.
ARCHIVE_PROTOCOL_COLLECT CALL FUNCTION 'ARCHIVE_PROTOCOL_COLLECT' EXPORTING i_msgtype = '2' i_msgid = 'EARC' i_msgno = '002'.
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 = p_deltst object = co_doc_arch_obj create_archive_file = p_wriprd comments = p_coment do_not_delete_data = v_not_delete output_sel_screen_when_dialog = co_true output_sel_screen_when_batch = co_true destroy = v_destroy IMPORTING archive_handle = g_archive_handle EXCEPTIONS OTHERS = 1.
ARCHIVE_PROTOCOL_COLLECT CALL FUNCTION 'ARCHIVE_PROTOCOL_COLLECT' EXPORTING i_msgtype = '2' i_msgid = sy-msgid i_msgno = sy-msgno i_msgv1 = sy-msgv1 i_msgv2 = sy-msgv2 i_msgv3 = sy-msgv3 i_msgv4 = sy-msgv4.
ARCHIVE_WRITE_STATISTICS CALL FUNCTION 'ARCHIVE_WRITE_STATISTICS' EXPORTING archive_handle = g_archive_handle.
ARCHIVE_CLOSE_FILE CALL FUNCTION 'ARCHIVE_CLOSE_FILE' EXPORTING archive_handle = g_archive_handle EXCEPTIONS OTHERS = 1.
ARCHIVE_PROTOCOL_COLLECT CALL FUNCTION 'ARCHIVE_PROTOCOL_COLLECT' EXPORTING i_msgtype = '2' i_msgid = 'EARC' i_msgno = '202'.
ARCHIVE_PROTOCOL_WRITE CALL FUNCTION 'ARCHIVE_PROTOCOL_WRITE'.
ARCHIVE_PROTOCOL_COLLECT CALL FUNCTION 'ARCHIVE_PROTOCOL_COLLECT' EXPORTING i_msgtype = '2' i_msgid = 'EARC' i_msgno = '203'.
PROGRESS_INDICATOR CALL FUNCTION 'PROGRESS_INDICATOR' EXPORTING i_text = text-002 i_total = li_num_entries_processed i_output_immediately = space.
PROGRESS_INDICATOR CALL FUNCTION 'PROGRESS_INDICATOR' EXPORTING i_text = text-002 i_total = li_num_entries_processed i_output_immediately = co_true.
ARCHIVE_NEW_OBJECT CALL FUNCTION 'ARCHIVE_NEW_OBJECT' "New Object register EXPORTING archive_handle = g_archive_handle object_id = lc_archive_index EXCEPTIONS OTHERS = 1.
ARCHIVE_PROTOCOL_COLLECT CALL FUNCTION 'ARCHIVE_PROTOCOL_COLLECT' EXPORTING i_object =
-eedmsettldoc-settldoc i_msgtype = '2' i_msgid = 'EARC' i_msgno = '208' i_msgv1 = -eedmsettldoc-settldoc.
ARCHIVE_PROTOCOL_COLLECT CALL FUNCTION 'ARCHIVE_PROTOCOL_COLLECT' EXPORTING i_object =
-eedmsettldoc-settldoc i_msgtype = '2' i_msgid = 'EARC' i_msgno = '209' i_msgv1 = -eedmsettldoc-settldoc.
ARCHIVE_SAVE_OBJECT CALL FUNCTION 'ARCHIVE_SAVE_OBJECT' EXPORTING archive_handle = g_archive_handle EXCEPTIONS termination_requested = 1 data_object_not_saved = 2 OTHERS = 3.
ARCHIVE_PROTOCOL_COLLECT CALL FUNCTION 'ARCHIVE_PROTOCOL_COLLECT' EXPORTING i_msgtype = '2' i_msgid = 'EARC' i_msgno = '205'.
CALL FUNCTION 'ARCHIVE_PROTOCOL_COLLECT' EXPORTING i_msgtype = '2' i_msgid = 'EARC' i_msgno = '204'.
ARCHIVE_PROTOCOL_COLLECT CALL FUNCTION 'ARCHIVE_PROTOCOL_COLLECT' EXPORTING i_object = lc_settldoc_text i_msgtype = '2' i_msgid = sy-msgid i_msgno = sy-msgno i_msgv1 = sy-msgv1 i_msgv2 = sy-msgv2 i_msgv3 = sy-msgv3 i_msgv4 = sy-msgv4.
ARCHIVE_PROTOCOL_COLLECT CALL FUNCTION 'ARCHIVE_PROTOCOL_COLLECT' EXPORTING i_object = lc_settldoc_text i_msgtype = '1' i_msgid = 'EARC' i_msgno = '213' i_msgv1 = lc_settldoc_text i_msgv2 = lc_datefrom i_msgv3 = lc_dateto.
ARCHIVE_PROTOCOL_COLLECT CALL FUNCTION 'ARCHIVE_PROTOCOL_COLLECT' EXPORTING i_msgtype = '1' i_msgid = 'EARC' i_msgno = '601'.
ARCHIVE_PROTOCOL_COLLECT CALL FUNCTION 'ARCHIVE_PROTOCOL_COLLECT' EXPORTING i_msgtype = '1' i_msgid = 'EARC' i_msgno = '602'.
ARCHIVE_PROTOCOL_COLLECT CALL FUNCTION 'ARCHIVE_PROTOCOL_COLLECT' EXPORTING i_object = lc_settldoc_text i_msgtype = '1' i_msgid = 'EARC' i_msgno = '213' i_msgv1 = lc_settldoc_text i_msgv2 = lc_datefrom i_msgv3 = lc_dateto.
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 REEDMSETTLARCH_ARCH or its description.
REEDMSETTLARCH_ARCH - Analyse and Archive Settlement Documents REEDMSETTLARCH_ARCH - Analyse and Archive Settlement Documents REEDMSETTLANALYSEPOD - Analysis for Point of Delivery REEDMSETTLANALYSEPOD - Analysis for Point of Delivery REEDMSETTLANALYSEDOC - Point of Delivery Analysis for Document REEDMSETTLANALYSEDOC - Point of Delivery Analysis for Document