Hi experts,
Given a material and a plant i want to find out when the next PO is arriving. Is there a function module to calculate it?
This is the values i want to retrieve, but this method is not very optimized and can have performance issues:
"Entry un EKPO with material (MATNR), plant (WERKS), and Delivery Completed Indicator (ELIKZ) = blank, select the PO
numbers.
For all the POs, sort in EKET for the field ‘Delivery Date’ (EINDT) to get the next delivery date being
- EINDT ≥ Todays day
Take the next PO to be received. Do the calculation (MENGE – WEMNG) for the item
The result of the calculation is the amount still open and that is supposed to be received. "