SAP EXIT_SAPLV56U_004 Function Module for Shipment Processing: Prepare New Objects for Saving
EXIT_SAPLV56U_004 is a standard exit saplv56u 004 SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Shipment Processing: Prepare New Objects for Saving processing and below is the pattern details for this FM, showing its interface including any import and export parameters, exceptions etc. there is also a full "cut and paste" ABAP pattern code example, along with implementation ABAP coding, documentation and contribution comments specific to this or related objects.
See here to view full function module documentation and code listing for exit saplv56u 004 FM, simply by entering the name EXIT_SAPLV56U_004 into the relevant SAP transaction such as SE37 or SE38.
Function Group: XV56
Program Name: SAPLXV56
Main Program:
Appliation area: V
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function EXIT_SAPLV56U_004 pattern details
In-order to call this FM within your sap programs, simply using the below ABAP pattern details to trigger the function call...or see the full ABAP code listing at the end of this article. You can simply cut and paste this code into your ABAP progrom as it is, including variable declarations.CALL FUNCTION 'EXIT_SAPLV56U_004'"Shipment Processing: Prepare New Objects for Saving.
TABLES
I_XVTTK = "Shipment Headers (Current)
I_YVTSP = "Assignment Stage/Item (Old)
I_XVBPA = "Partners (Current)
I_YVBPA = "Partners (Old)
I_XSADR = "Adresses (Current)
I_YSADR = "Addresses (Old)
I_XVTFA = "Document Flow (Current)
I_YVTFA = "Document Flow (Old)
I_YVTTK = "Shipment Headers (Old)
I_XVTTP = "Shipment Items (Current)
I_YVTTP = "Shipment Items (Old)
I_VTRLK = "Further Headers (View)
I_VTRLP = "Further Items (View)
I_XVTTS = "Shipment Stages (Current)
I_YVTTS = "Shipment Stages (Old)
I_XVTSP = "Assignments Stage/Item (Current)
Related Function Modules
Below is a list of related SAP function modules this CUSTOMER FUNCTION exit / user exit is relevant for.LETRA_IRF_READ_EXT_VTTK_KUNNR Data Enhancement for data collection SD_VTTK
LETRA_IRF_READ_EXT_VTTS_KUNNR Data Enhancement for data collection SD_VTTK
LETRA_IRF_READ_EXT_VTTS_LIFNR Data Enhancement for data collection SD_VTTK
LE_SHIPMENT_BADI_DATA_CHA NOTRANSL: Copy BadI complex data type to shipment tables
LE_SHIPMENT_BADI_DATA_XFER NOTRANSL: Copy shipment tables to BadI complex data type
LE_SHIPMENT_CHECKS_AT_SAVE NOTRANSL: Shipment completeness checks before save
RV_SHIPMENT_UPDATE Update Shipments
RV_SHIPMENT_UPDATE_DB NOTRANSL: Fortschreiben der Transporttabellen in Datenbank
SD_SHIPMENTS_CHECK_CHANGES NOTRANSL: Überprüfung von Transporten auf Änderungen
SD_SHIPMENTS_CHECK_COMPLETE NOTRANSL: Überprüfung von Transporten auf Vollständigkeit
SD_SHIPMENTS_PRECHECK_CHNG NOTRANSL: EInfache Prüfung von Transporten auf Änderungen
SD_SHIPMENTS_SAVE NOTRANSL: Sichern von Transporten
SD_SHIPMENTS_SAVE_ACTIVITY_1 NOTRANSL: Sichern von Transporten: Aktivitäten vor dem Sichern ausführen
SD_SHIPMENTS_SAVE_ACTIVITY_2 NOTRANSL: Sichern von Transporten: Aktivitäten nach dem Sichern
SD_SHIPMENTS_SAVE_ACTIVITY_3 NOTRANSL: Activities after saving, but not in update task
SD_SHIPMENTS_SAVE_LOGFILE_GET NOTRANSL: Protokoll zum Sichern von Transporten abholen
SD_SHIPMENTS_SET_STAFO NOTRANSL: Statistikfortschreibungsgruppe für Transportbelege setzen
SD_SHIPMENT_DELI_STATUS_UPD_DB NOTRANSL: Status-Update Lieferung in Update Task
SD_SHIPMENT_DEL_STATUS_GET NOTRANSL: Status der Lieferung besorgen
SD_SHIPMENT_DEL_STATUS_PREPARE NOTRANSL: Vorbereitung Status-Update Lieferung
SD_SHIPMENT_DEL_STATUS_UPD NOTRANSL: Update Lieferungen für Transport (VBFA, VTRDI, VBUK)
SD_SHIPMENT_HAZMAT_CHECK NOTRANSL: Gefahrgutprüfung Transport
SD_SHIPMENT_SAVE_ACTIVITY_3 NOTRANSL: Activities after save but not in update task
TABLES Parameters details for EXIT_SAPLV56U_004
I_XVTTK - Shipment Headers (Current)
Data type: VTTKVBOptional: No
Call by Reference: No ( called with pass by value option)
I_YVTSP - Assignment Stage/Item (Old)
Data type: VTSPVBOptional: No
Call by Reference: No ( called with pass by value option)
I_XVBPA - Partners (Current)
Data type: VBPAVBOptional: No
Call by Reference: No ( called with pass by value option)
I_YVBPA - Partners (Old)
Data type: VBPAVBOptional: No
Call by Reference: No ( called with pass by value option)
I_XSADR - Adresses (Current)
Data type: SADRVBOptional: No
Call by Reference: No ( called with pass by value option)
I_YSADR - Addresses (Old)
Data type: SADRVBOptional: No
Call by Reference: No ( called with pass by value option)
I_XVTFA - Document Flow (Current)
Data type: VTFAVBOptional: No
Call by Reference: No ( called with pass by value option)
I_YVTFA - Document Flow (Old)
Data type: VTFAVBOptional: No
Call by Reference: No ( called with pass by value option)
I_YVTTK - Shipment Headers (Old)
Data type: VTTKVBOptional: No
Call by Reference: No ( called with pass by value option)
I_XVTTP - Shipment Items (Current)
Data type: VTTPVBOptional: No
Call by Reference: No ( called with pass by value option)
I_YVTTP - Shipment Items (Old)
Data type: VTTPVBOptional: No
Call by Reference: No ( called with pass by value option)
I_VTRLK - Further Headers (View)
Data type: VTRLKOptional: No
Call by Reference: No ( called with pass by value option)
I_VTRLP - Further Items (View)
Data type: VTRLPOptional: No
Call by Reference: No ( called with pass by value option)
I_XVTTS - Shipment Stages (Current)
Data type: VTTSVBOptional: No
Call by Reference: No ( called with pass by value option)
I_YVTTS - Shipment Stages (Old)
Data type: VTTSVBOptional: No
Call by Reference: No ( called with pass by value option)
I_XVTSP - Assignments Stage/Item (Current)
Data type: VTSPVBOptional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for EXIT_SAPLV56U_004 Function Module
The ABAP code below is a full code listing to execute function module POPUP_TO_CONFIRM including all data declarations. The code uses the original data declarations rather than the latest in-line data DECLARATION SYNTAX but I have included an ABAP code snippet at the end to show how declarations would look using the newer method of declaring data variables on the fly. This will allow you to compare and fully understand the new inline method. Please note some of the newer syntax such as the @DATA is not available until a later 4.70 service pack (SP8), which i why i have stuck to the origianl for this example.| DATA: | ||||
| lt_i_xvttk | TYPE STANDARD TABLE OF VTTKVB, " | |||
| lt_i_yvtsp | TYPE STANDARD TABLE OF VTSPVB, " | |||
| lt_i_xvbpa | TYPE STANDARD TABLE OF VBPAVB, " | |||
| lt_i_yvbpa | TYPE STANDARD TABLE OF VBPAVB, " | |||
| lt_i_xsadr | TYPE STANDARD TABLE OF SADRVB, " | |||
| lt_i_ysadr | TYPE STANDARD TABLE OF SADRVB, " | |||
| lt_i_xvtfa | TYPE STANDARD TABLE OF VTFAVB, " | |||
| lt_i_yvtfa | TYPE STANDARD TABLE OF VTFAVB, " | |||
| lt_i_yvttk | TYPE STANDARD TABLE OF VTTKVB, " | |||
| lt_i_xvttp | TYPE STANDARD TABLE OF VTTPVB, " | |||
| lt_i_yvttp | TYPE STANDARD TABLE OF VTTPVB, " | |||
| lt_i_vtrlk | TYPE STANDARD TABLE OF VTRLK, " | |||
| lt_i_vtrlp | TYPE STANDARD TABLE OF VTRLP, " | |||
| lt_i_xvtts | TYPE STANDARD TABLE OF VTTSVB, " | |||
| lt_i_yvtts | TYPE STANDARD TABLE OF VTTSVB, " | |||
| lt_i_xvtsp | TYPE STANDARD TABLE OF VTSPVB. " |
|   CALL FUNCTION 'EXIT_SAPLV56U_004' "Shipment Processing: Prepare New Objects for Saving |
| TABLES | ||
| I_XVTTK | = lt_i_xvttk | |
| I_YVTSP | = lt_i_yvtsp | |
| I_XVBPA | = lt_i_xvbpa | |
| I_YVBPA | = lt_i_yvbpa | |
| I_XSADR | = lt_i_xsadr | |
| I_YSADR | = lt_i_ysadr | |
| I_XVTFA | = lt_i_xvtfa | |
| I_YVTFA | = lt_i_yvtfa | |
| I_YVTTK | = lt_i_yvttk | |
| I_XVTTP | = lt_i_xvttp | |
| I_YVTTP | = lt_i_yvttp | |
| I_VTRLK | = lt_i_vtrlk | |
| I_VTRLP | = lt_i_vtrlp | |
| I_XVTTS | = lt_i_xvtts | |
| I_YVTTS | = lt_i_yvtts | |
| I_XVTSP | = lt_i_xvtsp | |
| . " EXIT_SAPLV56U_004 | ||
ABAP code using 7.40 inline data declarations to call FM EXIT_SAPLV56U_004
The below ABAP code uses the newer in-line data declarations. This allows you to see the coding differences/benefits of the later inline syntax. Please note some of the newer syntax below, such as the @DATA is not available until 4.70 EHP 8.Search for further information about these or an SAP related objects