SAP Reports / Programs

SDVTTKWRS SAP ABAP Report - Archiving Shipments: Write Program







SDVTTKWRS 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 SDVTTKWRS 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 SDVTTKWRS. "Basic submit
SUBMIT SDVTTKWRS AND RETURN. "Return to original report after report execution complete
SUBMIT SDVTTKWRS 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: S_TPLST = D .
Selection Text: S_TKNUM = D .
Selection Text: S_ERDAT = D .
Selection Text: P_WRITST = D .
Selection Text: P_WRIPRD = D .
Selection Text: P_SNAP = D .
Selection Text: P_PROT_O = D .
Selection Text: P_PROT = D .
Selection Text: P_DEST = D .
Selection Text: P_DELTST = D .
Selection Text: P_COMENT = D .
Selection Text: P_AR_ILM = D .
Title: Archiving Shipments: Write Program
Text Symbol: PRH = ARCHIVING SHIPMENTS: WRITE TO ARCHIVE
Text Symbol: P03 = Issue detailed log
Text Symbol: P02 = Issue normal log
Text Symbol: P01 = Do not issue log
Text Symbol: P00 = Log
Text Symbol: N02 = Retention Period Ended
Text Symbol: N01 = Snapshot Archived
Text Symbol: HUS = User:
Text Symbol: HST = Start:
Text Symbol: HEN = End:
Text Symbol: HCL = Client:
Text Symbol: D00 = Delete
Text Symbol: C00 = Archive
Text Symbol: 003 = Restrictions
Text Symbol: 002 = Shipments
Text Symbol: 001 = &1 Shipment Processed (&2 can be archived)


INCLUDES used within this REPORT SDVTTKWRS

INCLUDE SDZAVDAT. "N_653556
INCLUDE ARCH_WRITE_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' "v_n_839301 exporting i_detailprotocol = p_prot.

ARCHIVE_OPEN_FOR_WRITE call function 'ARCHIVE_OPEN_FOR_WRITE' exporting * call_delete_job_in_test_mode = delete "v_n_727876 call_delete_job_in_test_mode = p_deltst "^_n_727876 create_archive_file = create object = 'SD_VTTK' comments = p_coment do_not_delete_data = l_not_delete destroy = l_destroy output_sel_screen_when_dialog = space output_sel_screen_when_batch = space importing archive_handle = archive_handle exceptions internal_error = 1 object_not_found = 2 open_error = 3 not_authorized = 4.

ARCHIVE_PROTOCOL_COLLECT call function 'ARCHIVE_PROTOCOL_COLLECT' exporting i_msgtype = 2 i_msgid = sy-msgid i_msgno = sy-msgno i_msgv1 = sy-msgv1 i_msgv2 = sy-msgv2 i_msgv3 = sy-msgv3 i_msgv4 = sy-msgv4.

ARCHIVE_PROTOCOL_WRITE call function 'ARCHIVE_PROTOCOL_WRITE'.

ARCHIVE_CLOSE_FILE call function 'ARCHIVE_CLOSE_FILE' exporting archive_handle = archive_handle.

ARCHIVE_WRITE_STATISTICS call function 'ARCHIVE_WRITE_STATISTICS' exporting archive_handle = archive_handle.

ARCHIVE_PROTOCOL_WRITE call function 'ARCHIVE_PROTOCOL_WRITE'.

PROGRESS_INDICATOR call function 'PROGRESS_INDICATOR' exporting i_text = text-022 i_output_immediately = 'X'.

ARCHIVE_PUT_TABLE call function 'ARCHIVE_PUT_TABLE' exporting archive_handle = archive_handle record_flags = ' ' record_structure = 'VTTK' tables table = tvttk.

ARCHIVE_PUT_TABLE call function 'ARCHIVE_PUT_TABLE' exporting archive_handle = archive_handle record_flags = ' ' record_structure = 'VTTP' tables table = tvttp.

ARCHIVE_PUT_TABLE call function 'ARCHIVE_PUT_TABLE' exporting archive_handle = archive_handle record_flags = ' ' record_structure = 'VTTS' tables table = tvtts.

ARCHIVE_PUT_TABLE call function 'ARCHIVE_PUT_TABLE' exporting archive_handle = archive_handle record_flags = ' ' record_structure = 'VTSP' tables table = tvtsp.

ARCHIVE_PUT_TABLE call function 'ARCHIVE_PUT_TABLE' exporting archive_handle = archive_handle record_flags = ' ' record_structure = 'VTFA' tables table = tvtfa.

ARCHIVE_PUT_TABLE call function 'ARCHIVE_PUT_TABLE' exporting archive_handle = archive_handle record_flags = ' ' record_structure = 'VTPA' tables table = tvtpa.

ADDRESS_ARCHIVE_OBJECT call function 'ADDRESS_ARCHIVE_OBJECT' exporting archive_handle = archive_handle address_object_type = address_type_company address_number = lf_address_number address_reference = ls_ref exceptions wrong_access_to_archive = 1 parameter_error = 2 others = 3.

ARCHIVE_PUT_TABLE call function 'ARCHIVE_PUT_TABLE' exporting archive_handle = archive_handle record_flags = ' ' record_structure = 'SADR' tables table = tsadr.

ARCHIVE_PUT_TABLE call function 'ARCHIVE_PUT_TABLE' exporting archive_handle = archive_handle record_flags = ' ' record_structure = 'NAST' tables table = tnast.

ST_STAGE_ADDRESS_REF_CREATE call function 'ST_STAGE_ADDRESS_REF_CREATE' exporting i_vtts_db_tab = 'VTTS' i_tknum = i_tknum i_owner = l_owner changing c_reference = l_ref exceptions others = 0.

