Application Development 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: 

WS_DELIVERY_UPDATE How to use this FM for packing INBOUND DELIVERY

Former Member
0 Kudos

HI Experts

I need to pack inbound delivery under existing HU os status 001.

But this FM WS_DELIVERY_UPDATE is giving errors.

what all are the interface meters to pack inbound delivery under already status 001 HU.

do we need to call other Fm before this getting called.

Many thanks and regards

SS

Edited by: sandeep sharma on Oct 29, 2009 6:50 PM

1 ACCEPTED SOLUTION

Former Member
0 Kudos

DATA: L_VBKOK LIKE VBKOK,

L_VBPOK TYPE STANDARD TABLE OF VBPOK WITH HEADER LINE.

CLEAR : L_VBKOK, L_VBPOK[].

*-Assigning delivery and line item

L_VBKOK-VBELN_VL = P_VHILM_KU+0(10).

L_VBPOK-VBELN_VL = P_VHILM_KU+0(10).

L_VBPOK-POSNR_VL = P_VHILM_KU+10(6).

APPEND L_VBPOK.

CLEAR L_VBPOK.

CALL FUNCTION 'WS_DELIVERY_UPDATE'

EXPORTING

VBKOK_WA = L_VBKOK

SYNCHRON = ' '

NO_MESSAGES_UPDATE = ' '

COMMIT = ' '

DELIVERY = L_VBKOK-VBELN_VL

NICHT_SPERREN = 'X'

TABLES

VBPOK_TAB = L_VBPOK.

COMMIT WORK.

1 REPLY 1

Former Member
0 Kudos

DATA: L_VBKOK LIKE VBKOK,

L_VBPOK TYPE STANDARD TABLE OF VBPOK WITH HEADER LINE.

CLEAR : L_VBKOK, L_VBPOK[].

*-Assigning delivery and line item

L_VBKOK-VBELN_VL = P_VHILM_KU+0(10).

L_VBPOK-VBELN_VL = P_VHILM_KU+0(10).

L_VBPOK-POSNR_VL = P_VHILM_KU+10(6).

APPEND L_VBPOK.

CLEAR L_VBPOK.

CALL FUNCTION 'WS_DELIVERY_UPDATE'

EXPORTING

VBKOK_WA = L_VBKOK

SYNCHRON = ' '

NO_MESSAGES_UPDATE = ' '

COMMIT = ' '

DELIVERY = L_VBKOK-VBELN_VL

NICHT_SPERREN = 'X'

TABLES

VBPOK_TAB = L_VBPOK.

COMMIT WORK.