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

REPDAR_DEL_HEAD_ILM SAP ABAP Report - Delete archived print document headers







REPDAR_DEL_HEAD_ILM is a standard Executable ABAP Report available within your SAP system (depending on your version and release level). It is used for Delete archived print document header data This report covers the third step in archiving print document header data: Deleting header 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 REPDAR_DEL_HEAD_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_DEL_HEAD_ILM. "Basic submit
SUBMIT REPDAR_DEL_HEAD_ILM AND RETURN. "Return to original report after report execution complete
SUBMIT REPDAR_DEL_HEAD_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_DELTST = D .
Selection Text: P_DELPRD = D .
Title: Delete archived print document headers
Text Symbol: 023 = Technical Options
Text Symbol: 022 = Log Type
Text Symbol: 021 = Statistics
Text Symbol: 020 = Deletable ETAXERDK Lines
Text Symbol: 019 = Deletable ERDTS Lines
Text Symbol: 018 = Deletable EITERDK Lines
Text Symbol: 017 = Deletable ECHANGE_SERVICE Lines
Text Symbol: 016 = Deletable DBERDR Lines
Text Symbol: 015 = Deletable DBERDU Lines
Text Symbol: 014 = Deletable DBEOSB Lines
Text Symbol: 013 = Deletable ERDB Lines
Text Symbol: 012 = Deletable ERDO Lines
Text Symbol: 011 = Deleted ETAXERDK Lines
Text Symbol: 010 = Deleted ERDTS Lines
Text Symbol: 009 = Deleted EITERDK Lines
Text Symbol: 008 = Deleted ECHANGE_SERVICE Lines
Text Symbol: 007 = Deleted DBERDR Lines
Text Symbol: 006 = Deleted DBERDU Lines
Text Symbol: 005 = Deleted DBEOSB Lines
Text Symbol: 004 = Deleted ERDB Lines
Text Symbol: 003 = Deleted ERDO Lines
Text Symbol: 002 = In number of documents
Text Symbol: 001 = <<< Test Run


INCLUDES used within this REPORT REPDAR_DEL_HEAD_ILM

INCLUDE REPDAR01_TYP.
INCLUDE REPDAR01_CON.
INCLUDE REPDAR01_TOP.
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_PROTOCOL_INIT CALL FUNCTION 'ARCHIVE_PROTOCOL_INIT' EXPORTING i_detailprotocol = xv_detail i_protocol_output = xv_prot_o.

ARCHIVE_GET_CUSTOMIZING_DATA CALL FUNCTION 'ARCHIVE_GET_CUSTOMIZING_DATA' EXPORTING object = co_arc_objh IMPORTING commit_count_for_delete_prg = wa_arc_data-commit_count EXCEPTIONS object_not_found = 1 OTHERS = 2.

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

ARCHIVE_OPEN_FOR_DELETE CALL FUNCTION 'ARCHIVE_OPEN_FOR_DELETE' EXPORTING object = co_arc_objh test_mode = xv_testl IMPORTING archive_handle = wa_arc_data-handle EXCEPTIONS file_already_open = 1 file_io_error = 2 internal_error = 3 no_files_available = 4 object_not_found = 5 open_error = 6 not_authorized = 7 OTHERS = 8.

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

ARCHIVE_GET_NEXT_OBJECT CALL FUNCTION 'ARCHIVE_GET_NEXT_OBJECT' EXPORTING archive_handle = wa_arc_data-handle EXCEPTIONS end_of_file = 1.

PROGRESS_INDICATOR CALL FUNCTION 'PROGRESS_INDICATOR' EXPORTING i_msgid = 'EARC' i_msgno = '431' i_msgv1 = wa_statistic-erdk-process i_processed = wa_statistic-erdk-process i_output_immediately = co_true.

PROGRESS_INDICATOR CALL FUNCTION 'PROGRESS_INDICATOR' EXPORTING i_msgid = 'EARC' i_msgno = '431' i_msgv1 = wa_statistic-erdk-process i_processed = wa_statistic-erdk-process i_output_immediately = co_true.

