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

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







RELARCH_ANALYSE_EABL_ILM 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 archiving meter reading results: Analysis for the archivability of meter reading results: Second step: Archive 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_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_ANALYSE_EABL_ILM. "Basic submit
SUBMIT RELARCH_ANALYSE_EABL_ILM AND RETURN. "Return to original report after report execution complete
SUBMIT RELARCH_ANALYSE_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_PRETST = D .
Selection Text: P_PREPRD = D .
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 = Statistics Only
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 <<<


INCLUDES used within this REPORT RELARCH_ANALYSE_EABL_ILM

INCLUDE: RELARCH_TYP,
RELARCH_CON,




RELARCH_TOP,
INCLUDE ARCH_PREPROC_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'.

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.

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 = '337' i_msgv1 = wi_statistic-eanl-read i_msgv2 = wi_statistic-eanl-process.

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

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_prot.

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