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

REPDAR_ARCH_LINES_ILM SAP ABAP Report - Archive Print Document Line Items







REPDAR_ARCH_LINES_ILM is a standard Executable ABAP Report available within your SAP system (depending on your version and release level). It is used for Archive Print Document Line Items This report is the second step in the process of archiving print document line items: The writing of print document line items to an archive file, based on the analysis carried out in the first step...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_ARCH_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_ARCH_LINES_ILM. "Basic submit
SUBMIT REPDAR_ARCH_LINES_ILM AND RETURN. "Return to original report after report execution complete
SUBMIT REPDAR_ARCH_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_WRITST = D .
Selection Text: P_WRIPRD = D .
Selection Text: P_SNAP = D .
Selection Text: P_PROT_O = D .
Selection Text: P_PROT = D .
Selection Text: P_DEST = D .
Selection Text: P_DELTST = D .
Selection Text: P_COMENT = D .
Selection Text: P_LFZTIM = End Time
Selection Text: P_LFZDAT = End Date
Selection Text: P_LAUFZ = Runtime Restriction Active
Selection Text: P_AR_ILM = D .
Title: Archive Print Document Line Items
Text Symbol: S04 = Addit. Restriction of Archiving Quantity
Text Symbol: S03 = Runtime Restriction
Text Symbol: S02 = Log Type
Text Symbol: S01 = Technical Options
Text Symbol: P11 = No. of DBERDZ entries not archived
Text Symbol: P10 = No. of DBERDLB entries not archived
Text Symbol: P09 = No. of DBERDL entries not archived
Text Symbol: P08 = No. of archived DBERDZ entries
Text Symbol: P07 = No. of archived DBERDLB entries
Text Symbol: P06 = No. of archived DBERDL entries
Text Symbol: P05 = No. of selected DBERDZ entries
Text Symbol: P04 = No. of selected DBERDLB entries
Text Symbol: P03 = No. of selected DBERDL entries
Text Symbol: P02 = In document amount:
Text Symbol: P01 = Statistics
Text Symbol: A00 = >>> Test Run <<<


INCLUDES used within this REPORT REPDAR_ARCH_LINES_ILM

INCLUDE: REPDAR01_TYP,
REPDAR01_CON,
REPDAR01_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_objl 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 = sy-msgid i_msgno = sy-msgno i_msgv1 = sy-msgv1 i_msgv2 = sy-msgv2 i_msgv3 = sy-msgv3 i_msgv4 = sy-msgv4.

PROGRESS_INDICATOR CALL FUNCTION 'PROGRESS_INDICATOR' EXPORTING i_msgid = 'EARC' i_msgno = '413' i_msgv1 = wa_statistic-erdk-process i_processed = wa_statistic-erdk-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 = -erdk-opbel i_msgtype = '2' i_msgid = 'EARC' i_msgno = '411' i_msgv1 = sy-subrc i_msgv2 = -erdk-opbel.

ARCHIVE_PUT_RECORD CALL FUNCTION 'ARCHIVE_PUT_RECORD' EXPORTING archive_handle = wa_arc_data-handle record = -erdk record_structure = 'ERDK' 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 = 'DBERDL' TABLES table = lt_erdl 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 = 'DBERDLB' TABLES table = lt_erdlb 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 = 'DBERDZ' TABLES table = lt_erdz 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 = -erdk-opbel i_msgtype = '2' i_msgid = 'EARC' i_msgno = '205'.

ARCHIVE_PROTOCOL_COLLECT CALL FUNCTION 'ARCHIVE_PROTOCOL_COLLECT' EXPORTING i_object = -erdk-opbel 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 = -erdk-opbel 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 = -erdk-opbel i_msgtype = '1' i_msgid = 'EARC' i_msgno = '408' i_msgv1 = -erdk-opbel i_msgv2 = lv_nr_erdl i_msgv3 = lv_nr_erdlb.

ARCHIVE_PROTOCOL_COLLECT CALL FUNCTION 'ARCHIVE_PROTOCOL_COLLECT' EXPORTING i_object = -erdk-opbel i_msgtype = '1' i_msgid = 'EARC' i_msgno = '409' i_msgv1 = -erdk-opbel i_msgv2 = lv_nr_erdz.

ARCHIVE_PROTOCOL_COLLECT CALL FUNCTION 'ARCHIVE_PROTOCOL_COLLECT' EXPORTING i_object = -erdk-opbel i_msgtype = '1' i_msgid = 'EARC' i_msgno = '601'.

ARCHIVE_PROTOCOL_COLLECT CALL FUNCTION 'ARCHIVE_PROTOCOL_COLLECT' EXPORTING i_object = -erdk-opbel i_msgtype = '1' i_msgid = 'EARC' i_msgno = '602'.

ARCHIVE_PROTOCOL_COLLECT





CALL FUNCTION 'ARCHIVE_PROTOCOL_COLLECT' EXPORTING i_object = -erdk-opbel i_msgtype = '2' i_msgid = 'EARC' i_msgno = '410' i_msgv1 = sy-subrc i_msgv2 = -erdk-opbel.

ISU_DB_DBERDZ_SELECT CALL FUNCTION 'ISU_DB_DBERDZ_SELECT' TABLES xt_opbel = yt_opbel yt_erdz = lt_erdz yt_erdl = lt_erdl yt_erdlb = lt_erdlb EXCEPTIONS input_error = 1 OTHERS = 2.

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

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_ERDK_UPD_ARCFLAG CALL FUNCTION 'ISU_DB_ERDK_UPD_ARCFLAG' EXPORTING x_archive_flag = co_arcstat_2 TABLES xt_opbel = xt_opbel EXCEPTIONS update_error = 1 value_not_allowed = 2 general_fault = 3 OTHERS = 4.

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

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

ARCHIVE_PROTOCOL_WRITE CALL FUNCTION 'ARCHIVE_PROTOCOL_WRITE'.



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