SAP GN_DELIVERY_CREATE Function Module for NOTRANSL: Anlegen von Lieferungen aus allgemeiner Schnittstelle
GN_DELIVERY_CREATE is a standard gn delivery create 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: Anlegen von Lieferungen aus allgemeiner Schnittstelle 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 gn delivery create FM, simply by entering the name GN_DELIVERY_CREATE into the relevant SAP transaction such as SE37 or SE38.
Function Group: V50S
Program Name: SAPLV50S
Main Program: SAPLV50S
Appliation area: V
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function GN_DELIVERY_CREATE 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 'GN_DELIVERY_CREATE'"NOTRANSL: Anlegen von Lieferungen aus allgemeiner Schnittstelle.
EXPORTING
VBSK_I = "
* IS_DELIVERY_EXTEND = "Data for Enhancement of Deliveries in RV_DELIVERY_CREATE
* IS_CONTROL = "Control Parameters - Delivery Processing (Internal View)
* IS_BORGR_CONTROL = "
* IF_NO_INIT = ' ' "
* IF_NO_PARTNER_DIALOG = 'X' "
* IF_CHECK_UOM = ' ' "
* IT_LECOMP = "
* IF_CALL_ACTIVITY = ' ' "
* NO_COMMIT = ' ' "
* IF_SYNCHRON = 'X' "Synchronous update
* VBLS_POS_RUECK = ' ' "
* IF_CREATE_DEC = ' ' "
* IF_NO_DEQUE = ' ' "
* IT_HANDLING_UNITS = "
* IF_QUAN_NO_CHECK = "
* IF_MASS_READ_MAT_SW = ' ' "
IMPORTING
VBSK_E = "
ET_SPLITPROT = "
ET_VBADR = "
ET_VBPA = "
TABLES
XKOMDLGN = "
* IT_GN_TEXTH = "
* IT_GN_TEXTL = "
* IT_GN_HUSERNR = "
* IT_GN_SERNR = "
* IT_TMSTMP = "
* ET_SPE_VBFS = "
* IT_BAPIADDR1 = "BAPI Reference Structure for Addresses (Org./Company)
* IT_GN_HU_HEADER_EPC = "
* IT_GN_HU_ITEMS_EPC = "
XVBFS = "
XVBLS = "
* XXLIPS = "
* XVERKO = "
* XVERPO = "
* IT_GN_PARTNER = "
* IT_GN_LIPSPO = "
* IT_GN_LIPSRF = "
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_SAPLV50S_001 User Exit for Controlling Document Number Assignment in Decentralized WMS
EXIT_SAPLV50S_002 Control for Whether Fields in Distributed Deliveries can be Changed
EXIT_SAPLV50S_911 TAS - Customer exit after creation of delivery (rushorder)
IMPORTING Parameters details for GN_DELIVERY_CREATE
VBSK_I -
Data type: VBSKOptional: No
Call by Reference: No ( called with pass by value option)
IS_DELIVERY_EXTEND - Data for Enhancement of Deliveries in RV_DELIVERY_CREATE
Data type: LESHP_DELIVERY_EXTEND_RVOptional: Yes
Call by Reference: Yes
IS_CONTROL - Control Parameters - Delivery Processing (Internal View)
Data type: LESHP_DELIVERY_PROC_CONTROL_INOptional: Yes
Call by Reference: Yes
IS_BORGR_CONTROL -
Data type: BORGR_CONTROLOptional: Yes
Call by Reference: Yes
IF_NO_INIT -
Data type: XFELDDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
IF_NO_PARTNER_DIALOG -
Data type: XFELDDefault: 'X'
Optional: Yes
Call by Reference: Yes
IF_CHECK_UOM -
Data type: XFELDDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
IT_LECOMP -
Data type: LECOMP_CONSUMPTION_TOptional: Yes
Call by Reference: Yes
IF_CALL_ACTIVITY -
Data type: CDefault: SPACE
Optional: Yes
Call by Reference: Yes
NO_COMMIT -
Data type: RVSEL-XFELDDefault: ' '
Optional: Yes
Call by Reference: No ( called with pass by value option)
IF_SYNCHRON - Synchronous update
Data type: RVSEL-XFELDDefault: 'X'
Optional: Yes
Call by Reference: No ( called with pass by value option)
VBLS_POS_RUECK -
Data type: RVSEL-XFELDDefault: ' '
Optional: Yes
Call by Reference: No ( called with pass by value option)
IF_CREATE_DEC -
Data type: RVSEL-XFELDDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
IF_NO_DEQUE -
Data type: XFELDDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
IT_HANDLING_UNITS -
Data type: HUM_REHANG_HU_TOptional: Yes
Call by Reference: No ( called with pass by value option)
IF_QUAN_NO_CHECK -
Data type: QUAN_NO_CHECKOptional: Yes
Call by Reference: No ( called with pass by value option)
IF_MASS_READ_MAT_SW -
Data type: RVSEL-XFELDDefault: SPACE
Optional: Yes
Call by Reference: Yes
EXPORTING Parameters details for GN_DELIVERY_CREATE
VBSK_E -
Data type: VBSKOptional: No
Call by Reference: No ( called with pass by value option)
ET_SPLITPROT -
Data type: VLIKP_T_SPLITPROTOptional: No
Call by Reference: No ( called with pass by value option)
ET_VBADR -
Data type: SHP_SADRVB_TOptional: No
Call by Reference: No ( called with pass by value option)
ET_VBPA -
Data type: SHP_VL10_VBPA_TOptional: No
Call by Reference: No ( called with pass by value option)
TABLES Parameters details for GN_DELIVERY_CREATE
XKOMDLGN -
Data type: KOMDLGNOptional: No
Call by Reference: No ( called with pass by value option)
IT_GN_TEXTH -
Data type: TEXTH_GNOptional: Yes
Call by Reference: No ( called with pass by value option)
IT_GN_TEXTL -
Data type: TEXTL_GNOptional: Yes
Call by Reference: No ( called with pass by value option)
IT_GN_HUSERNR -
Data type: VSEP_T_HUSERNROptional: Yes
Call by Reference: No ( called with pass by value option)
IT_GN_SERNR -
Data type: V50S_SERN_TOptional: Yes
Call by Reference: No ( called with pass by value option)
IT_TMSTMP -
Data type: /SPE/TIMESTAMP_TOptional: Yes
Call by Reference: Yes
ET_SPE_VBFS -
Data type: /SPE/VBFSOptional: Yes
Call by Reference: Yes
IT_BAPIADDR1 - BAPI Reference Structure for Addresses (Org./Company)
Data type: BAPIADDR1Optional: Yes
Call by Reference: Yes
IT_GN_HU_HEADER_EPC -
Data type: /SPE/HU_HEADER_EPC_TOptional: Yes
Call by Reference: Yes
IT_GN_HU_ITEMS_EPC -
Data type: /SPE/HU_ITEMS_EPC_TOptional: Yes
Call by Reference: Yes
XVBFS -
Data type: VBFSOptional: No
Call by Reference: No ( called with pass by value option)
XVBLS -
Data type: VBLSOptional: No
Call by Reference: No ( called with pass by value option)
XXLIPS -
Data type: LIPSOptional: Yes
Call by Reference: No ( called with pass by value option)
XVERKO -
Data type: VERKOOptional: Yes
Call by Reference: No ( called with pass by value option)
XVERPO -
Data type: VERPOOptional: Yes
Call by Reference: No ( called with pass by value option)
IT_GN_PARTNER -
Data type: PARTNER_GNOptional: Yes
Call by Reference: No ( called with pass by value option)
IT_GN_LIPSPO -
Data type: LIPSPO_GNOptional: Yes
Call by Reference: No ( called with pass by value option)
IT_GN_LIPSRF -
Data type: LIPSRF_GNOptional: Yes
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for GN_DELIVERY_CREATE 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: | ||||
| lv_vbsk_e | TYPE VBSK, " | |||
| lv_vbsk_i | TYPE VBSK, " | |||
| lt_xkomdlgn | TYPE STANDARD TABLE OF KOMDLGN, " | |||
| lt_it_gn_texth | TYPE STANDARD TABLE OF TEXTH_GN, " | |||
| lv_is_delivery_extend | TYPE LESHP_DELIVERY_EXTEND_RV, " | |||
| lv_is_control | TYPE LESHP_DELIVERY_PROC_CONTROL_IN, " | |||
| lt_it_gn_textl | TYPE STANDARD TABLE OF TEXTL_GN, " | |||
| lt_it_gn_husernr | TYPE STANDARD TABLE OF VSEP_T_HUSERNR, " | |||
| lv_is_borgr_control | TYPE BORGR_CONTROL, " | |||
| lv_if_no_init | TYPE XFELD, " SPACE | |||
| lt_it_gn_sernr | TYPE STANDARD TABLE OF V50S_SERN_T, " | |||
| lt_it_tmstmp | TYPE STANDARD TABLE OF /SPE/TIMESTAMP_T, " | |||
| lv_if_no_partner_dialog | TYPE XFELD, " 'X' | |||
| lt_et_spe_vbfs | TYPE STANDARD TABLE OF /SPE/VBFS, " | |||
| lv_if_check_uom | TYPE XFELD, " SPACE | |||
| lv_it_lecomp | TYPE LECOMP_CONSUMPTION_T, " | |||
| lt_it_bapiaddr1 | TYPE STANDARD TABLE OF BAPIADDR1, " | |||
| lv_if_call_activity | TYPE C, " SPACE | |||
| lt_it_gn_hu_header_epc | TYPE STANDARD TABLE OF /SPE/HU_HEADER_EPC_T, " | |||
| lt_it_gn_hu_items_epc | TYPE STANDARD TABLE OF /SPE/HU_ITEMS_EPC_T, " | |||
| lt_xvbfs | TYPE STANDARD TABLE OF VBFS, " | |||
| lv_no_commit | TYPE RVSEL-XFELD, " ' ' | |||
| lv_et_splitprot | TYPE VLIKP_T_SPLITPROT, " | |||
| lt_xvbls | TYPE STANDARD TABLE OF VBLS, " | |||
| lv_et_vbadr | TYPE SHP_SADRVB_T, " | |||
| lv_if_synchron | TYPE RVSEL-XFELD, " 'X' | |||
| lt_xxlips | TYPE STANDARD TABLE OF LIPS, " | |||
| lv_et_vbpa | TYPE SHP_VL10_VBPA_T, " | |||
| lv_vbls_pos_rueck | TYPE RVSEL-XFELD, " ' ' | |||
| lt_xverko | TYPE STANDARD TABLE OF VERKO, " | |||
| lv_if_create_dec | TYPE RVSEL-XFELD, " SPACE | |||
| lt_xverpo | TYPE STANDARD TABLE OF VERPO, " | |||
| lv_if_no_deque | TYPE XFELD, " SPACE | |||
| lt_it_gn_partner | TYPE STANDARD TABLE OF PARTNER_GN, " | |||
| lv_it_handling_units | TYPE HUM_REHANG_HU_T, " | |||
| lt_it_gn_lipspo | TYPE STANDARD TABLE OF LIPSPO_GN, " | |||
| lv_if_quan_no_check | TYPE QUAN_NO_CHECK, " | |||
| lt_it_gn_lipsrf | TYPE STANDARD TABLE OF LIPSRF_GN, " | |||
| lv_if_mass_read_mat_sw | TYPE RVSEL-XFELD. " SPACE |
|   CALL FUNCTION 'GN_DELIVERY_CREATE' "NOTRANSL: Anlegen von Lieferungen aus allgemeiner Schnittstelle |
| EXPORTING | ||
| VBSK_I | = lv_vbsk_i | |
| IS_DELIVERY_EXTEND | = lv_is_delivery_extend | |
| IS_CONTROL | = lv_is_control | |
| IS_BORGR_CONTROL | = lv_is_borgr_control | |
| IF_NO_INIT | = lv_if_no_init | |
| IF_NO_PARTNER_DIALOG | = lv_if_no_partner_dialog | |
| IF_CHECK_UOM | = lv_if_check_uom | |
| IT_LECOMP | = lv_it_lecomp | |
| IF_CALL_ACTIVITY | = lv_if_call_activity | |
| NO_COMMIT | = lv_no_commit | |
| IF_SYNCHRON | = lv_if_synchron | |
| VBLS_POS_RUECK | = lv_vbls_pos_rueck | |
| IF_CREATE_DEC | = lv_if_create_dec | |
| IF_NO_DEQUE | = lv_if_no_deque | |
| IT_HANDLING_UNITS | = lv_it_handling_units | |
| IF_QUAN_NO_CHECK | = lv_if_quan_no_check | |
| IF_MASS_READ_MAT_SW | = lv_if_mass_read_mat_sw | |
| IMPORTING | ||
| VBSK_E | = lv_vbsk_e | |
| ET_SPLITPROT | = lv_et_splitprot | |
| ET_VBADR | = lv_et_vbadr | |
| ET_VBPA | = lv_et_vbpa | |
| TABLES | ||
| XKOMDLGN | = lt_xkomdlgn | |
| IT_GN_TEXTH | = lt_it_gn_texth | |
| IT_GN_TEXTL | = lt_it_gn_textl | |
| IT_GN_HUSERNR | = lt_it_gn_husernr | |
| IT_GN_SERNR | = lt_it_gn_sernr | |
| IT_TMSTMP | = lt_it_tmstmp | |
| ET_SPE_VBFS | = lt_et_spe_vbfs | |
| IT_BAPIADDR1 | = lt_it_bapiaddr1 | |
| IT_GN_HU_HEADER_EPC | = lt_it_gn_hu_header_epc | |
| IT_GN_HU_ITEMS_EPC | = lt_it_gn_hu_items_epc | |
| XVBFS | = lt_xvbfs | |
| XVBLS | = lt_xvbls | |
| XXLIPS | = lt_xxlips | |
| XVERKO | = lt_xverko | |
| XVERPO | = lt_xverpo | |
| IT_GN_PARTNER | = lt_it_gn_partner | |
| IT_GN_LIPSPO | = lt_it_gn_lipspo | |
| IT_GN_LIPSRF | = lt_it_gn_lipsrf | |
| . " GN_DELIVERY_CREATE | ||
ABAP code using 7.40 inline data declarations to call FM GN_DELIVERY_CREATE
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.| DATA(ld_if_no_init) | = ' '. | |||
| DATA(ld_if_no_partner_dialog) | = 'X'. | |||
| DATA(ld_if_check_uom) | = ' '. | |||
| DATA(ld_if_call_activity) | = ' '. | |||
| "SELECT single XFELD FROM RVSEL INTO @DATA(ld_no_commit). | ||||
| DATA(ld_no_commit) | = ' '. | |||
| "SELECT single XFELD FROM RVSEL INTO @DATA(ld_if_synchron). | ||||
| DATA(ld_if_synchron) | = 'X'. | |||
| "SELECT single XFELD FROM RVSEL INTO @DATA(ld_vbls_pos_rueck). | ||||
| DATA(ld_vbls_pos_rueck) | = ' '. | |||
| "SELECT single XFELD FROM RVSEL INTO @DATA(ld_if_create_dec). | ||||
| DATA(ld_if_create_dec) | = ' '. | |||
| DATA(ld_if_no_deque) | = ' '. | |||
| "SELECT single XFELD FROM RVSEL INTO @DATA(ld_if_mass_read_mat_sw). | ||||
| DATA(ld_if_mass_read_mat_sw) | = ' '. | |||
Search for further information about these or an SAP related objects