SAP Reports / Programs

RELARCH_DEL_EABL_ILM SAP ABAP Report - Delete Archived Meter Reading Results







RELARCH_DEL_EABL_ILM is a standard Executable ABAP Report available within your SAP system (depending on your version and release level). It is used for Delete Archived Meter Reading Results (RELARCH_DEL_EABL) This report is the third step in archiving meter reading results: The deletion of meter reading results from the database...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_DEL_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_DEL_EABL_ILM. "Basic submit
SUBMIT RELARCH_DEL_EABL_ILM AND RETURN. "Return to original report after report execution complete
SUBMIT RELARCH_DEL_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_PROT_O = D .
Selection Text: P_PROT = D .
Selection Text: P_DELTST = D .
Selection Text: P_DELPRD = D .
Title: Delete Archived Meter Reading Results
Text Symbol: S01 = Technical Options
Text Symbol: P11 = Number of Deleted EABLG Entries
Text Symbol: P08 = Number of Deleted EABL Entries
Text Symbol: P06 = Number of EABLG Entries Selected
Text Symbol: P03 = Number of EABL Entries Selected
Text Symbol: P02 = Number of MR Results to Delete
Text Symbol: P01 = Statistics
Text Symbol: D13 = Detail log: Deleted meter reading results
Text Symbol: D12 = Detail log: Meter reading results for deletion
Text Symbol: D09 = Number of Entries
Text Symbol: D08 = EABLG
Text Symbol: D04 = EABL
Text Symbol: D01 = MR Document Number
Text Symbol: B08 = Program stop: Error occurred when deleting from the EMRDETAIL table
Text Symbol: B07 = Program stop: Error deleting entry in table EABLG
Text Symbol: B06 = Program stop: Error deleting entry in table EABL
Text Symbol: B05 = Program stop: Error reading record for an archiving object
Text Symbol: B04 = Program stop: The commit counter set up in Customizing is invalid
Text Symbol: B03 = Program stop: Error closing archive file
Text Symbol: B02 = Program stop: Error reading archive information
Text Symbol: B01 = Program Stop: Error Opening Archive File
Text Symbol: A00 = >>> Test Run <<<


INCLUDES used within this REPORT RELARCH_DEL_EABL_ILM

INCLUDE: RELARCH_TYP,
RELARCH_CON,
RELARCH_TOP,
INCLUDE ARCH_DELETE_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_OPEN_FOR_DELETE CALL FUNCTION 'ARCHIVE_OPEN_FOR_DELETE' EXPORTING object = co_arc_objeabl test_mode = p_deltst IMPORTING archive_handle = wa_arc_data-handle EXCEPTIONS file_already_open = 1 file_io_error = 2 internal_error = 3 no_files_available = 4 object_not_found = 5 open_error = 6 not_authorized = 7 OTHERS = 8.

ARCHIVE_PROTOCOL_COLLECT CALL FUNCTION 'ARCHIVE_PROTOCOL_COLLECT' EXPORTING i_msgtype = '2' i_msgid = 'EARC' i_msgno = '369'.

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

ARCHIVE_GET_NEXT_OBJECT CALL FUNCTION 'ARCHIVE_GET_NEXT_OBJECT' EXPORTING archive_handle = wa_arc_data-handle EXCEPTIONS end_of_file = 1.

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

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 = '338' i_msgv1 = wa_statistic-eabl-read i_msgv2 = wa_statistic-eabl-process i_msgv3 = wa_statistic-eablg-read i_msgv4 = wa_statistic-eablg-process.

ARCHIVE_PROTOCOL_COLLECT CALL FUNCTION 'ARCHIVE_PROTOCOL_COLLECT' EXPORTING i_object = e_detail_prot-ablbelnr i_msgtype = '1' i_msgid = 'EARC' i_msgno = '339' i_msgv1 = wa_statistic-eablqdconv-read i_msgv2 = wa_statistic-eablqdconv-process.

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_INIT CALL FUNCTION 'ARCHIVE_PROTOCOL_INIT' EXPORTING i_detailprotocol = p_prot.

