SAP Reports / Programs | Archiving | SAP Utilities | Archiving(IS-U-TO-ARC) SAP IS

RELARCH_ARCH_EABL_ILM SAP ABAP Report - Archive Meter Reading Results







RELARCH_ARCH_EABL_ILM 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: The actual archiving of the meter reading 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_ILM into the relevant SAP transactions such as SE38 or SE80


ABAP code to call this SAP report using the submit statement

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.






SUBMIT RELARCH_ARCH_EABL_ILM. "Basic submit
SUBMIT RELARCH_ARCH_EABL_ILM AND RETURN. "Return to original report after report execution complete
SUBMIT RELARCH_ARCH_EABL_ILM VIA SELECTION-SCREEN. "Display selection screen of submitted report to user
    See more syntax options for the ABAP SUBMIT statement


Text pool values


Selection Text: P_LAUFZ = Runtime Restriction Active
Selection Text: P_LFZDAT = End Date
Selection Text: P_LFZTIM = End Time
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 .
Title: Archive Meter Reading Results
Text Symbol: S03 = Log Type
Text Symbol: S02 = Runtime Restriction
Text Symbol: S01 = Technical Options
Text Symbol: P12 = Non-Archived Meter Reading Results
Text Symbol: P11 = Number of Related EABLG 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: A00 = >>> Test Run <<<
Text Symbol: B01 = Program Stop: Error Opening Archive File
Text Symbol: B02 = Program stop: Error reading archive information
Text Symbol: B03 = Program stop: Error reading table EABP/EJVL
Text Symbol: B04 = Program stop: Error reading table EABL
Text Symbol: B06 = Program stop: error deleting entry in EABLARCHIVE
Text Symbol: B07 = Program stop: Error closing archive file
Text Symbol: D01 = MR Document Number
Text Symbol: D04 = EABL
Text Symbol: D05 = EABLG
Text Symbol: D09 = xxxxxxxxxxxx
Text Symbol: D11 = Cause
Text Symbol: D12 = Detail log: Archivable meter reading results
Text Symbol: D13 = Detail log: Archived meter reading results
Text Symbol: D14 = Detail log: Meter reading results that are not archived





Text Symbol: D15 = Error requesting a new data object
Text Symbol: D16 = Error saving data object
Text Symbol: D17 = Error writing an EABL record in the data object
Text Symbol: D18 = Error writing an EABLG record in the data object
Text Symbol: D22 = No meter reading results were archived
Text Symbol: D23 = Number of Entries
Text Symbol: P01 = Statistics


INCLUDES used within this REPORT RELARCH_ARCH_EABL_ILM

INCLUDE: RELARCH_TYP,
RELARCH_CON,
RELARCH_TOP,
INCLUDE ARCH_WRITE_PRG_STANDARD2.


TABLES used within REPORT and the associated SELECT statement:

No SAP DATABASE tables are accessed within this REPORT code!


Function Modules used within report and the associated call statement:

ARCHIVE_PROTOCOL_LINE_DETAIL CALL FUNCTION 'ARCHIVE_PROTOCOL_LINE_DETAIL'.

ARCHIVE_OPEN_FOR_WRITE CALL FUNCTION 'ARCHIVE_OPEN_FOR_WRITE' EXPORTING call_delete_job_in_test_mode = xv_testl create_archive_file = lv_crt_arc object = co_arc_objeabl comments = xv_comment do_not_delete_data = xv_not_delete output_sel_screen_when_dialog = co_true output_sel_screen_when_batch = co_true destroy = xv_destroy 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.

PROGRESS_INDICATOR CALL FUNCTION 'PROGRESS_INDICATOR' EXPORTING i_msgid = 'EARC' i_msgno = '382' i_msgv1 = wa_statistic-eabl_sing-process i_processed = wa_statistic-eabl_sing-process i_output_immediately = co_true.

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_PROTOCOL_COLLECT CALL FUNCTION 'ARCHIVE_PROTOCOL_COLLECT' EXPORTING i_object = xi_archobj_eabl-eabl-ablbelnr i_msgtype = '2' i_msgid = 'EARC' i_msgno = '373' i_msgv1 = xi_archobj_eabl-eabl-ablbelnr.

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 data_object_not_saved = 6 OTHERS = 7.






ARCHIVE_PROTOCOL_COLLECT CALL FUNCTION 'ARCHIVE_PROTOCOL_COLLECT' EXPORTING i_object = xi_archobj_eabl-eabl-ablbelnr i_msgtype = '2' i_msgid = 'EARC' i_msgno = '205'.

ARCHIVE_PROTOCOL_COLLECT CALL FUNCTION 'ARCHIVE_PROTOCOL_COLLECT' EXPORTING i_object = xi_archobj_eabl-eabl-ablbelnr 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 = xi_archobj_eabl-eabl-ablbelnr i_msgtype = '2' i_msgid = 'EARC' i_msgno = '447' i_msgv1 = sy-subrc i_msgv2 = xi_archobj_eabl-eabl-ablbelnr.

ARCHIVE_PROTOCOL_COLLECT CALL FUNCTION 'ARCHIVE_PROTOCOL_COLLECT' EXPORTING i_object = xi_archobj_eabl-eabl-ablbelnr i_msgtype = '1' i_msgid = 'EARC' i_msgno = '382' i_msgv1 = xi_archobj_eabl-eabl-ablbelnr.

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 = xi_archobj_eabl-eabl-ablbelnr i_msgtype = '2' i_msgid = 'EARC' i_msgno = '374' i_msgv1 = sy-subrc i_msgv2 = xi_archobj_eabl-eabl-ablbelnr.

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_WRITE_STATISTICS CALL FUNCTION 'ARCHIVE_WRITE_STATISTICS' EXPORTING archive_handle = wa_arc_data-handle.

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 = '202'.

ISU_DB_EABLARCHIVE_UPDATE 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_COLLECT CALL FUNCTION 'ARCHIVE_PROTOCOL_COLLECT' EXPORTING i_msgtype = '1' i_msgid = 'EARC' i_msgno = '450' i_msgv1 = sy-subrc i_msgv2 = 'EABLARCHIVE'.

ARCHIVE_PROTOCOL_INIT CALL FUNCTION 'ARCHIVE_PROTOCOL_INIT' EXPORTING i_detailprotocol = xv_detail i_protocol_output = xv_prot_o.

ARCHIVE_PROTOCOL_WRITE CALL FUNCTION 'ARCHIVE_PROTOCOL_WRITE'.

ARCHIVE_PROTOCOL_COLLECT CALL FUNCTION 'ARCHIVE_PROTOCOL_COLLECT' EXPORTING i_msgtype = '3' i_msgid = 'EARC' i_msgno = '604'.

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.



Contribute (Add Comments)

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_ILM or its description.