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: 

update LIKP

former_member582701
Contributor
0 Kudos

Hi,

I am using BAPI_OUTB_DELIVERY_CHANGE to update deliveries, but now, a new requirement needt to update ANZPK and LIFEX fields from LIKP, but i dont find this fields in any structure/table from the BAPI.

Do you know if there are any possibility to use this BAPI to update this fields?

I have found WS_DELIVERY_UPDATE, maybe with this FM i can update this fields but i would not like to change the FM now if it is possible...

Regards,

Manel

6 REPLIES 6

Former Member
0 Kudos

WS_DELIVERY_UPDATE will work for this.........

0 Kudos

Hi,

Yes, finally im using WS_DELIVERY_UPDATE_2 but the update for ANZPK field is not working. Do u have any idea? For LIFEX field is working. Im just filling the VBKOK_WA structure.

pwa_vbkok-vbeln_vl = wa_cabecera-deliv_numb.

pwa_vbkok-lifex = wa_cabecera-extdelv_no.

pwa_vbkok-anzpk = wa_cabecera-noshpunits.

pwa_vbkok-ntgew = wa_cabecera-net_weight.

CALL FUNCTION 'WS_DELIVERY_UPDATE_2'

EXPORTING

VBKOK_WA = lwa_vbkok

  • COMMIT = ' '

DELIVERY = l_delivery.

CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'.

NTGEW field is not working too.

Any idea?

0 Kudos

Hello,

Im still trying to do an update of NTGEW and ANZPK fields of a delivery. Do u have any idea?

Thx!

0 Kudos

The solution is to fill KZAPK and KZNTG fields.

Regards.

0 Kudos

Good Morning...

Really,

The solution is to fill KZAPK and KZNTG fields.

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.

0 Kudos

Still useful, even after years !

Thanks,

Have a nice day !