ARCHIVE_GET_CUSTOMIZING_DATA CALL FUNCTION 'ARCHIVE_GET_CUSTOMIZING_DATA' EXPORTING object = co_arc_objeabl IMPORTING commit_count_for_delete_prg = wa_arc_data-commit_count.

ARCHIVE_PROTOCOL_COLLECT CALL FUNCTION 'ARCHIVE_PROTOCOL_COLLECT' EXPORTING i_msgtype = '2' i_msgid = 'EARC' i_msgno = '368'.

ARCHIVE_GET_TABLE CALL FUNCTION 'ARCHIVE_GET_TABLE' EXPORTING archive_handle = wa_arc_data-handle record_structure = 'EABL' all_records_of_object = 'X' automatic_conversion = 'X' TABLES table = li_eabl EXCEPTIONS end_of_object = 1 internal_error = 2 wrong_access_to_archive = 3 OTHERS = 4.

ARCHIVE_PROTOCOL_COLLECT CALL FUNCTION 'ARCHIVE_PROTOCOL_COLLECT' EXPORTING i_msgtype = '2' i_msgid = 'EARC' i_msgno = '379'.

ARCHIVE_GET_TABLE CALL FUNCTION 'ARCHIVE_GET_TABLE' EXPORTING archive_handle = wa_arc_data-handle record_structure = 'EABLG' all_records_of_object = 'X' automatic_conversion = 'X' TABLES table = li_eablg EXCEPTIONS end_of_object = 1 internal_error = 2 wrong_access_to_archive = 3 OTHERS = 4.

ARCHIVE_PROTOCOL_COLLECT





CALL FUNCTION 'ARCHIVE_PROTOCOL_COLLECT' EXPORTING i_msgtype = '2' i_msgid = 'EARC' i_msgno = '379'.

ARCHIVE_GET_TABLE CALL FUNCTION 'ARCHIVE_GET_TABLE' EXPORTING archive_handle = wa_arc_data-handle record_structure = 'EABLQDCONV' all_records_of_object = 'X' automatic_conversion = 'X' TABLES table = li_eablqdconv EXCEPTIONS end_of_object = 1 internal_error = 2 wrong_access_to_archive = 3 OTHERS = 4.

ARCHIVE_PROTOCOL_COLLECT CALL FUNCTION 'ARCHIVE_PROTOCOL_COLLECT' EXPORTING i_msgtype = '2' i_msgid = 'EARC' i_msgno = '379'.

ISU_DB_EABL_DEL_INS CALL FUNCTION 'ISU_DB_EABL_DEL_INS' EXPORTING x_upd_flag = co_delete TABLES xt_eabl = xi_eabl EXCEPTIONS input_error = 1 delete_error = 2 parameter_error = 4 OTHERS = 5.

ISU_DB_EABLG_DEL_INS CALL FUNCTION 'ISU_DB_EABLG_DEL_INS' EXPORTING x_upd_flag = co_delete TABLES xt_eablg = xi_eablg EXCEPTIONS input_error = 1 delete_error = 2 parameter_error = 4 OTHERS = 5.

ARCHIVE_GIVE_STATISTICS CALL FUNCTION 'ARCHIVE_GIVE_STATISTICS' EXPORTING archive_handle = wa_arc_data-handle TABLES table = it_stat.

ARCHIVE_PROTOCOL_COLLECT CALL FUNCTION 'ARCHIVE_PROTOCOL_COLLECT' EXPORTING i_msgtype = '2' i_msgid = 'EARC' i_msgno = '360'.

ARCHIVE_PROTOCOL_COLLECT CALL FUNCTION 'ARCHIVE_PROTOCOL_COLLECT' EXPORTING i_object = lwa_eabl i_msgtype = '2' i_msgid = 'EARC' i_msgno = xv_msg.



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