SDVBKADL is a standard Executable ABAP Report available within your SAP system (depending on your version and release level). Below is the basic information available for this SAP report including which OBJECTS it interacts with such as TABLES, FUNCTION MODULES, INCLUDES ETC. Also check out the submitted Comments related to this SAP report or see any standard documentation available.
If you would like to execute this report or see the full code listing simply enter SDVBKADL 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: PRTEXT = Issue log texts
Selection Text: TESTLAUF = Test run
Title: Delete Sales Activities
Text Symbol: 001 = Selected for Deletion
Text Symbol: 002 = Identified for Deletion
Text Symbol: 003 = Test Run
INCLUDE ARCHCOMO.
INCLUDE SDVBKATB.
No SAP DATABASE tables are accessed within this REPORT code!
ARCHIVE_OPEN_FOR_DELETE CALL FUNCTION 'ARCHIVE_OPEN_FOR_DELETE' EXPORTING object = 'SD_VBKA' test_mode = testlauf IMPORTING archive_handle = archive_handle.
ARCHIVE_GET_CUSTOMIZING_DATA CALL FUNCTION 'ARCHIVE_GET_CUSTOMIZING_DATA' EXPORTING object = 'SD_VBKA' IMPORTING commit_count_for_delete_prg = commcnt.
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 = arc_buffer-segment record_flags = arc_buffer-flags record_structure = arc_buffer-rname EXCEPTIONS end_of_object = 01 wrong_access_to_archive = 02.
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.
RV_CAS_INDEX_UPDATE CALL FUNCTION 'RV_CAS_INDEX_UPDATE' EXPORTING xvbuk = xvbuk yvbuk = yvbuk xvbka = xvbka yvbka = yvbka db_error_handling = 'X' TABLES xvbpa = xvbpa yvbpa = yvbpa.
SDCAS_ADDRESS_LIST_DELETE CALL FUNCTION 'SDCAS_ADDRESS_LIST_DELETE' EXPORTING fi_listnr = xvbka-ktanr EXCEPTIONS OTHERS = 1.
ARCHIVE_GIVE_STATISTICS CALL FUNCTION 'ARCHIVE_GIVE_STATISTICS' EXPORTING archive_handle = archive_handle TABLES table = arch_stat EXCEPTIONS internal_error = 1.
REUSE_ALV_FIELDCATALOG_MERGE CALL FUNCTION 'REUSE_ALV_FIELDCATALOG_MERGE' EXPORTING i_program_name = gv_repid i_structure_name = gc_structure i_inclname = gv_repid CHANGING ct_fieldcat = xt_fieldcat EXCEPTIONS inconsistent_interface = 1 program_error = 2 OTHERS = 3.
REUSE_ALV_GRID_DISPLAY CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY' EXPORTING i_callback_program = gv_repid i_structure_name = gc_structure i_grid_title = gv_title is_layout = gs_layout it_fieldcat = gt_fieldcat TABLES t_outtab = gt_outtab EXCEPTIONS program_error = 1 OTHERS = 2.
Although this basic information may have limited use it does provide an easy to find location to store any knowledge about this program/report.
SDVBKADL - Delete Sales Activities SDVBKADL - Delete Sales Activities SDVBKACDS - documentation and ABAP source code SDVBKA01 - Program for Object Type VBKA : Sales Activities SDVBKA01 - Program for Object Type VBKA : Sales Activities SDVBFA21 - Delete redundant document flow records after changing copy control