cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Vendor batch (LICHN) update in inbound delivery using WS_DELIVERY_UPDATE_2

Former Member
0 Likes
2,911

Hello experts,

I am trying to use WS_DELIVERY_UPDATE_2 FM for updating vendor batch in inbound delivery. But it's not updating the value, although there are no errors.

I am passing the vendor batch value in VBPOK-LICHN.

Accepted Solutions (0)

Answers (2)

Answers (2)

Need to fill the field VBPOK-SPE_INB_ITM_UPD.

Kathirvel
Discoverer
0 Likes
working fine now
Gaurav_Singh_BTP
Discoverer
0 Likes
Hi @karthirvel
Gaurav_Singh_BTP
Discoverer
0 Likes
Hi, I am also facing the same issue but it is not happening even by passing SPE_INB_ITM_UPD parameter.,
GK817
Active Contributor

Hi,

You need to pass import parameter COMMIT as 'X'.

Also, try calling BAPI_TRANSACTION_COMMIT as 'X'

Gaurav

Former Member
0 Likes

Hi Gaurav,

I am passing commit flag and passing the supplier batch number to lichn of vbpok_tab.

  CALL FUNCTION 'WS_DELIVERY_UPDATE_2' "#EC CI_SUBRC
        EXPORTING
          vbkok_wa                  = lv_vbkok
          delivery                  = lv_vbeln
          if_error_messages_send    = abap_true
          nicht_sperren_1           = abap_true
          synchron                  = abap_true
          commit                    = abap_true
        IMPORTING
          ef_error_any              = lv_error
          ef_error_in_item_deletion = lv_err1
          ef_error_in_pod_update    = lv_err2
          ef_error_in_interface     = lv_err3
          ef_error_in_goods_issue   = lv_err4
          ef_error_in_final_check   = lv_err5
          ef_error_partner_update   = lv_err6
          ef_error_sernr_update     = lv_err7
        TABLES
          vbpok_tab                 = lt_vbpok
          prot                      = lt_prot.

Former Member
0 Likes

I also tried calling commit and wait. But still it does not work. IS there any other flag which should be passed along with LICHN?

gaurab_banerji
Active Participant
0 Likes

Did you manage to solve the problem? I am having the same issue.