RELARCH_ARCH_EABL is a standard Executable ABAP Report available within your SAP system (depending on your version and release level). It is used for Archive Meter Reading Results (RELARCH_ARCH_EABL) This report is the second step in archiving meter reading results and performs the actual archiving of these results...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 RELARCH_ARCH_EABL 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_TESTL = Test Run
Selection Text: P_LFZTIM = End Time
Selection Text: P_LFZDAT = End Date
Selection Text: P_LAUFZ = Runtime Restriction Active
Selection Text: P_DETAIL = Detailed Log
Selection Text: P_COMM = Comment for archive run
Selection Text: P_BAD = Only faulty docs in detail log
Selection Text: P_ALLG = Short Log Only
Title: Archive Meter Reading Results
Text Symbol: S03 = Log Type
Text Symbol: S02 = Runtime Restriction
Text Symbol: S01 = Technical Options
Text Symbol: P13 = Number of EABLQDCONV Entries Selected
Text Symbol: P12 = Non-Archived Meter Reading Results
Text Symbol: P11 = Number of Related EABLG Entries
Text Symbol: P09 = Number of Related EABLQDCONV Entries
Text Symbol: P08 = Number of Related EABL Entries
Text Symbol: P07 = Archived Meter Reading Results
Text Symbol: P06 = Number of EABLG Entries Selected
Text Symbol: P05 = Number of EABL Entries Selected
Text Symbol: P02 = Archivable Meter Reading Results
Text Symbol: P01 = Statistics
Text Symbol: D23 = Number of Entries
Text Symbol: D22 = No meter reading results were archived
Text Symbol: D18 = Error writing an EABLG record in the data object
Text Symbol: D17 = Error writing an EABL record in the data object
Text Symbol: D16 = Error saving data object
Text Symbol: D15 = Error requesting a new data object
Text Symbol: D14 = Detail log: Meter reading results that are not archived
Text Symbol: D13 = Detail log: Archived meter reading results
Text Symbol: D12 = Detail log: Archivable meter reading results
Text Symbol: D11 = Cause
Text Symbol: D09 = xxxxxxxxxxxx
Text Symbol: D05 = EABLG
Text Symbol: D04 = EABL
Text Symbol: D01 = MR Document Number
Text Symbol: B07 = Program stop: error closing archive file
Text Symbol: B06 = Program stop: error deleting entry in EABLARCHIVE
INCLUDE: RELARCH_TYP,
RELARCH_CON,
RELARCH_TOP,
No SAP DATABASE tables are accessed within this REPORT code!
ARCHIVE_OPEN_FOR_WRITE CALL FUNCTION 'ARCHIVE_OPEN_FOR_WRITE' EXPORTING object = co_arc_objeabl comments = p_comm call_delete_job_in_test_mode = p_testl IMPORTING archive_handle = wa_arc_data-handle EXCEPTIONS internal_error = 1 object_not_found = 2 open_error = 3 not_authorized = 4 OTHERS = 5.
ARCHIVE_PROTOCOL_COLLECT CALL FUNCTION 'ARCHIVE_PROTOCOL_COLLECT' EXPORTING i_msgtype = '2' i_msgid = 'EARC' i_msgno = '376'.
ARCHIVE_GET_INFORMATION CALL FUNCTION 'ARCHIVE_GET_INFORMATION' EXPORTING archive_handle = wa_arc_data-handle IMPORTING archive_name = wa_arc_data-name EXCEPTIONS internal_error = 1 wrong_access_to_archive = 2 OTHERS = 3.
ARCHIVE_PROTOCOL_COLLECT CALL FUNCTION 'ARCHIVE_PROTOCOL_COLLECT' EXPORTING i_msgtype = '2' i_msgid = 'EARC' i_msgno = '369'.
ISU_DB_EABLARCHIVE_CURSOR CALL FUNCTION 'ISU_DB_EABLARCHIVE_CURSOR' IMPORTING y_eabl_arc_cursor = v_eabl_cursor.
ARCHIVE_NEW_OBJECT CALL FUNCTION 'ARCHIVE_NEW_OBJECT' EXPORTING archive_handle = wa_arc_data-handle object_id = lv_archive_objid EXCEPTIONS internal_error = 1 wrong_access_to_archive = 2 OTHERS = 3.
ARCHIVE_PUT_TABLE CALL FUNCTION 'ARCHIVE_PUT_TABLE' EXPORTING archive_handle = wa_arc_data-handle record_structure = 'EABL' TABLES table = li_eabl 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 = wa_arc_data-handle record_structure = 'EABLG' TABLES table = li_eablg 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 = wa_arc_data-handle record_structure = 'EABLQDCONV' TABLES table = li_eablqdconv 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 = wa_arc_data-handle EXCEPTIONS file_io_error = 1 internal_error = 2 open_error = 3 termination_requested = 4 wrong_access_to_archive = 5 OTHERS = 6.
ISU_DB_EABL_SINGLE CALL FUNCTION 'ISU_DB_EABL_SINGLE' EXPORTING x_ablbelnr = xi_eabls-ablbelnr IMPORTING y_eabl = lwa_eabl TABLES ty_eablg = li_eablg EXCEPTIONS not_found = 1 OTHERS = 2.
ARCHIVE_PROTOCOL_COLLECT call function 'ARCHIVE_PROTOCOL_COLLECT' exporting i_msgtype = '1' i_msgid = 'EARC' i_msgno = '386' i_msgv1 = xi_eabls-ablbelnr i_msgv2 = xi_eabls-adat.
ARCHIVE_CLOSE_FILE CALL FUNCTION 'ARCHIVE_CLOSE_FILE' EXPORTING archive_handle = wa_arc_data-handle EXCEPTIONS internal_error = 1 wrong_access_to_archive = 2 OTHERS = 3.
ARCHIVE_PROTOCOL_COLLECT CALL FUNCTION 'ARCHIVE_PROTOCOL_COLLECT' EXPORTING i_msgtype = '2' i_msgid = 'EARC' i_msgno = '377'.
CALL FUNCTION 'ISU_DB_EABLARCHIVE_UPDATE' EXPORTING x_upd_mode = co_delete TABLES xt_eablarchive = li_eabls EXCEPTIONS parameter_error = 1 update_error = 2 OTHERS = 3.
DB_COMMIT CALL FUNCTION 'DB_COMMIT'.
ARCHIVE_PROTOCOL_INIT CALL FUNCTION 'ARCHIVE_PROTOCOL_INIT' EXPORTING i_detailprotocol = p_detail.
ARCHIVE_PROTOCOL_WRITE CALL FUNCTION 'ARCHIVE_PROTOCOL_WRITE'.
ARCHIVE_PROTOCOL_COLLECT CALL FUNCTION 'ARCHIVE_PROTOCOL_COLLECT' EXPORTING i_object = e_detail_prot-ablbelnr i_msgtype = '1' i_msgid = 'EARC' i_msgno = '385' i_msgv1 = e_detail_prot-ablbelnr i_msgv2 = e_detail_prot-anz_eabl i_msgv3 = e_detail_prot-anz_eablg i_msgv4 = e_detail_prot-anz_eablqdconv.
ARCHIVE_PROTOCOL_COLLECT CALL FUNCTION 'ARCHIVE_PROTOCOL_COLLECT' EXPORTING i_msgtype = '2' i_msgid = 'EARC' i_msgno = '372'.
ARCHIVE_PROTOCOL_COLLECT CALL FUNCTION 'ARCHIVE_PROTOCOL_COLLECT' EXPORTING i_object = e_detail_prot-ablbelnr i_msgtype = '2' i_msgid = 'EARC' i_msgno = '373' i_msgv1 = e_detail_prot-ablbelnr.
ARCHIVE_PROTOCOL_COLLECT CALL FUNCTION 'ARCHIVE_PROTOCOL_COLLECT' EXPORTING i_object = e_detail_prot-ablbelnr i_msgtype = '2' i_msgid = 'EARC' i_msgno = '374' i_msgv1 = e_detail_prot-ablbelnr.
ARCHIVE_PROTOCOL_COLLECT CALL FUNCTION 'ARCHIVE_PROTOCOL_COLLECT' EXPORTING i_object = e_detail_prot-ablbelnr i_msgtype = '2' i_msgid = 'EARC' i_msgno = '375' i_msgv1 = e_detail_prot-ablbelnr.
ARCHIVE_PROTOCOL_COLLECT CALL FUNCTION 'ARCHIVE_PROTOCOL_COLLECT' EXPORTING i_object = e_detail_prot-ablbelnr i_msgtype = '2' i_msgid = 'EARC' i_msgno = '366' i_msgv1 = e_detail_prot-anz_eabl i_msgv2 = e_detail_prot-anz_eablg.
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 RELARCH_ARCH_EABL or its description.
RELARCH_ARCH_EABL - Archive Meter Reading Results RELARCH_ARCH_EABL - Archive Meter Reading Results RELARCH_ANALYSE_EABL_ILM - Analyze installation meter reading results for archiving RELARCH_ANALYSE_EABL_ILM - Analyze installation meter reading results for archiving RELARCH_ANALYSE_EABL - Analyze installation meter reading results for archiving RELARCH_ANALYSE_EABL - Analyze installation meter reading results for archiving