SD Function module RFC Used the same way in S/4HANA

WS_DELIVERY_UPDATE Update Delivery (Picking, Packing, Goods Issue)

Updates an existing delivery in one call: picked quantities, packing into handling units and posting goods issue, controlled by VBKOK_WA and VBPOK_TAB. Custom picking, scanning and goods issue programs use it widely, although it is not a released BAPI. Set the goods issue flag in VBKOK_WA when needed, check PROT and the EF_ERROR flags, and use COMMIT or your own commit.

Function group
V50L
Remote-enabled (RFC)
Yes
Type
Function module

Importing parameters

ParameterTypeDescriptionRequired
VBKOK_WAVBKOKDelivery header control data (VBKOK)Yes
DELIVERYLIKP-VBELNDelivery numberYes
SYNCHRONRVSEL-XFELDSynchronous update—
COMMITRVSEL-XFELDCommit work inside the function—
UPDATE_PICKINGRVSEL-XFELDUpdate picked quantities—
NICHT_SPERRENRVSEL-NO_SPDo not lock the delivery—
NO_MESSAGES_UPDATERVSEL-XFELDDo not update output messages—
IF_DATABASE_UPDATELESHP_DATABASE_UPDATEDatabase update mode—
IF_ERROR_MESSAGES_SEND_0XFELDSend error messages—

Exporting parameters

ParameterTypeDescription
EF_ERROR_ANY_0XFELDAny error occurred
EF_ERROR_IN_ITEM_DELETION_0XFELDError while deleting items
EF_ERROR_IN_POD_UPDATE_0XFELDError in proof of delivery update
EF_ERROR_IN_INTERFACE_0XFELDError in interface data
EF_ERROR_IN_GOODS_ISSUE_0XFELDError in goods issue posting
EF_ERROR_IN_FINAL_CHECK_0XFELDError in final check
EF_ERROR_PARTNER_UPDATEXFELDError in partner update
EF_ERROR_SERNR_UPDATEXFELDError in serial number update

Tables parameters

ParameterTypeDescriptionRequired
VBPOK_TABVBPOKDelivery item control data (VBPOK)—
PROTPROTTError log—
VERKO_TABVERKOHandling unit headers for packing—
VERPO_TABVERPOHandling unit items for packing—
IT_HANDLING_UNITSHUM_REHANG_HUHandling units to assign—
ET_CREATED_HUSVEKPVBHandling units created—

Call template (ABAP)

A skeleton generated from the interface. It lists mandatory importing parameters, exporting parameters and tables; declare the variables with suitable types in your own program.

CALL FUNCTION 'WS_DELIVERY_UPDATE'
  EXPORTING
    vbkok_wa = lv_vbkok_wa
    delivery = lv_delivery
  IMPORTING
    ef_error_any_0 = lv_ef_error_any_0
    ef_error_in_item_deletion_0 = lv_ef_error_in_item_deletion_0
    ef_error_in_pod_update_0 = lv_ef_error_in_pod_update_0
    ef_error_in_interface_0 = lv_ef_error_in_interface_0
    ef_error_in_goods_issue_0 = lv_ef_error_in_goods_issue_0
    ef_error_in_final_check_0 = lv_ef_error_in_final_check_0
    ef_error_partner_update = lv_ef_error_partner_update
    ef_error_sernr_update = lv_ef_error_sernr_update
  TABLES
    vbpok_tab = lt_vbpok_tab
    prot = lt_prot
    verko_tab = lt_verko_tab
    verpo_tab = lt_verpo_tab
    it_handling_units = lt_it_handling_units
    et_created_hus = lt_et_created_hus.

Related tables

Can't find the report you need?

We also build anything that is not in the catalog. Describe it briefly and we will suggest the right solution.

Request a custom report