The MES says the line made a thousand good units yesterday and ERP shows nine hundred and sixty in stock. Where does that gap come from?
The two systems are not counting the same thing: one counts units completing an operation, the other counts stock received into a location in a posting period, and scrap, packing units, partial confirmations and backflush assumptions each open a gap. Reconcile at the boundary daily, with a named owner.