ATP engine returning different warehouse/org while checking availability through MRP_ATP_PUB
Hi All,
We have an item ABC which is a buy item in org BUY1 and the same is a make item in MAKE1 org. The default shipping warehouse is BUY1 only.
So, when an order is booked, even though enough quantities are not available in BUY1, the order line is populated with warehouse as BUY1 only.
While checking the ATP details after order is booked, work order gets created in MAKE1 org and from there it gets transferred to BUY1. So, BUY1 is dependent on MAKE1 as per the ATP details.
But, when the availability is checked through the procedure 'MRP_ATP_PUB.call_atp_no_commit' it is returning ship date and availability date based on MAKE1 org and not based on BUY1 org. From the log, I can see it is not considering BUY1 (which is populated in order line when order gets booked) and instead it is checking with MAKE1 org to give dates when we don't have enough quantities in BUY1.