SAP Function Modules

SHP_DELIVERY_CREATE_NOREF SAP Function module - Generates Delivery Without Reference







SHP_DELIVERY_CREATE_NOREF is a standard SAP function module available within R/3 SAP systems depending on your version and release level. Below is the pattern details for this FM showing its interface including any import and export parameters, exceptions etc as well as any documentation contributions (Comments) specific to the object.

See here to view full function module documentation and code listing, simply by entering the name SHP_DELIVERY_CREATE_NOREF into the relevant SAP transaction such as SE37 or SE80.

Associated Function Group: V50R_CREA
Released Date: Not Released
Processing type: Normal fucntion module
Normal function module settings


Pattern for FM SHP_DELIVERY_CREATE_NOREF - SHP DELIVERY CREATE NOREF





CALL FUNCTION 'SHP_DELIVERY_CREATE_NOREF' "Generates Delivery Without Reference
  EXPORTING
    if_vstel =                  " vstel         Shipping Point/Receiving Point
    if_lfart =                  " lfart         Delivery Type
    if_vkorg =                  " vkorg         Sales Organization
    if_vtweg =                  " vtweg         Distribution Channel
    if_spart =                  " spart         Division
    if_kunwe =                  " kunwe         Goods Recipient
*   is_head =                   " shp_dlv_head  Delivery Header Data
    is_dates =                  " shp_set_of_dates  Essential Deadlines in Delivery (Can Be Predefined)
    it_items =                  " shp_noref_itm_t  Delivery Items Without Reference
*   it_sernr =                  " shp_sernr_t   Serial Numbers
*   it_partner =                " partner_gn_t  Partner Table for GN_DELIVERY_CREATE
*   it_text_header =            " texth_gn_t    Table Type: Text Header Delivery Processing
*   it_text_lines =             " textl_gn_t    Table Type Text Line
*   if_no_dequeue =             " xfeld         Checkbox
  IMPORTING
    et_dlv_items =              " shp_dlv_itm_t  Delivery Items
    et_messages =               " vbfs_t        Error Log for Collective Processing
    .  "  SHP_DELIVERY_CREATE_NOREF

ABAP code example for Function Module SHP_DELIVERY_CREATE_NOREF





The ABAP code below is a full code listing to execute function module SHP_DELIVERY_CREATE_NOREF including all data declarations. The code uses 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 original method of declaring data variables up front. 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).

DATA:
ld_et_dlv_items  TYPE SHP_DLV_ITM_T ,
ld_et_messages  TYPE VBFS_T .

DATA(ld_if_vstel) = 'Check type of data required'.
DATA(ld_if_lfart) = 'Check type of data required'.
DATA(ld_if_vkorg) = 'Check type of data required'.
DATA(ld_if_vtweg) = 'Check type of data required'.
DATA(ld_if_spart) = 'Check type of data required'.
DATA(ld_if_kunwe) = 'Check type of data required'.
DATA(ld_is_head) = 'Check type of data required'.
DATA(ld_is_dates) = 'Check type of data required'.
DATA(ld_it_items) = 'Check type of data required'.
DATA(ld_it_sernr) = 'Check type of data required'.
DATA(ld_it_partner) = 'Check type of data required'.
DATA(ld_it_text_header) = 'Check type of data required'.
DATA(ld_it_text_lines) = 'Check type of data required'.
DATA(ld_if_no_dequeue) = 'Check type of data required'. . CALL FUNCTION 'SHP_DELIVERY_CREATE_NOREF' EXPORTING if_vstel = ld_if_vstel if_lfart = ld_if_lfart if_vkorg = ld_if_vkorg if_vtweg = ld_if_vtweg if_spart = ld_if_spart if_kunwe = ld_if_kunwe * is_head = ld_is_head is_dates = ld_is_dates it_items = ld_it_items * it_sernr = ld_it_sernr * it_partner = ld_it_partner * it_text_header = ld_it_text_header * it_text_lines = ld_it_text_lines * if_no_dequeue = ld_if_no_dequeue IMPORTING et_dlv_items = ld_et_dlv_items et_messages = ld_et_messages . " SHP_DELIVERY_CREATE_NOREF
IF SY-SUBRC EQ 0. "All OK ENDIF.







ABAP code to compare 7.40 inline data declaration with original syntax

The below ABAP code uses the older none in-line data declarations. This allows you to see the coding differences/benefits of the later inline syntax. It may also be useful if you are using an older version of SAP as some of the newer syntax above, such as the @DATA is not available until 4.70 EHP 8.

DATA:
ld_et_dlv_items  TYPE SHP_DLV_ITM_T ,
ld_if_vstel  TYPE VSTEL ,
ld_et_messages  TYPE VBFS_T ,
ld_if_lfart  TYPE LFART ,
ld_if_vkorg  TYPE VKORG ,
ld_if_vtweg  TYPE VTWEG ,
ld_if_spart  TYPE SPART ,
ld_if_kunwe  TYPE KUNWE ,
ld_is_head  TYPE SHP_DLV_HEAD ,
ld_is_dates  TYPE SHP_SET_OF_DATES ,
ld_it_items  TYPE SHP_NOREF_ITM_T ,
ld_it_sernr  TYPE SHP_SERNR_T ,
ld_it_partner  TYPE PARTNER_GN_T ,
ld_it_text_header  TYPE TEXTH_GN_T ,
ld_it_text_lines  TYPE TEXTL_GN_T ,
ld_if_no_dequeue  TYPE XFELD .

ld_if_vstel = 'Check type of data required'.
ld_if_lfart = 'Check type of data required'.
ld_if_vkorg = 'Check type of data required'.
ld_if_vtweg = 'Check type of data required'.
ld_if_spart = 'Check type of data required'.
ld_if_kunwe = 'Check type of data required'.
ld_is_head = 'Check type of data required'.
ld_is_dates = 'Check type of data required'.
ld_it_items = 'Check type of data required'.
ld_it_sernr = 'Check type of data required'.
ld_it_partner = 'Check type of data required'.
ld_it_text_header = 'Check type of data required'.
ld_it_text_lines = 'Check type of data required'.
ld_if_no_dequeue = 'Check type of data required'.

Contribute (Add Comments)

Please help keep this info upto date and use the comments section below to add useful hints, tips and information specific to this SAP function. This will then be available for you and other users to easily find by simply searching on the object name SHP_DELIVERY_CREATE_NOREF or its description.