I am performing a pre-emptive ATP check during a Sales Order userexit and the FM BAPI_MATERIAL_AVAILABILITY doesn't include the ATP locks for the order I am in.
However, if I open another session using SE37 and perform a BAPI_MATERIAL_AVAILABILITY with the READ_ATP_LOCK and READ_ATP_LOCK_X set it does take account of the committed stock for the un-saved order.
I can't find any notes on this, any ideas?
Where are these locks held? ... the table