SAP Function Modules

SHP_BAPI_DELIVERY_CONFIRM_DEC SAP Function module







SHP_BAPI_DELIVERY_CONFIRM_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_CONFIRM_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_CONFIRM_DEC - SHP BAPI DELIVERY CONFIRM DEC





CALL FUNCTION 'SHP_BAPI_DELIVERY_CONFIRM_DEC' "
  EXPORTING
*   if_synchron = SPACE         "
*   if_obj_type =               " serial-obj_type  Object Type
    if_ale_serial_id =          " chnum         ALE Channel Number
    it_lips_add =               " shp_lips_t    Delivery Items, Item Data for a Delivery
    is_v50agl =                 " v50agl        Global Delivery Control Indicators
*   is_xvbuk =                  " vbukvb        Reference structure for XVBUK/YVBUK
  TABLES
    it_likp =                   " likpvb
    it_lips =                   " lipsvb
    it_vbfa =                   " vbfavb
    it_likp_old =               " likpvb        Reference Structure for XLIKP/YLIKP
    it_vbpa =                   " vbpavb        Reference structure for XVBPA/YVBPA
    it_vbadr =                  " sadrvb        Reference structure for XSADR/YSADR
    it_serno_change =           " shp_serno_change  Delivery Items in Which Serial Numbers Were Changed
    it_yvbuk =                  " vbukvb        Reference structure for XVBUK/YVBUK
    it_xvbup =                  " vbupvb        Reference Structure for XVBUP/YVBUP
    it_yvbup =                  " vbupvb        Reference Structure for XVBUP/YVBUP
    .  "  SHP_BAPI_DELIVERY_CONFIRM_DEC

ABAP code example for Function Module SHP_BAPI_DELIVERY_CONFIRM_DEC





The ABAP code below is a full code listing to execute function module SHP_BAPI_DELIVERY_CONFIRM_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_lips  TYPE STANDARD TABLE OF LIPSVB,"TABLES PARAM
wa_it_lips  LIKE LINE OF it_it_lips ,
it_it_vbfa  TYPE STANDARD TABLE OF VBFAVB,"TABLES PARAM
wa_it_vbfa  LIKE LINE OF it_it_vbfa ,
it_it_likp_old  TYPE STANDARD TABLE OF LIKPVB,"TABLES PARAM
wa_it_likp_old  LIKE LINE OF it_it_likp_old ,
it_it_vbpa  TYPE STANDARD TABLE OF VBPAVB,"TABLES PARAM
wa_it_vbpa  LIKE LINE OF it_it_vbpa ,
it_it_vbadr  TYPE STANDARD TABLE OF SADRVB,"TABLES PARAM
wa_it_vbadr  LIKE LINE OF it_it_vbadr ,
it_it_serno_change  TYPE STANDARD TABLE OF SHP_SERNO_CHANGE,"TABLES PARAM
wa_it_serno_change  LIKE LINE OF it_it_serno_change ,
it_it_yvbuk  TYPE STANDARD TABLE OF VBUKVB,"TABLES PARAM
wa_it_yvbuk  LIKE LINE OF it_it_yvbuk ,
it_it_xvbup  TYPE STANDARD TABLE OF VBUPVB,"TABLES PARAM
wa_it_xvbup  LIKE LINE OF it_it_xvbup ,
it_it_yvbup  TYPE STANDARD TABLE OF VBUPVB,"TABLES PARAM
wa_it_yvbup  LIKE LINE OF it_it_yvbup .

DATA(ld_if_synchron) = 'some text here'.

DATA(ld_if_obj_type) = some text here
DATA(ld_if_ale_serial_id) = 'Check type of data required'.
DATA(ld_it_lips_add) = 'Check type of data required'.
DATA(ld_is_v50agl) = 'Check type of data required'.
DATA(ld_is_xvbuk) = 'Check type of data required'.

"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_lips to it_it_lips.

"populate fields of struture and append to itab
append wa_it_vbfa to it_it_vbfa.

"populate fields of struture and append to itab
append wa_it_likp_old to it_it_likp_old.

