SAP SD_SHIPMENT_POPULATE_DOCUMENT Function Module for NOTRANSL: VT04: Einen Transport erzeugen und mit Daten bevölkern









SD_SHIPMENT_POPULATE_DOCUMENT is a standard sd shipment populate document 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: VT04: Einen Transport erzeugen und mit Daten bevölkern 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 populate document FM, simply by entering the name SD_SHIPMENT_POPULATE_DOCUMENT into the relevant SAP transaction such as SE37 or SE38.

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



Function SD_SHIPMENT_POPULATE_DOCUMENT 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_POPULATE_DOCUMENT'"NOTRANSL: VT04: Einen Transport erzeugen und mit Daten bevölkern
EXPORTING
I_SHIPMENT_DATA_TAB = "Data and Options
I_TKNUM_VTTP = "DE-EN-LANG-SWITCH-NO-TRANSLATION
* I_TKNUM = "Shipment Number
* I_NO_COMPLETENESS_CHECK = "DE-EN-LANG-SWITCH-NO-TRANSLATION
* I_NO_HAZMAT_CHECK = "

IMPORTING
E_NEW_TKNUM = "DE-EN-LANG-SWITCH-NO-TRANSLATION

TABLES
I_VTTP = "DE-EN-LANG-SWITCH-NO-TRANSLATION
C_XVTSP = "DE-EN-LANG-SWITCH-NO-TRANSLATION
C_YVTSP = "DE-EN-LANG-SWITCH-NO-TRANSLATION
C_XVBPA = "Partner
C_YVBPA = "Partner
C_XVTFA = "Document Flow
C_YVTFA = "Document Flow
C_XSADR = "DE-EN-LANG-SWITCH-NO-TRANSLATION
C_YSADR = "DE-EN-LANG-SWITCH-NO-TRANSLATION
I_VTRLK = "Delivery Header Data
I_VTRLP = "Delivery Items
C_XVTTK = "Shipment header
C_YVTTK = "Shipment header
C_XVTTP = "DE-EN-LANG-SWITCH-NO-TRANSLATION
C_YVTTP = "DE-EN-LANG-SWITCH-NO-TRANSLATION
C_XVTTS = "Stages of Shipment
C_YVTTS = "Stages of Shipment

EXCEPTIONS
NO_DATA_FOUND = 1 ERROR_INIT = 2 ERROR_ITEMS = 3 ERROR_HEADER = 4 ERROR_FUNCTIONS = 5 ERROR_CUSTOMER = 6 ERROR_COMPLETENESS = 7 ERROR_DANGEROUS_GOODS = 8
.




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_SAPLV56M_001 Collective Processing for Shipment: Enhancement of Field Catalog
EXIT_SAPLV56M_002 Collective Processing Shipment: Assign Deliveries to Shipments
EXIT_SAPLV56M_003 Collective Processing Shipment: Filling Generated Shipment Docs with Data

IMPORTING Parameters details for SD_SHIPMENT_POPULATE_DOCUMENT

I_SHIPMENT_DATA_TAB - Data and Options

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

I_TKNUM_VTTP - DE-EN-LANG-SWITCH-NO-TRANSLATION

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

I_TKNUM - Shipment Number

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

I_NO_COMPLETENESS_CHECK - DE-EN-LANG-SWITCH-NO-TRANSLATION

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

I_NO_HAZMAT_CHECK -

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

EXPORTING Parameters details for SD_SHIPMENT_POPULATE_DOCUMENT

E_NEW_TKNUM - DE-EN-LANG-SWITCH-NO-TRANSLATION

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

TABLES Parameters details for SD_SHIPMENT_POPULATE_DOCUMENT

I_VTTP - DE-EN-LANG-SWITCH-NO-TRANSLATION

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

C_XVTSP - DE-EN-LANG-SWITCH-NO-TRANSLATION

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

C_YVTSP - DE-EN-LANG-SWITCH-NO-TRANSLATION

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_XVTFA - Document Flow

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

C_YVTFA - Document Flow

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

C_XSADR - DE-EN-LANG-SWITCH-NO-TRANSLATION

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

C_YSADR - DE-EN-LANG-SWITCH-NO-TRANSLATION

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

I_VTRLK - Delivery Header Data

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

I_VTRLP - Delivery Items

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

C_XVTTK - Shipment header

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

C_YVTTK - Shipment header

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

C_XVTTP - DE-EN-LANG-SWITCH-NO-TRANSLATION

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

C_YVTTP - DE-EN-LANG-SWITCH-NO-TRANSLATION

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

C_XVTTS - Stages of Shipment

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

C_YVTTS - Stages of Shipment

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

EXCEPTIONS details

NO_DATA_FOUND - DE-EN-LANG-SWITCH-NO-TRANSLATION

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

ERROR_INIT - DE-EN-LANG-SWITCH-NO-TRANSLATION

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

ERROR_ITEMS - DE-EN-LANG-SWITCH-NO-TRANSLATION

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

ERROR_HEADER - DE-EN-LANG-SWITCH-NO-TRANSLATION

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

ERROR_FUNCTIONS - DE-EN-LANG-SWITCH-NO-TRANSLATION

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

