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

Available Quantity Function

former_member393151
Participant
0 Likes
503

I'm using a BAPI to create deliveries - which is working fine for the most part.

I am running into a couple of scenarios where the delivery isn't created for the quantity in the batch - because of ATP requirements. Is there any function I can use to check the overall material availablity before I call the BAPI to create the delivery?

2 REPLIES 2
Read only

brad_bohn
Active Contributor
0 Likes
460

BAPI_MATERIAL_AVAILABILITY. For order items, you might also check the confirmation status of the items depending on your scenario.

Read only

0 Likes
460

I don't seem to be able to get this to give me the number I need.

I have two batches in the system one for 69,460 KG and the other for 11,377 KG.

I have two orders for 50,00KG each - which puts me into a negative ATP situation. When I create a delivery for the first batch - it creates it for 30,837 KG. Which is the total in the two batches - 50,000 KG requirement. This is OK - however the BAPI is only giving me the total unrestricted available at the plant - no matter how I run it. What I really need to know in advance is this 30,837 KG requirement.