Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

FM to update table LIKP with fields BOLNR and ANZPK

Hery
Explorer
0 Kudos
1,462

Hello experts,

We are having an inbound idoc for delivery and we have an extension with fields BOLNR and ANZPK and we need to update table LIKP.

we are using FM SD_IDOC_INPUT_PICKING to do the update.

This FM is attached to the message type SDPICK.

But with this FM we are not able to update these two fields.

We have searched for some other BAPI but we are not able to find those two fields in the BAPIs.

Can anyone please help?

Thanks a lot.

2 REPLIES 2

Former Member
0 Kudos
212

Hi,

Were you able to find any solution to this issue ? I am facing similar requirement wherein I have to update BOLNR and TRAID field in LIKP using FM 'SD_IDOC_INPUT_PICKING', attached to Idoc message type SDPICK.

Thanks and Regards

          Vivek

max_anjos
Explorer
0 Kudos
212

This solution is in kzapk and kzntg.

Example:

CLEAR ls_vbkok.

     ls_vbkok-vbeln_vl  = <ls_created>-document_numb.

     ls_vbkok-vbtyp_vl  = <ls_created>-document_category_sd.

     ls_vbkok-anzpk     = id_volum.

     ls_vbkok-kzapk  = 'X'.

     ls_vbkok-kzntg  = 'X'.

     ls_vbkok-wabuc  = 'X'.

     CALL FUNCTION 'WS_DELIVERY_UPDATE_2'

       EXPORTING

         vbkok_wa       = ls_vbkok

         update_picking = 'X'

         synchron       = 'X'

         commit         = 'X'

         delivery       = <ls_created>-document_numb

       IMPORTING

         ef_error_any   = ld_error.