ERROR_CUSTOMER - DE-EN-LANG-SWITCH-NO-TRANSLATION

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

ERROR_COMPLETENESS - DE-EN-LANG-SWITCH-NO-TRANSLATION

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

ERROR_DANGEROUS_GOODS -

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

Copy and paste ABAP code example for SD_SHIPMENT_POPULATE_DOCUMENT 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_vttp  TYPE STANDARD TABLE OF VTTP, "   
lv_e_new_tknum  TYPE VTTK-TKNUM, "   
lv_no_data_found  TYPE VTTK, "   
lv_i_shipment_data_tab  TYPE VT04_SHIPMENT_DATA_TAB, "   
lt_c_xvtsp  TYPE STANDARD TABLE OF VTSPVB, "   
lt_c_yvtsp  TYPE STANDARD TABLE OF VTSPVB, "   
lt_c_xvbpa  TYPE STANDARD TABLE OF VBPAVB, "   
lt_c_yvbpa  TYPE STANDARD TABLE OF VBPAVB, "   
lt_c_xvtfa  TYPE STANDARD TABLE OF VTFAVB, "   
lt_c_yvtfa  TYPE STANDARD TABLE OF VTFAVB, "   
lt_c_xsadr  TYPE STANDARD TABLE OF SADRVB, "   
lt_c_ysadr  TYPE STANDARD TABLE OF SADRVB, "   
lt_i_vtrlk  TYPE STANDARD TABLE OF VTRLK, "   
lv_error_init  TYPE VTRLK, "   
lv_i_tknum_vttp  TYPE VTTK-TKNUM, "   
lv_i_tknum  TYPE VTTK-TKNUM, "   
lt_i_vtrlp  TYPE STANDARD TABLE OF VTRLP, "   
lv_error_items  TYPE VTRLP, "   
lt_c_xvttk  TYPE STANDARD TABLE OF VTTKVB, "   
lv_error_header  TYPE VTTKVB, "   
lv_i_no_completeness_check  TYPE C, "   
lt_c_yvttk  TYPE STANDARD TABLE OF VTTKVB, "   
lv_error_functions  TYPE VTTKVB, "   
lv_i_no_hazmat_check  TYPE C, "   
lt_c_xvttp  TYPE STANDARD TABLE OF VTTPVB, "   
lv_error_customer  TYPE VTTPVB, "   
lt_c_yvttp  TYPE STANDARD TABLE OF VTTPVB, "   
lv_error_completeness  TYPE VTTPVB, "   
lt_c_xvtts  TYPE STANDARD TABLE OF VTTSVB, "   
lv_error_dangerous_goods  TYPE VTTSVB, "   
lt_c_yvtts  TYPE STANDARD TABLE OF VTTSVB. "   

  CALL FUNCTION 'SD_SHIPMENT_POPULATE_DOCUMENT'  "NOTRANSL: VT04: Einen Transport erzeugen und mit Daten bevölkern
    EXPORTING
         I_SHIPMENT_DATA_TAB = lv_i_shipment_data_tab
         I_TKNUM_VTTP = lv_i_tknum_vttp
         I_TKNUM = lv_i_tknum
         I_NO_COMPLETENESS_CHECK = lv_i_no_completeness_check
         I_NO_HAZMAT_CHECK = lv_i_no_hazmat_check
    IMPORTING
         E_NEW_TKNUM = lv_e_new_tknum
    TABLES
         I_VTTP = lt_i_vttp
         C_XVTSP = lt_c_xvtsp
         C_YVTSP = lt_c_yvtsp
         C_XVBPA = lt_c_xvbpa
         C_YVBPA = lt_c_yvbpa
         C_XVTFA = lt_c_xvtfa
         C_YVTFA = lt_c_yvtfa
         C_XSADR = lt_c_xsadr
         C_YSADR = lt_c_ysadr
         I_VTRLK = lt_i_vtrlk
         I_VTRLP = lt_i_vtrlp
         C_XVTTK = lt_c_xvttk
         C_YVTTK = lt_c_yvttk
         C_XVTTP = lt_c_xvttp
         C_YVTTP = lt_c_yvttp
         C_XVTTS = lt_c_xvtts
         C_YVTTS = lt_c_yvtts
    EXCEPTIONS
        NO_DATA_FOUND = 1
        ERROR_INIT = 2
        ERROR_ITEMS = 3
        ERROR_HEADER = 4
        ERROR_FUNCTIONS = 5
        ERROR_CUSTOMER = 6
        ERROR_COMPLETENESS = 7
        ERROR_DANGEROUS_GOODS = 8
. " SD_SHIPMENT_POPULATE_DOCUMENT




ABAP code using 7.40 inline data declarations to call FM SD_SHIPMENT_POPULATE_DOCUMENT

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_e_new_tknum).
 
 
 
 
 
 
 
 
 
 
 
 
 
"SELECT single TKNUM FROM VTTK INTO @DATA(ld_i_tknum_vttp).
 
"SELECT single TKNUM FROM VTTK INTO @DATA(ld_i_tknum).
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 


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!