cancel
Showing results for 
Search instead for 
Did you mean: 

WS_DELIVERY_UPDATE update Delivery Quantity

0 Kudos

Hello,

I would like to update Delivery Quantity using "WS_DELIVERY_UPDATE"

i have the following parameter filled but the delivery quantity not changed :

VBKOK_WA-VBELN_VL

VBKOK_WA-VBELN

VBPOK_TAB-VBELN_VL

VBPOK_TAB-VBELN

VBPOK_TAB-POSNR_VL

VBPOK_TAB-POSNN

VBPOK_TAB-VBTYP_N='J'

VBPOK_TAB-MATNR

VBPOK_TAB-LIANP='X'

VBPOK_TAB-LFIMG

please could any one help me which information missed

Thanks a lot

View Entire Topic
hsyngvural
Participant
0 Kudos

Hello,

You should also pass value to parameter COMMIT:

Best regards.

COMMIT = 'X'.
0 Kudos

i tried it but nothing has changed

thanks

hsyngvural
Participant
0 Kudos

This has worked for me, could you give it a try?

* Structures, Tables for WS_DELIVERY_UPDATE_2
DATA: wa_vbkok TYPE vbkok,
      wa_vbpok TYPE vbpok,
      it_vbpok TYPE TABLE OF vbpok,
      it_prot  TYPE TABLE OF prott.

* Populate data objects
wa_vbkok-vbeln_vl    = '0080755516'.

wa_vbpok-vbeln_vl    = '0080755516'.
wa_vbpok-posnr_vl    = '000010'.
wa_vbpok-lfimg       = 6.
wa_vbpok-lianp       = 'X'.

APPEND wa_vbpok TO it_vbpok.

* Function call
CALL FUNCTION 'WS_DELIVERY_UPDATE_2'
  EXPORTING
    vbkok_wa                           = wa_vbkok
    commit                             = 'X'
    delivery                           = '0080755516'
  TABLES
    VBPOK_TAB                          = it_vbpok
    PROT                               = it_prot
  .
BREAK-POINT.