S3VBAKDLS is a standard Executable ABAP Report available within your SAP system (depending on your version and release level). It is used for Archiving of sales documents in SD: Delete program This program deletes sales documents from the database after the write program has written them to archive files...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 S3VBAKDLS into the relevant SAP transactions such as SE38 or SE80
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.
Selection Text: P_DELPRD = D Production Mode
Selection Text: P_DELTST = D Test Mode
Title: Archiving orders: Deletion program
Text Symbol: 001 = &1 of &2 Documents Processed
Text Symbol: 002 = Deletion program was executed in test mode
INCLUDE ARCHCOMO.
INCLUDE S3VBAKTB.
INCLUDE ARCH_DELETE_PRG_STANDARD1.
No SAP DATABASE tables are accessed within this REPORT code!
K_TOTAL_INIT CALL FUNCTION 'K_TOTAL_INIT' EXPORTING i_obj_delete_flag = 'X'.
ARCHIVE_OPEN_FOR_DELETE CALL FUNCTION 'ARCHIVE_OPEN_FOR_DELETE' EXPORTING object = 'SD_VBAK' test_mode = p_deltst IMPORTING archive_handle = archive_handle.
ARCHIVE_GET_CUSTOMIZING_DATA CALL FUNCTION 'ARCHIVE_GET_CUSTOMIZING_DATA' EXPORTING object = 'SD_VBAK' IMPORTING commit_count_for_delete_prg = commcnt.
NAMETAB_GET CALL FUNCTION 'NAMETAB_GET' EXPORTING langu = sy-langu only = 'H' tabname = 'KONV' IMPORTING header = xheader rc = rc_t TABLES nametab = nametab EXCEPTIONS internal_error = 1 table_has_no_fields = 2 table_not_activ = 3 no_texts_found = 4 OTHERS = 5.
NAMETAB_GET CALL FUNCTION 'NAMETAB_GET' EXPORTING langu = sy-langu only = 'H' tabname = 'VBFA' IMPORTING header = xheader rc = rc_t TABLES nametab = nametab EXCEPTIONS internal_error = 1 table_has_no_fields = 2 table_not_activ = 3 no_texts_found = 4 OTHERS = 5.
ARCHIVE_GET_NEXT_OBJECT CALL FUNCTION 'ARCHIVE_GET_NEXT_OBJECT' EXPORTING archive_handle = archive_handle IMPORTING object_id = obj_id object_offset = obj_offset archive_name = arc_name EXCEPTIONS end_of_file = 01.
ARCHIVE_DELETE_OBJECT_DATA CALL FUNCTION 'ARCHIVE_DELETE_OBJECT_DATA' EXPORTING archive_handle = archive_handle.
ARCHIVE_GET_NEXT_RECORD CALL FUNCTION 'ARCHIVE_GET_NEXT_RECORD' EXPORTING archive_handle = archive_handle IMPORTING record_flags = arc_buffer-flags record_structure = arc_buffer-rname record_ref = gf_record_ref EXCEPTIONS end_of_object = 01 wrong_access_to_archive = 02.
ARCHIVE_WRITE_STATISTICS CALL FUNCTION 'ARCHIVE_WRITE_STATISTICS' EXPORTING archive_handle = archive_handle EXCEPTIONS internal_error = 1 wrong_access_to_archive = 2 OTHERS = 3.
ARCHIVE_CLOSE_FILE CALL FUNCTION 'ARCHIVE_CLOSE_FILE' EXPORTING archive_handle = archive_handle.
NAST_PROTOCOL_DELETE CALL FUNCTION 'NAST_PROTOCOL_DELETE' EXPORTING nr = lnast-cmfpnr.
CK_F_DELETE_COSTING CALL FUNCTION 'CK_F_DELETE_COSTING' IMPORTING out_kanz_deleted = kanz_deleted out_keko_deleted = keko_deleted out_keph_deleted = keph_deleted out_ckhs_deleted = ckhs_deleted out_ckht_deleted = ckht_deleted out_ckis_deleted = ckis_deleted out_ckit_deleted = ckit_deleted out_cmfk_deleted = cmfk_deleted out_cmfp_deleted = cmfp_deleted out_knko_deleted = knko_deleted TABLES t_kanz = lkanz t_keko = lkeko t_keph = lkeph t_ckhs = lckhs t_ckht = lckht t_ckis = lckis t_ckit = lckit t_cmfk = lcmfk t_cmfp = lcmfp t_knko = lknko EXCEPTIONS OTHERS = 1.
GET_HANDLE_SD_ARCHIVING CALL FUNCTION 'GET_HANDLE_SD_ARCHIVING' IMPORTING handle = l_sd_archiving_exit active = active.
RV_SALES_DOCUMENT_INDEX_UPDAT CALL FUNCTION 'RV_SALES_DOCUMENT_INDEX_UPDAT' EXPORTING fxvbak = xvbak fyvbak = yvbak db_error_handling = 'X' array_delete = 'X' TABLES fxvbep = xvbep fxvbfa = xvbfa fxvbkd = xvbkd fxvbap = xvbap fxvbpa = xvbpa fxvbuk = xvbuk fxvbup = xvbup fyvbep = yvbep fyvbfa = yvbfa fyvbkd = yvbkd fyvbap = yvbap fyvbpa = yvbpa fyvbuk = yvbuk fyvbup = yvbup ct_statistics = gt_statistics.
RV_INDEX_ARRAY_DELETE CALL FUNCTION 'RV_INDEX_ARRAY_DELETE' TABLES ct_statistics = gt_statistics.
ARCHIVE_GIVE_STATISTICS CALL FUNCTION 'ARCHIVE_GIVE_STATISTICS' EXPORTING archive_handle = archive_handle TABLES table = gt_statistics EXCEPTIONS internal_error = 1.
PROGRESS_INDICATOR_APPL CALL FUNCTION 'PROGRESS_INDICATOR_APPL' EXPORTING i_text = lf_prog_text i_processed = if_processed i_total = if_total i_output_immediately = lf_output_immediately IMPORTING e_progress_sent = lf_progress_sent.
DB_COMMIT CALL FUNCTION 'DB_COMMIT'.
CALL FUNCTION 'ARCHIVE_GET_INFORMATION' EXPORTING archive_handle = if_archive_handle IMPORTING archive_document = lf_archive_document archive_name = lf_archive_name.
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 S3VBAKDLS or its description.