SAP SD_SHIPMENTS_SAVE Function Module for NOTRANSL: Sichern von Transporten









SD_SHIPMENTS_SAVE is a standard sd shipments save SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for NOTRANSL: Sichern von Transporten 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 sd shipments save FM, simply by entering the name SD_SHIPMENTS_SAVE into the relevant SAP transaction such as SE37 or SE38.

Function Group: V56U
Program Name: SAPLV56U
Main Program: SAPLV56U
Appliation area: V
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:



Function SD_SHIPMENTS_SAVE 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 'SD_SHIPMENTS_SAVE'"NOTRANSL: Sichern von Transporten
EXPORTING
I_TRANSAKTIONSTYP = "Transaction Type
* I_FLAG_TRA_COMPLETE = 'X' "Indicator: Shipment Data are Complete
* I_TRA_SAVE_CALLER = "Initiator Indicator on Saving Shipments
* I_UPD_DEADLINES = 'X' "
* I_UPD_TEXTS = 'X' "
* I_UPD_SHIPPING_UNITS = 'X' "
* I_UPD_OUTPUT = 'X' "
* I_OPT_UPDATE_TASK = 'X' "
* I_OPT_ACTIVITIES = 'X' "
* I_OPT_NO_STATISTICS = ' ' "
* I_OPT_READ_SHIP_UNITS = 'X' "

IMPORTING
E_LOG_ALWAYS = "
E_LOG_ON_ERROR_WARNING = "
E_SAVE_LOG = "

CHANGING
* C_SPLIT_DIALOG_WA = "

TABLES
I_XVTTK = "
* I_YVTSP = "
* I_XVBPA = "
* I_YVBPA = "Partners (Old)
* I_XSADR = "
* I_YSADR = "Addresses (Old)
* I_XVTFA = "
* I_YVTFA = "
* I_XVEKP = "
* I_YVEKP = "
* I_XVEPO = "
I_YVTTK = "
* I_YVEPO = "
I_XVTTP = "
I_YVTTP = "
* I_VTRLK = "
* I_VTRLP = "
* I_XVTTS = "
* I_YVTTS = "
* I_XVTSP = "

EXCEPTIONS
NO_CHANGE = 1 DELIVERY_SPLIT_ERROR = 2
.




Customer Function user exits

Below is a list of CUSTOMER FUNCTION exit user exits that are available within this program and maybe relevant for this FM.
EXIT_SAPLV56U_001 Checking of Shipments for Changes
EXIT_SAPLV56U_002 Checking of Shipments for Completeness
EXIT_SAPLV56U_003 Shipment Number Allocation
EXIT_SAPLV56U_004 Shipment Processing: Prepare New Objects for Saving
EXIT_SAPLV56U_005 Updating of Additional Objects Within Shipment Processing
EXIT_SAPLV56U_006 Obsolete as of $.6C: Update Delivery by Delivery Routines
EXIT_SAPLV56U_007 Additional Rules for Determining Transportation Planning Status

IMPORTING Parameters details for SD_SHIPMENTS_SAVE

I_TRANSAKTIONSTYP - Transaction Type

Data type: T185F-TRTYP
Optional: No
Call by Reference: No ( called with pass by value option)

I_FLAG_TRA_COMPLETE - Indicator: Shipment Data are Complete

Data type: TRA_SAVE_COMPLETE
Default: 'X'
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_TRA_SAVE_CALLER - Initiator Indicator on Saving Shipments

Data type: TRA_SAVE_CALLER
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_UPD_DEADLINES -

Data type: RV56A-SELKZ
Default: 'X'
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_UPD_TEXTS -

Data type: RV56A-SELKZ
Default: 'X'
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_UPD_SHIPPING_UNITS -

Data type: RV56A-SELKZ
Default: 'X'
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_UPD_OUTPUT -

Data type: RV56A-SELKZ
Default: 'X'
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_OPT_UPDATE_TASK -

Data type: RV56A-SELKZ
Default: 'X'
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_OPT_ACTIVITIES -

Data type: RV56A-SELKZ
Default: 'X'
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_OPT_NO_STATISTICS -

Data type: RV56A-SELKZ
Default: ' '
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_OPT_READ_SHIP_UNITS -

