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

REAARCH_DELETE_LINES SAP ABAP Report - Delete Archived Billing Document Line Items







REAARCH_DELETE_LINES is a standard Executable ABAP Report available within your SAP system (depending on your version and release level). It is used for Delete archived billing document line items This report covers the third step in archiving billing document line items: deleting line item data on the basis of the archive previously generated...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 REAARCH_DELETE_LINES 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 REAARCH_DELETE_LINES. "Basic submit
SUBMIT REAARCH_DELETE_LINES AND RETURN. "Return to original report after report execution complete
SUBMIT REAARCH_DELETE_LINES 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_DELPRD = D .
Selection Text: P_DELTST = D .
Selection Text: P_PROT = D .
Selection Text: P_PROT_O = D .
Title: Delete Archived Billing Document Line Items
Text Symbol: 002 = &1 % (&2 of &3) of Billing Documents (Lines) Deleted
Text Symbol: E04 = Program stop: invalid Customizing for ISU_BILL object (commit counter)


INCLUDES used within this REPORT REAARCH_DELETE_LINES

INCLUDE: IEAARCH_DELETE_LINES01.
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_GET_CUSTOMIZING_DATA CALL FUNCTION 'ARCHIVE_GET_CUSTOMIZING_DATA' EXPORTING object = co_isu_bill_lines_obj IMPORTING commit_count_for_delete_prg = gv_archive_data-commit_count.

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

ARCHIVE_PROTOCOL_INIT CALL FUNCTION 'ARCHIVE_PROTOCOL_INIT' EXPORTING i_detailprotocol = p_prot.

ARCHIVE_OPEN_FOR_DELETE CALL FUNCTION 'ARCHIVE_OPEN_FOR_DELETE' EXPORTING object = co_isu_bill_lines_obj test_mode = p_deltst IMPORTING archive_handle = gv_archive_data-handle EXCEPTIONS OTHERS = 01.

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

ISU_GET_ARCHIVE_INFORMATION CALL FUNCTION 'ISU_GET_ARCHIVE_INFORMATION' EXPORTING im_handle = gv_archive_data-handle IMPORTING ex_num_objects = li_total_docs EXCEPTIONS OTHERS = 1.

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

ARCHIVE_GET_NEXT_OBJECT CALL FUNCTION 'ARCHIVE_GET_NEXT_OBJECT' EXPORTING archive_handle = gv_archive_data-handle IMPORTING object_id = gv_archive_data-object_id EXCEPTIONS end_of_file = 1 OTHERS = 2.

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

PROGRESS_INDICATOR CALL FUNCTION 'PROGRESS_INDICATOR' EXPORTING i_text = text-002 i_processed = li_doc_count2 " note 1393380 i_total = li_total_docs i_output_immediately = space.

PROGRESS_INDICATOR CALL FUNCTION 'PROGRESS_INDICATOR' EXPORTING i_text = text-002 i_processed = li_doc_count2 " note 1393380 i_total = li_total_docs i_output_immediately = co_true.

ARCHIVE_WRITE_STATISTICS CALL FUNCTION 'ARCHIVE_WRITE_STATISTICS' EXPORTING archive_handle = gv_archive_data-handle.

ARCHIVE_CLOSE_FILE CALL FUNCTION 'ARCHIVE_CLOSE_FILE' EXPORTING archive_handle = gv_archive_data-handle EXCEPTIONS OTHERS = 1.

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

ARCHIVE_PROTOCOL_WRITE CALL FUNCTION 'ARCHIVE_PROTOCOL_WRITE'.

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

ARCHIVE_PROTOCOL_COLLECT CALL FUNCTION 'ARCHIVE_PROTOCOL_COLLECT' EXPORTING i_object = wa_belnr i_msgtype = '1' i_msgid = 'EARC' i_msgno = '239' i_msgv1 = wa_belnr.

ISU_DB_ERCHZ_MULTIPLE_UPDATE CALL FUNCTION 'ISU_DB_ERCHZ_MULTIPLE_UPDATE' EXPORTING x_upd_mode = co_upd_delete TABLES xt_dberchz = xt_dberchz EXCEPTIONS not_found = 1 OTHERS = 2.

ARCHIVE_PROTOCOL_COLLECT





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

ISU_DB_ERCHZ_NEW_MULTIP_UPDATE CALL FUNCTION 'ISU_DB_ERCHZ_NEW_MULTIP_UPDATE' EXPORTING x_upd_mode = co_upd_delete TABLES xt_dberchz1 = xt_dberchz1 xt_dberchz2 = xt_dberchz2 xt_dberchz3 = xt_dberchz3 xt_dberchz4 = xt_dberchz4 EXCEPTIONS OTHERS = 1.

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

ISU_DB_ERCHR_MULTIPLE_UPDATE CALL FUNCTION 'ISU_DB_ERCHR_MULTIPLE_UPDATE' EXPORTING x_upd_mode = co_upd_delete TABLES xt_dberchr = xt_dberchr EXCEPTIONS not_found = 1 OTHERS = 2.

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

ISU_DB_ERCHT_MULTIPLE_UPDATE CALL FUNCTION 'ISU_DB_ERCHT_MULTIPLE_UPDATE' EXPORTING x_upd_mode = co_upd_delete TABLES xt_dbercht = xt_dbercht EXCEPTIONS not_found = 1 OTHERS = 2.

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

ISU_DB_ERCHU_MULTIPLE_UPDATE CALL FUNCTION 'ISU_DB_ERCHU_MULTIPLE_UPDATE' EXPORTING x_upd_mode = co_upd_delete TABLES xt_dberchu = xt_dberchu EXCEPTIONS not_found = 1 OTHERS = 2.

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

ISU_DB_ERDTAX_MULTIPLE_UPDATE CALL FUNCTION 'ISU_DB_ERDTAX_MULTIPLE_UPDATE' EXPORTING x_upd_mode = co_upd_delete TABLES xt_dberdtax = xt_dberdtax EXCEPTIONS not_found = 1 OTHERS = 2.

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

ISU_DB_ERCHE_MULTIPLE_UPDATE CALL FUNCTION 'ISU_DB_ERCHE_MULTIPLE_UPDATE' EXPORTING x_upd_mode = co_upd_delete TABLES xt_dberche = xt_dberche EXCEPTIONS not_found = 1 OTHERS = 2.

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

ISU_DB_ERCHARC_UPD_ARCFLAG CALL FUNCTION 'ISU_DB_ERCHARC_UPD_ARCFLAG' EXPORTING x_archive_status = co_bill_line_deleted xt_ercharc_key = it_ercharc_key EXCEPTIONS update_error = 1 system_error = 2 OTHERS = 3.

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

ARCHIVE_GIVE_STATISTICS CALL FUNCTION 'ARCHIVE_GIVE_STATISTICS' EXPORTING archive_handle = x_handle TABLES table = it_stat.



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