‎2011 Feb 22 10:56 PM
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?
‎2011 Feb 22 11:54 PM
BAPI_MATERIAL_AVAILABILITY. For order items, you might also check the confirmation status of the items depending on your scenario.
‎2011 Feb 23 10:56 PM
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.