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

REPDAR_ANALYSE_LINES_ILM SAP ABAP Report - Analyze print document line items for archiving







REPDAR_ANALYSE_LINES_ILM is a standard Executable ABAP Report available within your SAP system (depending on your version and release level). It is used for Analyze print document line items for archiving This report carries out the first step in archiving print document line items: analyzing print document line items with a view to possibly archiving them...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 REPDAR_ANALYSE_LINES_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 REPDAR_ANALYSE_LINES_ILM. "Basic submit
SUBMIT REPDAR_ANALYSE_LINES_ILM AND RETURN. "Return to original report after report execution complete
SUBMIT REPDAR_ANALYSE_LINES_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: SE_VKONT = D .
Selection Text: SE_PORTI = D .
Selection Text: SE_OPBEL = D .
Selection Text: P_PROT_O = D .
Selection Text: P_PROT = D .
Selection Text: P_PRETST = D .
Selection Text: P_PREPRD = D .
Selection Text: P_LFZTIM = End Time
Selection Text: P_LFZDAT = End Date
Selection Text: P_LAUFZ = Runtime Restriction Active
Selection Text: P_AUTARC = Start archiving automatically
Title: Analyze print document line items 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: P10 = Doc. w/o line items
Text Symbol: P04 = Cannot Be Archived
Text Symbol: P03 = Can be archived
Text Symbol: P02 = Read
Text Symbol: P01 = Statistics
Text Symbol: A00 = >>> Test Run <<<


INCLUDES used within this REPORT REPDAR_ANALYSE_LINES_ILM

INCLUDE: REPDAR01_TYP,
REPDAR01_CON,
REPDAR01_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:

BP_EVENT_RAISE CALL FUNCTION 'BP_EVENT_RAISE' EXPORTING eventid = 'SAP_ISU_ARC_PRDOC_ANA_LINE_END' eventparm = sy-slset EXCEPTIONS bad_eventid = 1 eventid_does_not_exist = 2 eventid_missing = 3 raise_failed = 4 OTHERS = 5.

ARCHIVE_PROTOCOL_LINE_DETAIL CALL FUNCTION 'ARCHIVE_PROTOCOL_LINE_DETAIL'.

ARCHIVE_PROTOCOL_COLLECT CALL FUNCTION 'ARCHIVE_PROTOCOL_COLLECT' EXPORTING i_object = -opbel i_msgtype = '2' i_msgid = 'EARC' i_msgno = '401' i_msgv1 = -opbel.

ARCHIVE_PROTOCOL_COLLECT CALL FUNCTION 'ARCHIVE_PROTOCOL_COLLECT' EXPORTING i_object = -opbel i_msgtype = '2' i_msgid = 'EARC' i_msgno = '463' i_msgv1 = -opbel.

ARCHIVE_PROTOCOL_COLLECT CALL FUNCTION 'ARCHIVE_PROTOCOL_COLLECT' EXPORTING i_object = -opbel i_msgtype = '2' i_msgid = 'EARC' i_msgno = '461' i_msgv1 = lv_bbp_opbel i_msgv2 = -opbel.

ARCHIVE_PROTOCOL_COLLECT CALL FUNCTION 'ARCHIVE_PROTOCOL_COLLECT' EXPORTING i_object = -opbel i_msgtype = '2' i_msgid = 'EARC' i_msgno = '462' i_msgv1 = -opbel.

ARCHIVE_PROTOCOL_COLLECT CALL FUNCTION 'ARCHIVE_PROTOCOL_COLLECT' EXPORTING i_object = -opbel i_msgtype = '2' i_msgid = 'EARC' i_msgno = '465' i_msgv1 = -opbel.

ARCHIVE_PROTOCOL_COLLECT CALL FUNCTION 'ARCHIVE_PROTOCOL_COLLECT' EXPORTING i_object = -opbel i_msgtype = '1' i_msgid = 'EARC' i_msgno = '405' i_msgv1 = -opbel.

ARCHIVE_PROTOCOL_COLLECT CALL FUNCTION 'ARCHIVE_PROTOCOL_COLLECT' EXPORTING i_object = -opbel i_msgtype = '2' i_msgid = 'EARC' i_msgno = '402' i_msgv1 = -opbel.

