Application Development and Automation 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: 
Read only

ATP Check using BAPI_MATERIAL_AVAILABILITY

Former Member
0 Likes
1,488

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.

2 REPLIES 2
Read only

RaymondGiuseppi
Active Contributor
0 Likes
768

Can 1751389  - BAPI_MATERIAL_AVAILABILITY doesn't take accumulation into account (setting transaction type to add ('H') be useful for you ?

Regards,

Raymond

Read only

0 Likes
768

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.