Data type: RV56A-SELKZ
Default: 'X'
Optional: Yes
Call by Reference: No ( called with pass by value option)

EXPORTING Parameters details for SD_SHIPMENTS_SAVE

E_LOG_ALWAYS -

Data type: C
Optional: No
Call by Reference: No ( called with pass by value option)

E_LOG_ON_ERROR_WARNING -

Data type: C
Optional: No
Call by Reference: No ( called with pass by value option)

E_SAVE_LOG -

Data type: C
Optional: No
Call by Reference: No ( called with pass by value option)

CHANGING Parameters details for SD_SHIPMENTS_SAVE

C_SPLIT_DIALOG_WA -

Data type: LEDSP_ALL
Optional: Yes
Call by Reference: Yes

TABLES Parameters details for SD_SHIPMENTS_SAVE

I_XVTTK -

Data type: VTTKVB
Optional: No
Call by Reference: No ( called with pass by value option)

I_YVTSP -

Data type: VTSPVB
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_XVBPA -

Data type: VBPAVB
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_YVBPA - Partners (Old)

Data type: VBPAVB
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_XSADR -

Data type: SADRVB
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_YSADR - Addresses (Old)

Data type: SADRVB
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_XVTFA -

Data type: VTFAVB
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_YVTFA -

Data type: VTFAVB
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_XVEKP -

Data type: VEKPVB
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_YVEKP -

Data type: VEKPVB
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_XVEPO -

Data type: VEPOVB
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_YVTTK -

Data type: VTTKVB
Optional: No
Call by Reference: No ( called with pass by value option)

I_YVEPO -

Data type: VEPOVB
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_XVTTP -

Data type: VTTPVB
Optional: No
Call by Reference: No ( called with pass by value option)

I_YVTTP -

Data type: VTTPVB
Optional: No
Call by Reference: No ( called with pass by value option)

I_VTRLK -

Data type: VTRLK
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_VTRLP -

Data type: VTRLP
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_XVTTS -

Data type: VTTSVB
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_YVTTS -

Data type: VTTSVB
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_XVTSP -

Data type: VTSPVB
Optional: Yes
Call by Reference: No ( called with pass by value option)

EXCEPTIONS details

NO_CHANGE - No Changes

Data type:
Optional: No
Call by Reference: No ( called with pass by value option)

DELIVERY_SPLIT_ERROR -

Data type:
Optional: No
Call by Reference: No ( called with pass by value option)