ISU_GET_PDH_DATA_FROM_ARCHIVE CALL FUNCTION 'ISU_GET_PDH_DATA_FROM_ARCHIVE' EXPORTING x_handle = wa_arc_data-handle IMPORTING y_anz_erdo = lwa_detail-erdo y_anz_erdu = lwa_detail-erdu y_anz_erdr = lwa_detail-erdr y_anz_erdb = lwa_detail-erdb y_anz_eosb = lwa_detail-eosb y_anz_erdts = lwa_detail-erdts y_anz_chgserv = lwa_detail-chgserv TABLES yi_erdk = lt_erdk yi_erdo = lt_erdo yi_erdu = lt_erdu yi_erdr = lt_erdr yi_erdb = lt_erdb yi_eiterdk = lt_eiterdk yt_eosb = lt_eosb yt_erdts = lt_erdts yt_etaxerdk = lt_etax yt_chgserv = lt_chgserv EXCEPTIONS end_of_object = 1 internal_error = 2 wrong_access_to_archive = 3 other_error = 4 OTHERS = 5.

ARCHIVE_PROTOCOL_COLLECT CALL FUNCTION 'ARCHIVE_PROTOCOL_COLLECT' EXPORTING i_object = lwa_detail-opbel i_msgtype = '2' i_msgid = 'EARC' i_msgno = '432' i_msgv1 = sy-subrc.

ISU_DB_ERDK_DELETE CALL FUNCTION 'ISU_DB_ERDK_DELETE' EXPORTING x_opbel = -erdk-opbel EXCEPTIONS input_error = 1 OTHERS = 2.

ISU_DB_ERDO_DELETE CALL FUNCTION 'ISU_DB_ERDO_DELETE' IMPORTING y_success = lv_anz_erdo TABLES xt_erdo_key = -terdo EXCEPTIONS input_error = 1 OTHERS = 2.

ISU_DB_DBERDU_DELETE CALL FUNCTION 'ISU_DB_DBERDU_DELETE' IMPORTING y_success = lv_anz_erdu TABLES xt_erdu_key = -terdu EXCEPTIONS input_error = 1 OTHERS = 2.

ISU_DB_DBERDR_DELETE CALL FUNCTION 'ISU_DB_DBERDR_DELETE' IMPORTING y_success = lv_anz_erdr TABLES xt_erdr_key = -terdr EXCEPTIONS input_error = 1 OTHERS = 2.

ISU_DB_ERDB_DELETE CALL FUNCTION 'ISU_DB_ERDB_DELETE' IMPORTING y_success = lv_anz_erdb TABLES xt_erdb_key = -terdb EXCEPTIONS input_error = 1 OTHERS = 2.

ISU_DB_ARC_EITERDK_UPDATE CALL FUNCTION 'ISU_DB_ARC_EITERDK_UPDATE' EXPORTING x_eiterdk = -eiterdk x_upd_mode = co_delete EXCEPTIONS input_error = 1 update_error = 2 OTHERS = 3.

ISU_DB_ETAXERDK_UPDATE CALL FUNCTION 'ISU_DB_ETAXERDK_UPDATE' EXPORTING xwa_etaxerdk = -etax x_upd_mode = co_delete EXCEPTIONS input_error = 1 update_error = 2 OTHERS = 3.

ISU_DB_DBEOSB_DELETE CALL FUNCTION 'ISU_DB_DBEOSB_DELETE' IMPORTING y_success = lv_anz_eosb TABLES xt_eosb_key = -teosb EXCEPTIONS input_error = 1 OTHERS = 2.

ISU_DB_ERDTS_DELETE





CALL FUNCTION 'ISU_DB_ERDTS_DELETE' IMPORTING y_success = lv_anz_erdts TABLES xt_erdts_key = -terdts EXCEPTIONS input_error = 1 OTHERS = 2.

ISU_DB_ECHANGE_SERVICE_DELETE CALL FUNCTION 'ISU_DB_ECHANGE_SERVICE_DELETE' IMPORTING y_success = lv_anz_chgserv TABLES xt_echange_service_key = -tchgserv EXCEPTIONS input_error = 1 OTHERS = 2.

ARCHIVE_GIVE_STATISTICS CALL FUNCTION 'ARCHIVE_GIVE_STATISTICS' EXPORTING archive_handle = wa_arc_data-handle TABLES table = lt_stat_tab.

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

ARCHIVE_GIVE_STATISTICS CALL FUNCTION 'ARCHIVE_GIVE_STATISTICS' EXPORTING archive_handle = wa_arc_data-handle TABLES table = lt_stat_tab.

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

ARCHIVE_PROTOCOL_COLLECT CALL FUNCTION 'ARCHIVE_PROTOCOL_COLLECT' EXPORTING i_msgtype = '2' i_msgid = 'EARC' i_msgno = '433' i_msgv1 = xv_subrc i_msgv2 = xv_opbel i_msgv3 = xv_table.

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 OTHERS = 1.

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

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