ADDRESS_ARCHIVE_OBJECT





call function 'ADDRESS_ARCHIVE_OBJECT' exporting archive_handle = archive_handle address_object_type = address_type_company address_number = l_address_number address_reference = l_ref object_delete_flag = 'X' exceptions wrong_access_to_archive = 1 parameter_error = 2 others = 3.

TEXT_ARCHIVE_OBJECT call function 'TEXT_ARCHIVE_OBJECT' exporting archive_handle = archive_handle client = sy-mandt id = stxh-tdid language = stxh-tdspras name = stxh-tdname object = 'VTTK' object_delete_flag = 'X'.

CHANGEDOCU_ARCHIVE_OBJECT call function 'CHANGEDOCU_ARCHIVE_OBJECT' exporting archive_handle = archive_handle objectclass = l_change_doc_header-objectclas objectid = l_change_doc_header-objectid object_delete_flag = 'X'.

ARCHIVE_PUT_TABLE call function 'ARCHIVE_PUT_TABLE' exporting archive_handle = archive_handle record_flags = ' ' record_structure = 'TSEGH' tables table = ttsegh.

ARCHIVE_PUT_TABLE call function 'ARCHIVE_PUT_TABLE' exporting archive_handle = archive_handle record_flags = ' ' record_structure = 'TSEGE' tables table = ttsege.

ARCHIVE_PUT_TABLE call function 'ARCHIVE_PUT_TABLE' exporting archive_handle = archive_handle record_flags = ' ' record_structure = 'TSEGR' tables table = ttsegr.

ARCHIVE_PUT_TABLE call function 'ARCHIVE_PUT_TABLE' exporting archive_handle = archive_handle record_flags = ' ' record_structure = 'TSEGEADR' tables table = ttsegeadr.

TEXT_ARCHIVE_OBJECT call function 'TEXT_ARCHIVE_OBJECT' exporting archive_handle = archive_handle client = sy-mandt id = tseg_tdid language = lf_tdspras name = lf_tdname object = tseg_tdobject object_delete_flag = 'X'.

ADDRESS_ARCHIVE_OBJECT call function 'ADDRESS_ARCHIVE_OBJECT' exporting archive_handle = archive_handle address_object_type = gcf_address_type_company address_number = xtsegeadr-even_adrfr exceptions wrong_access_to_archive = 0 parameter_error = 0 others = 0.

ADDRESS_ARCHIVE_OBJECT call function 'ADDRESS_ARCHIVE_OBJECT' exporting archive_handle = archive_handle address_object_type = gcf_address_type_company address_number = xtsegeadr-even_adrto exceptions wrong_access_to_archive = 0 parameter_error = 0 others = 0.

ARCHIVE_NEW_OBJECT call function 'ARCHIVE_NEW_OBJECT' exporting archive_handle = archive_handle.

ARCHIVE_SAVE_OBJECT call function 'ARCHIVE_SAVE_OBJECT' exporting archive_handle = archive_handle exceptions termination_requested = 1 file_io_error = 2 internal_error = 3 open_error = 4 wrong_access_to_archive = 5 data_object_not_saved = 6.

ARCHIVE_PROTOCOL_COLLECT call function 'ARCHIVE_PROTOCOL_COLLECT' exporting i_object = nvttk-tknum i_msgtype = 2 i_msgid = sy-msgid i_msgno = sy-msgno i_msgv1 = sy-msgv1 i_msgv2 = sy-msgv2 i_msgv3 = sy-msgv3 i_msgv4 = sy-msgv4.

ARCHIVE_PROTOCOL_COLLECT call function 'ARCHIVE_PROTOCOL_COLLECT' exporting i_object = nvttk-tknum i_msgtype = 1 i_text = lf_text.

ARCHIVE_PROTOCOL_COLLECT call function 'ARCHIVE_PROTOCOL_COLLECT' exporting i_object = nvttk-tknum i_msgtype = 1 i_text = lf_text.

ARCHIVE_PROTOCOL_INIT_APPL * CALL FUNCTION 'ARCHIVE_PROTOCOL_INIT_APPL' "v_n_839301 * EXPORTING * i_detailprotocol = p_prot. "^_n_839301

ARCHIVE_PROTOCOL_COLLECT call function 'ARCHIVE_PROTOCOL_COLLECT' exporting i_object = pr_sc-tknum i_msgid = 'VW' i_msgno = lf_msgno i_msgv2 = pr_sc-txt1 * i_msgv1 = pr_sc-tknum i_msgv3 = pr_sc-txt2 i_msgtype = lf_msgtype.

ARCHIVE_PROTOCOL_COLLECT call function 'ARCHIVE_PROTOCOL_COLLECT' exporting i_object = pr_fl-tknum i_msgid = 'VW' i_msgno = lf_msgno i_msgv2 = pr_fl-txt1 * i_msgv1 = pr_fl-tknum i_msgv3 = pr_fl-txt2 i_msgtype = lf_msgtype.

PROGRESS_INDICATOR call function 'PROGRESS_INDICATOR' exporting i_text = lf_prog_text i_processed = gs_counter-processed i_total = gs_counter-archivable i_output_immediately = if_output_immediately importing e_progress_sent = lf_progress_sent.

DB_COMMIT call function 'DB_COMMIT'.




SD_F4_EXTENDED call function 'SD_F4_EXTENDED' exporting mode = 'HELP' exceptions others = 0.

SD_F4_EXTENDED call function 'SD_F4_EXTENDED' exporting mode = 'HELP' exceptions others = 0.



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