Copy and paste ABAP code example for SD_SHIPMENTS_SAVE 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, "   
lv_no_change  TYPE VTTKVB, "   
lv_e_log_always  TYPE C, "   
lv_c_split_dialog_wa  TYPE LEDSP_ALL, "   
lv_i_transaktionstyp  TYPE T185F-TRTYP, "   
lt_i_yvtsp  TYPE STANDARD TABLE OF VTSPVB, "   
lv_i_flag_tra_complete  TYPE TRA_SAVE_COMPLETE, "   'X'
lt_i_xvbpa  TYPE STANDARD TABLE OF VBPAVB, "   
lv_i_tra_save_caller  TYPE TRA_SAVE_CALLER, "   
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_xvekp  TYPE STANDARD TABLE OF VEKPVB, "   
lt_i_yvekp  TYPE STANDARD TABLE OF VEKPVB, "   
lt_i_xvepo  TYPE STANDARD TABLE OF VEPOVB, "   
lt_i_yvttk  TYPE STANDARD TABLE OF VTTKVB, "   
lv_i_upd_deadlines  TYPE RV56A-SELKZ, "   'X'
lv_delivery_split_error  TYPE RV56A, "   
lv_e_log_on_error_warning  TYPE C, "   
lt_i_yvepo  TYPE STANDARD TABLE OF VEPOVB, "   
lt_i_xvttp  TYPE STANDARD TABLE OF VTTPVB, "   
lv_e_save_log  TYPE C, "   
lv_i_upd_texts  TYPE RV56A-SELKZ, "   'X'
lt_i_yvttp  TYPE STANDARD TABLE OF VTTPVB, "   
lv_i_upd_shipping_units  TYPE RV56A-SELKZ, "   'X'
lt_i_vtrlk  TYPE STANDARD TABLE OF VTRLK, "   
lv_i_upd_output  TYPE RV56A-SELKZ, "   'X'
lt_i_vtrlp  TYPE STANDARD TABLE OF VTRLP, "   
lv_i_opt_update_task  TYPE RV56A-SELKZ, "   'X'
lt_i_xvtts  TYPE STANDARD TABLE OF VTTSVB, "   
lv_i_opt_activities  TYPE RV56A-SELKZ, "   'X'
lt_i_yvtts  TYPE STANDARD TABLE OF VTTSVB, "   
lv_i_opt_no_statistics  TYPE RV56A-SELKZ, "   ' '
lt_i_xvtsp  TYPE STANDARD TABLE OF VTSPVB, "   
lv_i_opt_read_ship_units  TYPE RV56A-SELKZ. "   'X'

  CALL FUNCTION 'SD_SHIPMENTS_SAVE'  "NOTRANSL: Sichern von Transporten
    EXPORTING
         I_TRANSAKTIONSTYP = lv_i_transaktionstyp
         I_FLAG_TRA_COMPLETE = lv_i_flag_tra_complete
         I_TRA_SAVE_CALLER = lv_i_tra_save_caller
         I_UPD_DEADLINES = lv_i_upd_deadlines
         I_UPD_TEXTS = lv_i_upd_texts
         I_UPD_SHIPPING_UNITS = lv_i_upd_shipping_units
         I_UPD_OUTPUT = lv_i_upd_output
         I_OPT_UPDATE_TASK = lv_i_opt_update_task
         I_OPT_ACTIVITIES = lv_i_opt_activities
         I_OPT_NO_STATISTICS = lv_i_opt_no_statistics
         I_OPT_READ_SHIP_UNITS = lv_i_opt_read_ship_units
    IMPORTING
         E_LOG_ALWAYS = lv_e_log_always
         E_LOG_ON_ERROR_WARNING = lv_e_log_on_error_warning
         E_SAVE_LOG = lv_e_save_log
    CHANGING
         C_SPLIT_DIALOG_WA = lv_c_split_dialog_wa
    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_XVEKP = lt_i_xvekp
         I_YVEKP = lt_i_yvekp
         I_XVEPO = lt_i_xvepo
         I_YVTTK = lt_i_yvttk
         I_YVEPO = lt_i_yvepo
         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
    EXCEPTIONS
        NO_CHANGE = 1
        DELIVERY_SPLIT_ERROR = 2
. " SD_SHIPMENTS_SAVE




ABAP code using 7.40 inline data declarations to call FM SD_SHIPMENTS_SAVE

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.

 
 
 
 
"SELECT single TRTYP FROM T185F INTO @DATA(ld_i_transaktionstyp).
 
 
DATA(ld_i_flag_tra_complete) = 'X'.
 
 
 
 
 
 
 
 
 
 
 
 
"SELECT single SELKZ FROM RV56A INTO @DATA(ld_i_upd_deadlines).
DATA(ld_i_upd_deadlines) = 'X'.
 
 
 
 
 
 
"SELECT single SELKZ FROM RV56A INTO @DATA(ld_i_upd_texts).
DATA(ld_i_upd_texts) = 'X'.
 
 
"SELECT single SELKZ FROM RV56A INTO @DATA(ld_i_upd_shipping_units).
DATA(ld_i_upd_shipping_units) = 'X'.
 
 
"SELECT single SELKZ FROM RV56A INTO @DATA(ld_i_upd_output).
DATA(ld_i_upd_output) = 'X'.
 
 
"SELECT single SELKZ FROM RV56A INTO @DATA(ld_i_opt_update_task).
DATA(ld_i_opt_update_task) = 'X'.
 
 
"SELECT single SELKZ FROM RV56A INTO @DATA(ld_i_opt_activities).
DATA(ld_i_opt_activities) = 'X'.
 
 
"SELECT single SELKZ FROM RV56A INTO @DATA(ld_i_opt_no_statistics).
DATA(ld_i_opt_no_statistics) = ' '.
 
 
"SELECT single SELKZ FROM RV56A INTO @DATA(ld_i_opt_read_ship_units).
DATA(ld_i_opt_read_ship_units) = 'X'.
 


Search for further information about these or an SAP related objects



Comments on this SAP object

What made you want to lookup this SAP object? Please tell us what you were looking for and anything you would like to be included on this page!