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 picking quantity in delivery for batch split items

Former Member
0 Kudos

Hi,

I'm trying to use the function module WS_DELIVERY_UPDATE to update the existing deliveries. I'm able to do batch split for the items in delivery using the same FM. I have also requirement to delete these items (batch split items).

To delete these items first we have to make quantities to zero. So I'm able to make delivery quantity of these items to zero but not picking quantity.

If we do not make picking quantity also zero it will not allow to delete these items

and gives an error message saying "item is already made available for transfer order".

Could some one let me kow how to make picking quantity also zero for batch spit items using FM.

Thanks

1 REPLY 1

Former Member
0 Kudos

Hi Vikram

To nullify the Picking Quantity, we can use FM: <b>SD_DELIVERY_UPDATE_PICKING</b>.

Parameters to be passed:

VBKOK_WA
-- VBELN_VL - Delivery Number
-- VBELN - Sales Document Number

SYNCHRON - 'X'

VBPOK_TAB
-- VBELN_VL - Delivery Number
-- POSNR_VL - Delivery Item Number
-- VBELN -- Sales Document Number
-- POSNN -- Sales Document Item Number
-- MATNR -- Material Number
-- LFIMG -- '0.000'.

Have tried this in both cases whereby we have partial picking done and full picking done and worked for both cases.

Please try on your end too...

Hope this helps.

Regards

Eswar