‎2012 Oct 17 9:52 AM
Hello All,
I am using the function module BAPI_MATERIAL_AVAILABILITY in an user-exit (Sales Order Related) to calculate the ATP stock that is available for a material.
When I do the ATP check for the 2nd Item which the same material as the 1st Item, in the Sales Order, it does not gives me the correct ATP quantity. It is not considering the quantity that were already consumed by the 1st Item.
I am passing READ_ATP_LOCK = 'K' and READ_ATP_LOCK_X = 'X'. But still the quantity returned is incorrect.
Any help would be highly appreciated.
Regards,
Senthil G.
‎2012 Oct 17 10:14 AM
Can 1751389 - BAPI_MATERIAL_AVAILABILITY doesn't take accumulation into account (setting transaction type to add ('H') be useful for you ?
Regards,
Raymond
‎2012 Oct 17 11:13 AM
Thanks for your reply Raymond.
I tried to change the transaction type to H using the user-exit, but the value is changed back again to V with a message "For checking group XX a check with reqmts quantities is not permitted".
Please suggest.
Regards,
Senthil G.