Dear Experts,
During my GR posting via FM WS_DELIVERY_UPDATE_2 for an inbound delivery, I want to fill the delivery note of my material document (MKPF-XBLNR). Can you please advise me of what parameters should I fill?
The second thing that I want to accomplish within the same step is to update the movement type for WM of the delivery (LIPS-BWLVS). I was trying to do that by filling table VBPOK_TAB - field BWLVS ->but the delivery is not updated. Can you please advise?
Bellow you can find my code sample:
ls_vbkok-vbeln_vl = lv_delivery.
ls_vbkok-wabuc = 'X'.
ls_vbkok-spe_auto_gr = 'X'.
*ls_vbkok-kzebu = 'X'. "partial GR flag
CALL FUNCTION 'WS_DELIVERY_UPDATE_2'
EXPORTING
vbkok_wa = ls_vbkok
synchron = 'X'
* commit = 'X'
delivery = lv_delivery
IMPORTING
ef_error_any = lv_error_any
EXCEPTIONS
error_message = 1
OTHERS = 2.
IF lv_error_any IS INITIAL.
COMMIT WORK AND WAIT.
ENDIF.
Many Thanks in advance!
Cristian