/scripts/ahub.form.attachments.js
0

Update POD Status with function module (Proof of delivery)

Jan 06, 2017 at 08:37 PM

146

avatar image

Hi all,

I am using bapi WS_DELIVERY_UPDATE to change POD status 'A' to 'C'. But it is not updating in VLPOD Transaction. The date is being updated correctly but the staus is not changing.

I am updating like this...

ls_vbkok-vbeln_vl = lv_vbeln_dlv. " Delivery Number
ls_vbkok-vbtyp_vl = lv_vbtyp. " Delivery type
ls_vbkok-podat = sy-datum.
ls_vbkok-potim = sy-uzeit.
* ls_vbkok-kzpod = 'C'.

* fill item details
ls_vbpok-vbeln_vl = lv_vbeln_dlv.
ls_vbpok-posnr_vl = '000010'.
*ls_vbpok-kzpod = 'C'.

APPEND ls_vbpok TO lt_vbpok.

*-Do Picking and PGI
CALL FUNCTION 'WS_DELIVERY_UPDATE' DESTINATION 'NONE'
EXPORTING
vbkok_wa = ls_vbkok
commit = 'X'
delivery = lv_vbeln_dlv
* update_picking = 'X'
if_database_update = '1'
if_error_messages_send_0 = 'X'
IMPORTING
ef_error_any_0 = lv_any_error
TABLES
vbpok_tab = lt_vbpok
prot = lt_prot.

thanks a lot

10 |10000 characters needed characters left characters exceeded

Try to use the correct Primary Tag as for as possible to get the attention of right members. I have changed the Primary Tag.

0
* Please Login or Register to Answer, Follow or Comment.

0 Answers

Skip to Content