Quantcast
Channel: SCN: Message List - ABAP Development
Viewing all articles
Browse latest Browse all 10425

WS_DELIVERY_UPDATE - Post GR and update delivery note field (MKPF-XBLNR) and movement type for WM of the delivery (LIPS-BWLVS).

$
0
0

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


Viewing all articles
Browse latest Browse all 10425

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>