SAP Reports / Programs

RELARCH_ANALYSE_EABL SAP ABAP Report - Analyze installation meter reading results for archiving







RELARCH_ANALYSE_EABL is a standard Executable ABAP Report available within your SAP system (depending on your version and release level). It is used for Analyze archivability of meter reading results (RELARCH_ANALYSE_EABL) This report implements the first step in the process for archiving 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_ANALYSE_EABL 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_ANALYSE_EABL. "Basic submit
SUBMIT RELARCH_ANALYSE_EABL AND RETURN. "Return to original report after report execution complete
SUBMIT RELARCH_ANALYSE_EABL 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: SEL_ANL = Installation
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 = Detail log
Selection Text: P_BAD = Only faulty docs in detail log
Selection Text: P_ALLG = Only statistics
Title: Analyze installation meter reading results for archiving
Text Symbol: S04 = Log Type
Text Symbol: S03 = Technical Options
Text Symbol: S02 = Runtime Restriction
Text Symbol: S01 = Addit. Restriction of Archiving Quantity
Text Symbol: P03 = Archivable MR Results
Text Symbol: P02 = Inspected installations
Text Symbol: P01 = Statistics
Text Symbol: D11 = Archiving time cannot be determined
Text Symbol: D10 = There are no archivable meter reading results
Text Symbol: D04 = Number archivable meter reading results
Text Symbol: D03 = Inst. Number
Text Symbol: D02 = Detail log: Non-archivable meter reading results
Text Symbol: D01 = Detail log: Archivable meter reading results
Text Symbol: B09 = Program stop: Archiving limits too far in future
Text Symbol: B08 = Program stop: Error writing to table EABLARCHIVE
Text Symbol: B07 = Program stop: Error reading the meter reading reasons
Text Symbol: B06 = Program stop: Error reading the archiving limit
Text Symbol: B05 = Program stop: Error reading the archiving Customizing
Text Symbol: B04 = Program stop: Error reading the start of the billing period
Text Symbol: B03 = Program stop: Error updating archive indicator in table EABL
Text Symbol: B02 = Program stop: Error writing to table EABLARC
Text Symbol: B01 = Program stop: Error reading table EANL
Text Symbol: A00 = >>> Test Run <<<
Text Symbol: 002 = &3 Meter Readings Analyzed


INCLUDES used within this REPORT RELARCH_ANALYSE_EABL

INCLUDE: RELARCH_TYP,
RELARCH_CON,
RELARCH_TOP,


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:

ISU_REV_ARCH_CUST_GET CALL FUNCTION 'ISU_REV_ARCH_CUST_GET' EXPORTING x_systdatum = sy-datum EXCEPTIONS general_fault = 1 OTHERS = 2.

ISU_REV_PERSIST_TIME_GET CALL FUNCTION 'ISU_REV_PERSIST_TIME_GET' EXPORTING x_abrvorg = space IMPORTING y_persist_time = min_persist_time y_stopdt = stop_date y_exist = min_exist.

EXIT_RELARCH_ANALYSE_EABL_001 CALL FUNCTION 'EXIT_RELARCH_ANALYSE_EABL_001' CHANGING stop_date = stop_date.

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.

ISU_DB_EABL_SELECT_INSTALL_ENT CALL FUNCTION 'ISU_DB_EABL_SELECT_INSTALL_ENT' EXPORTING x_anlage = lwa_eanls-anlage x_adatbis = arch_border TABLES ty_eabl = ieabl EXCEPTIONS not_found = 01 OTHERS = 02.

ISU_DB_EABL_SELECT_EQUNR CALL FUNCTION 'ISU_DB_EABL_SELECT_EQUNR' EXPORTING x_adatvon = '19000101' x_adatbis = arch_border TABLES ty_eabl = ieabl ty_eablg = ieablg tx_equnr = tequnr EXCEPTIONS not_found = 1 OTHERS = 5.

ISU_DB_ERCH_EARLIEST CALL FUNCTION 'ISU_DB_ERCH_EARLIEST' EXPORTING x_anlage = h_anlage IMPORTING y_begabrpe = begabrpe EXCEPTIONS not_found = 1 OTHERS = 2.

ISU_DB_EVER_SELECT_ANLAGE CALL FUNCTION 'ISU_DB_EVER_SELECT_ANLAGE' EXPORTING x_actual = 'X' TABLES txy_ever = iever EXCEPTIONS OTHERS = 1.

ISU_DB_EVER_SELECT_ANLAGE1 * CALL FUNCTION 'ISU_DB_EVER_SELECT_ANLAGE1' * EXPORTING * x_instln = h_anlage * x_keydate = ieablg-abrdats * IMPORTING * y_ever = w_ever * EXCEPTIONS * not_found = 1 * system_error = 2 * OTHERS = 3.

ARCHIVE_PROTOCOL_WRITE CALL FUNCTION 'ARCHIVE_PROTOCOL_WRITE'.

ARCHIVE_PROTOCOL_COLLECT CALL FUNCTION 'ARCHIVE_PROTOCOL_COLLECT' EXPORTING i_object = i_detail_prot-anlage i_msgtype = '1' i_msgid = 'EARC' i_msgno = '361'.

ARCHIVE_PROTOCOL_COLLECT CALL FUNCTION 'ARCHIVE_PROTOCOL_COLLECT' EXPORTING i_object = i_detail_prot-anlage i_msgtype = '1' i_msgid = 'EARC' i_msgno = '362' i_msgv1 = i_detail_prot-anz_eabl i_msgv2 = i_detail_prot-anlage.

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

ARCHIVE_PROTOCOL_INIT CALL FUNCTION 'ARCHIVE_PROTOCOL_INIT' EXPORTING i_detailprotocol = p_detail.

ARCHIVE_PROTOCOL_COLLECT CALL FUNCTION 'ARCHIVE_PROTOCOL_COLLECT' EXPORTING i_object = i_detail_prot-anlage i_msgtype = '2' i_msgid = 'EARC' i_msgno = '365' i_msgv1 = i_detail_prot-anlage.

ISU_DB_EABLARCHIVE_UPDATE CALL FUNCTION 'ISU_DB_EABLARCHIVE_UPDATE' EXPORTING x_upd_mode = co_upd_insert TABLES xt_eablarchive = t_eabls EXCEPTIONS parameter_error = 1 update_error = 2 OTHERS = 3.

DB_COMMIT CALL FUNCTION 'DB_COMMIT'.

DB_COMMIT





CALL FUNCTION 'DB_COMMIT'.

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_eanl-anlage i_msgtype = '2' i_msgid = 'EARC' i_msgno = msg.

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 = xv_anlage i_msgtype = '2' i_msgid = 'EARC' i_msgno = msg.

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_msgtype = '2' i_msgid = 'EARC' i_msgno = 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_ANALYSE_EABL or its description.