"populate fields of struture and append to itab
append wa_it_vbpa to it_it_vbpa.

"populate fields of struture and append to itab
append wa_it_vbadr to it_it_vbadr.

"populate fields of struture and append to itab
append wa_it_serno_change to it_it_serno_change.

"populate fields of struture and append to itab
append wa_it_yvbuk to it_it_yvbuk.

"populate fields of struture and append to itab
append wa_it_xvbup to it_it_xvbup.

"populate fields of struture and append to itab
append wa_it_yvbup to it_it_yvbup. . CALL FUNCTION 'SHP_BAPI_DELIVERY_CONFIRM_DEC' EXPORTING * if_synchron = ld_if_synchron * if_obj_type = ld_if_obj_type if_ale_serial_id = ld_if_ale_serial_id it_lips_add = ld_it_lips_add is_v50agl = ld_is_v50agl * is_xvbuk = ld_is_xvbuk TABLES it_likp = it_it_likp it_lips = it_it_lips it_vbfa = it_it_vbfa it_likp_old = it_it_likp_old it_vbpa = it_it_vbpa it_vbadr = it_it_vbadr it_serno_change = it_it_serno_change it_yvbuk = it_it_yvbuk it_xvbup = it_it_xvbup it_yvbup = it_it_yvbup . " SHP_BAPI_DELIVERY_CONFIRM_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 STRING ,
it_it_likp  TYPE STANDARD TABLE OF LIKPVB ,
wa_it_likp  LIKE LINE OF it_it_likp,
ld_if_obj_type  TYPE SERIAL-OBJ_TYPE ,
it_it_lips  TYPE STANDARD TABLE OF LIPSVB ,
wa_it_lips  LIKE LINE OF it_it_lips,
ld_if_ale_serial_id  TYPE CHNUM ,
it_it_vbfa  TYPE STANDARD TABLE OF VBFAVB ,
wa_it_vbfa  LIKE LINE OF it_it_vbfa,
ld_it_lips_add  TYPE SHP_LIPS_T ,
it_it_likp_old  TYPE STANDARD TABLE OF LIKPVB ,
wa_it_likp_old  LIKE LINE OF it_it_likp_old,
ld_is_v50agl  TYPE V50AGL ,
it_it_vbpa  TYPE STANDARD TABLE OF VBPAVB ,
wa_it_vbpa  LIKE LINE OF it_it_vbpa,
ld_is_xvbuk  TYPE VBUKVB ,
it_it_vbadr  TYPE STANDARD TABLE OF SADRVB ,
wa_it_vbadr  LIKE LINE OF it_it_vbadr,
it_it_serno_change  TYPE STANDARD TABLE OF SHP_SERNO_CHANGE ,
wa_it_serno_change  LIKE LINE OF it_it_serno_change,
it_it_yvbuk  TYPE STANDARD TABLE OF VBUKVB ,
wa_it_yvbuk  LIKE LINE OF it_it_yvbuk,
it_it_xvbup  TYPE STANDARD TABLE OF VBUPVB ,
wa_it_xvbup  LIKE LINE OF it_it_xvbup,
it_it_yvbup  TYPE STANDARD TABLE OF VBUPVB ,
wa_it_yvbup  LIKE LINE OF it_it_yvbup.

ld_if_synchron = 'some text here'.

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

ld_if_obj_type = some text here

"populate fields of struture and append to itab
append wa_it_lips to it_it_lips.
ld_if_ale_serial_id = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_it_vbfa to it_it_vbfa.
ld_it_lips_add = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_it_likp_old to it_it_likp_old.
ld_is_v50agl = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_it_vbpa to it_it_vbpa.
ld_is_xvbuk = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_it_vbadr to it_it_vbadr.

"populate fields of struture and append to itab
append wa_it_serno_change to it_it_serno_change.

"populate fields of struture and append to itab
append wa_it_yvbuk to it_it_yvbuk.

"populate fields of struture and append to itab
append wa_it_xvbup to it_it_xvbup.

"populate fields of struture and append to itab
append wa_it_yvbup to it_it_yvbup.

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