10-29-2009 5:48 PM
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
10-29-2009 6:17 PM
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.
10-29-2009 6:17 PM
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.