SAP SD_SHIPMENT_STAGE_INSERT Function Module for NOTRANSL: Einfügen eines Abschnitts im Transport









SD_SHIPMENT_STAGE_INSERT is a standard sd shipment stage insert 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: Einfügen eines Abschnitts im Transport 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 shipment stage insert FM, simply by entering the name SD_SHIPMENT_STAGE_INSERT into the relevant SAP transaction such as SE37 or SE38.

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



Function SD_SHIPMENT_STAGE_INSERT 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_SHIPMENT_STAGE_INSERT'"NOTRANSL: Einfügen eines Abschnitts im Transport
EXPORTING
I_TKNUM = "Transport number
I_XVTTS_NEW = "New Stage
* I_SADR_DEPARTURE = "
* I_SADR_DESTINATION = "

IMPORTING
E_NEW_TSNUM = "
E_NEW_TSRFO = "

TABLES
C_XVTTS = "Stage
C_YVTTS = "Stage
C_XVTSP = "
C_YVTSP = "
C_XVBPA = "Partner
C_YVBPA = "Partner
C_XVBADR = "Addresses
* C_YVBADR = "
I_XVTTP_NEW = "

EXCEPTIONS
STAGE_NOT_SUCCESSFULLY_CREATED = 1
.




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_SAPLV56S_001 Shipment Processing: Leg Determination

IMPORTING Parameters details for SD_SHIPMENT_STAGE_INSERT

I_TKNUM - Transport number

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

I_XVTTS_NEW - New Stage

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

I_SADR_DEPARTURE -

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

I_SADR_DESTINATION -

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

EXPORTING Parameters details for SD_SHIPMENT_STAGE_INSERT

E_NEW_TSNUM -

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

E_NEW_TSRFO -

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

TABLES Parameters details for SD_SHIPMENT_STAGE_INSERT

C_XVTTS - Stage

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

C_YVTTS - Stage

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

C_XVTSP -

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

C_YVTSP -

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

C_XVBPA - Partner

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

C_YVBPA - Partner

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

C_XVBADR - Addresses

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

C_YVBADR -

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

I_XVTTP_NEW -

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

EXCEPTIONS details

STAGE_NOT_SUCCESSFULLY_CREATED -

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

Copy and paste ABAP code example for SD_SHIPMENT_STAGE_INSERT 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_c_xvtts  TYPE STANDARD TABLE OF VTTSVB, "   
lv_i_tknum  TYPE VTTK-TKNUM, "   
lv_e_new_tsnum  TYPE VTTS-TSNUM, "   
lv_stage_not_successfully_created  TYPE VTTS, "   
lt_c_yvtts  TYPE STANDARD TABLE OF VTTSVB, "   
lv_e_new_tsrfo  TYPE VTTS-TSRFO, "   
lv_i_xvtts_new  TYPE VTTSVB, "   
lt_c_xvtsp  TYPE STANDARD TABLE OF VTSPVB, "   
lv_i_sadr_departure  TYPE SADRVB, "   
lt_c_yvtsp  TYPE STANDARD TABLE OF VTSPVB, "   
lv_i_sadr_destination  TYPE SADRVB, "   
lt_c_xvbpa  TYPE STANDARD TABLE OF VBPAVB, "   
lt_c_yvbpa  TYPE STANDARD TABLE OF VBPAVB, "   
lt_c_xvbadr  TYPE STANDARD TABLE OF SADRVB, "   
lt_c_yvbadr  TYPE STANDARD TABLE OF SADRVB, "   
lt_i_xvttp_new  TYPE STANDARD TABLE OF VTTPVB. "   

  CALL FUNCTION 'SD_SHIPMENT_STAGE_INSERT'  "NOTRANSL: Einfügen eines Abschnitts im Transport
    EXPORTING
         I_TKNUM = lv_i_tknum
         I_XVTTS_NEW = lv_i_xvtts_new
         I_SADR_DEPARTURE = lv_i_sadr_departure
         I_SADR_DESTINATION = lv_i_sadr_destination
    IMPORTING
         E_NEW_TSNUM = lv_e_new_tsnum
         E_NEW_TSRFO = lv_e_new_tsrfo
    TABLES
         C_XVTTS = lt_c_xvtts
         C_YVTTS = lt_c_yvtts
         C_XVTSP = lt_c_xvtsp
         C_YVTSP = lt_c_yvtsp
         C_XVBPA = lt_c_xvbpa
         C_YVBPA = lt_c_yvbpa
         C_XVBADR = lt_c_xvbadr
         C_YVBADR = lt_c_yvbadr
         I_XVTTP_NEW = lt_i_xvttp_new
    EXCEPTIONS
        STAGE_NOT_SUCCESSFULLY_CREATED = 1
. " SD_SHIPMENT_STAGE_INSERT




ABAP code using 7.40 inline data declarations to call FM SD_SHIPMENT_STAGE_INSERT

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 TKNUM FROM VTTK INTO @DATA(ld_i_tknum).
 
"SELECT single TSNUM FROM VTTS INTO @DATA(ld_e_new_tsnum).
 
 
 
"SELECT single TSRFO FROM VTTS INTO @DATA(ld_e_new_tsrfo).
 
 
 
 
 
 
 
 
 
 
 


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!