Quantcast
Channel: SCN: Message List - ABAP Connectivity
Viewing all articles
Browse latest Browse all 3125

bapi: pack material in a hu (without wm)

$
0
0

Hi community,

 

I have searched a lot, but I couldn't found the solution for my problem:

 

I have an outbound delivery with a material and a handling unit

Now, I want to pack the material into the handling unit automatically with an bapi.

 

Therefore, I tried a lot of different bapis, which sounds good but to not provide the soultion.

Right now, I try to implement the bapi 'WS_DELIVERY_UPDATE'.

 

 

    ls_vbkok-vbeln = gs_input-vbeln.

    ls_vbkok-vbeln_vl = gs_input-vbeln.

 

 

    ls_pack-desthu = gs_input-exidv.

    ls_pack-quantity = gs_input-inpquant.

    ls_pack-meins = ls_lips-meins.

    ls_pack-matnr = gs_input-matnr.

    ls_pack-werks = ls_lips-werks.

    ls_pack-lgort = ls_lips-lgort.

    ls_pack-vbeln_vl = gs_input-vbeln.

    ls_pack-posnr_vl = ls_lips-posnr.

    ls_pack-object = '01'.

    ls_pack-objkey = gs_input-vbeln.



APPEND ls_pack to lt_pack.



    CALL FUNCTION 'WS_DELIVERY_UPDATE'

      EXPORTING

      vbkok_wa             = ls_vbkok

      synchron             = 'X'

      commit               = 'X'

      delivery             = ls_lips-vbeln

    TABLES

        it_packing = lt_pack.

 

 

However, after the bapi is ready absolutly nothing is happen?

 

Can anybody describe me the solution?

How it is possible to pack a material out of a delivery into a handling unit, which already belongs to the same delivery?

 

Thank you very much!!!!


Viewing all articles
Browse latest Browse all 3125

Trending Articles



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