SAP Reports / Programs | Logistics Execution | Transportation(LE-TRA) SAP LE

SDVTTKDLS SAP ABAP Report - Archiving Shipments: Deletion Program







SDVTTKDLS 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 SDVTTKDLS 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 SDVTTKDLS. "Basic submit
SUBMIT SDVTTKDLS AND RETURN. "Return to original report after report execution complete
SUBMIT SDVTTKDLS 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 Production Mode
Selection Text: P_DELTST = D Test Mode
Selection Text: P_PROT = D Detail Log
Title: Archiving Shipments: Deletion Program
Text Symbol: 001 = &1 shipments processed (&2 deleted)
Text Symbol: 002 = Deletion program was executed in test mode
Text Symbol: HCL = Client:
Text Symbol: HEN = End:
Text Symbol: HST = Start:
Text Symbol: HUS = User:
Text Symbol: PRH = ARCHIVING SHIPMENTS: READ ARCHIVE AND DELETE


INCLUDES used within this REPORT SDVTTKDLS

INCLUDE RV56ARCHS.
INCLUDE ARCH_DELETE_PRG_STANDARD1.


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_WRITE_APPL CALL FUNCTION 'ARCHIVE_PROTOCOL_WRITE_APPL'.

ARCHIVE_PROTOCOL_INIT_APPL CALL FUNCTION 'ARCHIVE_PROTOCOL_INIT_APPL' EXPORTING i_detailprotocol = p_prot.

ARCHIVE_OPEN_FOR_DELETE CALL FUNCTION 'ARCHIVE_OPEN_FOR_DELETE' EXPORTING object = 'SD_VTTK' test_mode = p_deltst IMPORTING archive_handle = archive_handle EXCEPTIONS file_already_open = 1 "v_n_823547 file_io_error = 2 internal_error = 3 no_files_available = 4 object_not_found = 5 open_error = 6 not_authorized = 7 others = 8. "^_n_823547

ARCHIVE_GET_CUSTOMIZING_DATA CALL FUNCTION 'ARCHIVE_GET_CUSTOMIZING_DATA' EXPORTING object = 'SD_VTTK' IMPORTING commit_count_for_delete_prg = commcnt EXCEPTIONS OTHERS = 1.

ARCHIVE_CLOSE_FILE CALL FUNCTION 'ARCHIVE_CLOSE_FILE' EXPORTING archive_handle = archive_handle.

ARCHIVE_GET_TABLE CALL FUNCTION 'ARCHIVE_GET_TABLE' EXPORTING archive_handle = archive_handle record_structure = 'VTTK' TABLES table = tvttk EXCEPTIONS OTHERS = 1.

ARCHIVE_GET_TABLE CALL FUNCTION 'ARCHIVE_GET_TABLE' EXPORTING archive_handle = archive_handle record_structure = 'VTTP' TABLES table = tvttp EXCEPTIONS OTHERS = 1.

ARCHIVE_GET_TABLE CALL FUNCTION 'ARCHIVE_GET_TABLE' EXPORTING archive_handle = archive_handle record_structure = 'VTTS' TABLES table = tvtts EXCEPTIONS OTHERS = 1.

ARCHIVE_GET_TABLE CALL FUNCTION 'ARCHIVE_GET_TABLE' EXPORTING archive_handle = archive_handle record_structure = 'VTSP' TABLES table = tvtsp EXCEPTIONS OTHERS = 1.

ARCHIVE_GET_TABLE CALL FUNCTION 'ARCHIVE_GET_TABLE' EXPORTING archive_handle = archive_handle record_structure = 'VTPA' TABLES table = tvtpa EXCEPTIONS OTHERS = 1.

ARCHIVE_GET_TABLE CALL FUNCTION 'ARCHIVE_GET_TABLE' EXPORTING archive_handle = archive_handle record_structure = 'SADR' TABLES table = tsadr EXCEPTIONS OTHERS = 1.

ARCHIVE_GET_TABLE CALL FUNCTION 'ARCHIVE_GET_TABLE' EXPORTING archive_handle = archive_handle record_structure = 'NAST' TABLES table = tnast EXCEPTIONS OTHERS = 1.

ARCHIVE_GET_TABLE CALL FUNCTION 'ARCHIVE_GET_TABLE' EXPORTING archive_handle = archive_handle record_structure = 'VTFA' TABLES table = tvtfa EXCEPTIONS OTHERS = 1.

ARCHIVE_GET_TABLE CALL FUNCTION 'ARCHIVE_GET_TABLE' EXPORTING archive_handle = archive_handle record_structure = 'VEKP' TABLES table = tvekp EXCEPTIONS OTHERS = 1.

