Skip to Content
0
Sep 30, 2016 at 11:42 AM

WS_DELIVERY_UPDATE not updating customer field

681 Views

Hi, I have a problem with WS_DELIVERY_UPDATE since the function is not updating my customer field. Here is the code example:

DATA: ls_vbkok TYPE vbkok,

lv_vbeln TYPE likp-vbeln.

lv_vbeln = '0000000123'.

ls_vbkok-vbeln_vl = lv_vbeln.

ls_vbkok-vbtyp_vl = 'J'.

ls_vbkok-vbeln = lv_vbeln.

ls_vbkok-/mes/0_pkbma = 'X'.

CALL FUNCTION 'WS_DELIVERY_UPDATE'

EXPORTING

vbkok_wa = ls_vbkok

synchron = 'X'

commit = 'X'

delivery = lv_vbeln.

COMMIT WORK AND WAIT.