ARCHIVE_PROTOCOL_COLLECT CALL FUNCTION 'ARCHIVE_PROTOCOL_COLLECT' EXPORTING i_object = -opbel i_msgtype = '1' i_msgid = 'EARC' i_msgno = '403' i_msgv1 = -opbel.

ARCHIVE_PROTOCOL_COLLECT CALL FUNCTION 'ARCHIVE_PROTOCOL_COLLECT' EXPORTING i_object = -opbel i_msgtype = '2' i_msgid = 'EARC' i_msgno = '404' i_msgv1 = -opbel i_msgv2 = 'ETOAR002'.

ISU_DB_ERDK_UPDATE_MULT CALL FUNCTION 'ISU_DB_ERDK_UPDATE_MULT' TABLES xt_erdk = lt_erdk EXCEPTIONS update_error = 1 input_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 = '406' i_msgv1 = 'ERDK' i_msgv2 = lv_first_opbel i_msgv3 = lv_last_opbel i_msgv4 = sy-subrc.

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_msgtype = '3' i_msgid = 'EARC' i_msgno = '606' i_msgv1 = wa_statistic-erdk-read i_msgv2 = wa_statistic-erdk-process i_msgv3 = lv_diff.

ARCHIVE_PROTOCOL_COLLECT CALL FUNCTION 'ARCHIVE_PROTOCOL_COLLECT' EXPORTING i_msgtype = '3' i_msgid = 'EARC' i_msgno = '608' i_msgv1 = wa_statistic-erdk-nolin.

ARCHIVE_PROTOCOL_WRITE CALL FUNCTION 'ARCHIVE_PROTOCOL_WRITE'.

ARCHIVE_PROTOCOL_INIT





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

ISU_DB_ERDB_SELECT_DOC_KK CALL FUNCTION 'ISU_DB_ERDB_SELECT_DOC_KK' EXPORTING x_invopbel = p_erdk-abwbl TABLES yt_erdb = lt_erdb EXCEPTIONS not_found = 1 system_error = 2 OTHERS = 3.

ISU_DB_ERDK_SINGLE CALL FUNCTION 'ISU_DB_ERDK_SINGLE' EXPORTING x_opbel = lt_erdb-opbel IMPORTING y_erdk = l_erdk EXCEPTIONS not_found = 1 not_qualified = 2 system_error = 3 OTHERS = 4.

FKK_BP_LINE_ITEMS_SELECT CALL FUNCTION 'FKK_BP_LINE_ITEMS_SELECT' EXPORTING i_augbl = p_erdk-opbel ix_augbl = co_true ix_sample_flag = co_true TABLES pt_fkkop = lt_fkkop pt_selecttab = lt_select pt_wheretab = lt_where_op.

FKK_REPEAT_LINE_ITEMS_SELECT CALL FUNCTION 'FKK_REPEAT_LINE_ITEMS_SELECT' EXPORTING i_augbl = p_erdk-opbel ix_augbl = co_true ix_sample_flag = co_true TABLES pt_fkkopw = lt_fkkopw pt_selecttab = lt_select pt_wheretab = lt_where_opw.

ISU_DB_EABP_SELECT_RANGE_ACTIV CALL FUNCTION 'ISU_DB_EABP_SELECT_RANGE_ACTIV' TABLES xt_opbel = lt_opbel yt_eabp = lt_eabp EXCEPTIONS system_error = 1 not_found = 2 waers_different = 3 OTHERS = 4.

ISU_DB_DEREGSWITCHSYST_SELECT CALL FUNCTION 'ISU_DB_DEREGSWITCHSYST_SELECT' IMPORTING e_xtax_on_agg_post = loc_xtax EXCEPTIONS error_message = 0 OTHERS = 0.

ISU_DEREG_INFO_FROM_PRINTDOC CALL FUNCTION 'ISU_DEREG_INFO_FROM_PRINTDOC' EXPORTING x_printdoc = p_erdk-opbel IMPORTING yt_dfkkthi = lt_dfkkthi EXCEPTIONS OTHERS = 1.



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