ARCHIVE_GET_TABLE CALL FUNCTION 'ARCHIVE_GET_TABLE' EXPORTING archive_handle = archive_handle record_structure = 'VEPO' TABLES table = tvepo EXCEPTIONS OTHERS = 1.

ARCHIVE_GET_TABLE CALL FUNCTION 'ARCHIVE_GET_TABLE' EXPORTING archive_handle = archive_handle record_structure = 'TSEGH' TABLES table = ttsegh EXCEPTIONS OTHERS = 1.

ARCHIVE_GET_TABLE CALL FUNCTION 'ARCHIVE_GET_TABLE' EXPORTING archive_handle = archive_handle record_structure = 'TSEGE' TABLES table = ttsege EXCEPTIONS OTHERS = 1.

ARCHIVE_GET_TABLE CALL FUNCTION 'ARCHIVE_GET_TABLE' EXPORTING archive_handle = archive_handle record_structure = 'TSEGR' TABLES table = ttsegr EXCEPTIONS OTHERS = 1.

ARCHIVE_GET_TABLE





CALL FUNCTION 'ARCHIVE_GET_TABLE' EXPORTING archive_handle = archive_handle record_structure = 'TSEGEADR' TABLES table = ttsegeadr EXCEPTIONS OTHERS = 1.

ARCHIVE_DELETE_OBJECT_DATA CALL FUNCTION 'ARCHIVE_DELETE_OBJECT_DATA' EXPORTING archive_handle = archive_handle EXCEPTIONS OTHERS = 1.

ARCHIVE_PROTOCOL_COLLECT_APPL CALL FUNCTION 'ARCHIVE_PROTOCOL_COLLECT_APPL' EXPORTING i_msgid = 'VW' i_msgno = 427 i_msgv2 = txt1 i_msgtype = 2.

ARCHIVE_GET_NEXT_OBJECT CALL FUNCTION 'ARCHIVE_GET_NEXT_OBJECT' EXPORTING archive_handle = archive_handle EXCEPTIONS end_of_file = 01.

ARCHIVE_DELETE_OBJECT_DATA * CALL FUNCTION 'ARCHIVE_DELETE_OBJECT_DATA' ....

ARCHIVE_PROTOCOL_COLLECT_APPL CALL FUNCTION 'ARCHIVE_PROTOCOL_COLLECT_APPL' EXPORTING i_object = xvttk-tknum i_msgid = 'VW' i_msgno = 431 i_msgtype = 1.

NAST_PROTOCOL_DELETE CALL FUNCTION 'NAST_PROTOCOL_DELETE' EXPORTING nr = xnast-cmfpnr.

SD_DEADLINE_DELETE CALL FUNCTION 'SD_DEADLINE_DELETE' EXPORTING deadline_no_in = xvttk-ternr EXCEPTIONS not_found = 1 delete_error = 2.

SD_DEADLINE_UPDATE CALL FUNCTION 'SD_DEADLINE_UPDATE' TABLES deadline_numbers = idltab EXCEPTIONS OTHERS = 1.

SD_DEADLINE_REFRESH CALL FUNCTION 'SD_DEADLINE_REFRESH' EXCEPTIONS OTHERS = 1.

ARCHIVE_DELETE_OBJECT_DATA * CALL FUNCTION 'ARCHIVE_DELETE_OBJECT_DATA' ....

ARCHIVE_DELETE_OBJECT_DATA * CALL FUNCTION 'ARCHIVE_DELETE_OBJECT_DATA' ....

ARCHIVE_PROTOCOL_COLLECT_APPL CALL FUNCTION 'ARCHIVE_PROTOCOL_COLLECT_APPL' EXPORTING i_object = xvttk-tknum i_msgid = 'VW' i_msgno = 430 i_msgtype = 1.

PROGRESS_INDICATOR_APPL CALL FUNCTION 'PROGRESS_INDICATOR_APPL' EXPORTING i_text = lf_prog_text i_processed = gs_counter-processed i_total = gs_counter-deletable i_output_immediately = if_output_immediately IMPORTING e_progress_sent = lf_progress_sent.

DB_COMMIT CALL FUNCTION 'DB_COMMIT'.

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_GIVE_STATISTICS CALL FUNCTION 'ARCHIVE_GIVE_STATISTICS' EXPORTING archive_handle = archive_handle TABLES table = gt_statistics EXCEPTIONS internal_error = 1 wrong_access_to_archive = 2 OTHERS = 3.



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