Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

PICKING Using WS_DELIVERY_UPDATE

Former Member
0 Likes
2,228

Hi ,

Iam doing Picking using the BAPI WS_DELIVERY_UPDATE.

Iam just passing the following fields .

vbkok_wa = < Delivery no in structure>

synchron = 'X'

delivery = 'Del #'

update_picking = 'X'

nicht_sperren = 'X'

Tables

vbpok_tab = ....

prot = ....

.

My delivery is not being picked properly using this BAPI. Am i missing any necessary parameters.

Thanks in advance,

Ajai

2 REPLIES 2
Read only

Former Member
0 Likes
808
  CALL FUNCTION 'WS_DELIVERY_UPDATE'
    EXPORTING
      VBKOK_WA           = L_VBKOK
      SYNCHRON           = 'X'
      NO_MESSAGES_UPDATE = ' '
      COMMIT             = 'X'
      DELIVERY           = L_VBKOK-VBELN_VL
      NICHT_SPERREN      = 'X'
    TABLES
      VBPOK_TAB          = L_VBPOK.

  COMMIT WORK.

i think you did correctly, just check it in debug mode,

.

are L_VBKOK and L_VBPOK having any values.

vbkok should have delivery,

vbpok should have delivery , item.

regards

vijay

check

Message was edited by: Vijay Babu Dudla

Read only

0 Likes
808

I have similar issue, I'm looking to use this function to update serial numbers of line numbers and then PGI the outbound customer delivery. The deliveries are already picked/packed via an IDoc application. My code looks as follows but it's not updating the serial numbers, any advice?

CALL FUNCTION 'WS_DELIVERY_UPDATE'

EXPORTING

vbkok_wa = ls_vbkok_wa

delivery = ls_vbkok_wa-vbeln

commit = 'X'

it_sernr_update = 'X'

IMPORTING

ef_error_any_0 = l_any_update

ef_error_sernr_update = l_sernr_update

ef_error_in_goods_issue_0 = l_gi_update

ef_error_in_final_check_0 = l_fc_update

TABLES

it_verpo_sernr = it_serials

prot = it_prott

EXCEPTIONS

error_message = 1

OTHERS = 2.