SAP Function Modules

SHP_BAPI_DELIVERY_SPLIT_DEC SAP Function module







SHP_BAPI_DELIVERY_SPLIT_DEC 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_BAPI_DELIVERY_SPLIT_DEC into the relevant SAP transaction such as SE37 or SE80.

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


Pattern for FM SHP_BAPI_DELIVERY_SPLIT_DEC - SHP BAPI DELIVERY SPLIT DEC





CALL FUNCTION 'SHP_BAPI_DELIVERY_SPLIT_DEC' "
  EXPORTING
*   if_synchron = SPACE         " synchron      Perform synchronous update
    if_vbeln_old =              " vbeln_vl      Delivery
    if_vbeln_new =              " vbeln_vl      Delivery
    if_items_belong_to =        " ledspd_items_belong_to  Split items are part of existing/new delivery
    if_split_profile =          " ledspd_pmode  Business Admin. Transaction in Which Split Is To Take Place
    if_ale_serial_id =          " chnum         ALE Channel Number
    it_lips =                   " shp_lips_t    Delivery Items, Item Data for a Delivery
  TABLES
    it_likp =                   " likpvb
    it_vbfa =                   " vbfavb
    .  "  SHP_BAPI_DELIVERY_SPLIT_DEC

ABAP code example for Function Module SHP_BAPI_DELIVERY_SPLIT_DEC





The ABAP code below is a full code listing to execute function module SHP_BAPI_DELIVERY_SPLIT_DEC 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:
it_it_likp  TYPE STANDARD TABLE OF LIKPVB,"TABLES PARAM
wa_it_likp  LIKE LINE OF it_it_likp ,
it_it_vbfa  TYPE STANDARD TABLE OF VBFAVB,"TABLES PARAM
wa_it_vbfa  LIKE LINE OF it_it_vbfa .

DATA(ld_if_synchron) = '20210129'.
DATA(ld_if_vbeln_old) = '20210129'.
DATA(ld_if_vbeln_new) = '20210129'.
DATA(ld_if_items_belong_to) = '20210129'.
DATA(ld_if_split_profile) = '20210129'.
DATA(ld_if_ale_serial_id) = '20210129'.
DATA(ld_it_lips) = '20210129'.

"populate fields of struture and append to itab
append wa_it_likp to it_it_likp.

"populate fields of struture and append to itab
append wa_it_vbfa to it_it_vbfa. . CALL FUNCTION 'SHP_BAPI_DELIVERY_SPLIT_DEC' EXPORTING * if_synchron = ld_if_synchron if_vbeln_old = ld_if_vbeln_old if_vbeln_new = ld_if_vbeln_new if_items_belong_to = ld_if_items_belong_to if_split_profile = ld_if_split_profile if_ale_serial_id = ld_if_ale_serial_id it_lips = ld_it_lips TABLES it_likp = it_it_likp it_vbfa = it_it_vbfa . " SHP_BAPI_DELIVERY_SPLIT_DEC
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_if_synchron  TYPE SYNCHRON ,
it_it_likp  TYPE STANDARD TABLE OF LIKPVB ,
wa_it_likp  LIKE LINE OF it_it_likp,
ld_if_vbeln_old  TYPE VBELN_VL ,
it_it_vbfa  TYPE STANDARD TABLE OF VBFAVB ,
wa_it_vbfa  LIKE LINE OF it_it_vbfa,
ld_if_vbeln_new  TYPE VBELN_VL ,
ld_if_items_belong_to  TYPE LEDSPD_ITEMS_BELONG_TO ,
ld_if_split_profile  TYPE LEDSPD_PMODE ,
ld_if_ale_serial_id  TYPE CHNUM ,
ld_it_lips  TYPE SHP_LIPS_T .

ld_if_synchron = '20210129'.

"populate fields of struture and append to itab
append wa_it_likp to it_it_likp.
ld_if_vbeln_old = '20210129'.

"populate fields of struture and append to itab
append wa_it_vbfa to it_it_vbfa.
ld_if_vbeln_new = '20210129'.
ld_if_items_belong_to = '20210129'.
ld_if_split_profile = '20210129'.
ld_if_ale_serial_id = '20210129'.
ld_it_lips = '20210129'.

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_BAPI_DELIVERY_SPLIT_DEC or its description.