A production order created in the ERP has to reach the MES on the shop floor before work can start, and the material consumption, quality results, and labor hours generated on the floor have to flow back to the ERP before anyone in planning, finance, or procurement has an accurate picture of what actually happened. When that connection is missing or only partially built, someone ends up manually re-keying production data into the ERP at the end of a shift, introducing delay and transcription error into numbers that were supposed to be authoritative. Real-time, bidirectional MES-ERP integration removes that manual step entirely, and mills building this connection can start with a conversation with iFactory's support team about what a practical MES-ERP data flow architecture looks like for a specific plant.
Production Orders Flow Down, Actual Results Flow Back Up — Both Directions Matter
Production orders, material consumption, quality results, and labor reporting all need to move between MES and ERP continuously, not through a manual re-entry step at the end of a shift.
Why One-Way Integration Is Not Enough
Some mills build only the ERP-to-MES connection, pushing production orders down to the floor automatically while still relying on manual entry to get results back into the ERP, and this half-built integration still leaves the most error-prone step in place — someone at the end of a shift manually transcribing material consumption, quality outcomes, and labor hours into the ERP from whatever records the MES or paper logs happened to capture. Genuine integration has to move data in both directions for the connection to actually eliminate manual re-entry rather than just automating half of it.
The Four Data Categories That Need to Flow
Each category serves a different purpose on each side of the connection, and a complete integration accounts for all four moving in the right direction.
Production Orders
Orders created in the ERP need to reach the MES automatically so the floor always has an up-to-date, accurate work queue without someone manually re-keying order details.
Material Consumption
Actual material usage recorded on the floor needs to flow back to the ERP so inventory and cost accounting reflect what was really consumed, not a planned estimate.
Quality Results
Inspection outcomes from the floor need to reach the ERP so downstream decisions, like whether a batch can ship, are based on current quality data rather than a delayed manual update.
Labor Reporting
Hours worked against specific orders flow back to the ERP for accurate costing, removing the need for a separate manual timesheet reconciliation process.
Connect MES and ERP in Both Directions, Not Just One
Book a 30-minute walkthrough of how iFactory moves production orders, material consumption, quality, and labor data bidirectionally between MES and ERP.
Integration Maturity Levels Compared
Mills sit at different points on the path toward full bidirectional integration, and understanding the maturity level currently in place helps identify what the next investment should target.
| Maturity Level | What Flows Automatically | What Still Requires Manual Entry |
|---|---|---|
| No Integration | Nothing | Orders, consumption, quality, and labor all manual |
| One-Way (ERP to MES) | Production orders only | Consumption, quality, and labor still manual |
| Full Bidirectional | Orders down, results up automatically | Minimal, mostly exception handling only |
Choosing the Right Integration Method for Each Data Category
Not every data category needs the same integration approach, and matching method to actual usage need avoids over-building some connections while under-building others.
Event-Driven API Calls
Best suited for production orders and quality results, where an immediate update matters, such as a new order needing to reach the floor the moment it is released.
Near-Real-Time Streaming
Well suited for material consumption data, where continuous small updates, rather than a single large nightly batch, are what keep inventory figures aligned with actual floor activity, exactly the fix applied in the scenario above.
Scheduled Batch Where Appropriate
Some labor reporting or administrative data genuinely tolerates a less frequent update cycle, and reserving batch processing for these lower-urgency categories keeps the overall integration architecture appropriately scoped.
A Composite Scenario: The Inventory Discrepancy That Was Really a Reporting Lag
A textile mill's finance team repeatedly found discrepancies between the ERP's recorded material inventory and physical stock counts during periodic reconciliation, with the ERP consistently showing more raw material on hand than actually existed on the floor. Initial suspicion focused on possible shrinkage or unrecorded waste somewhere in the production process.
Investigation found the actual cause was a reporting lag rather than any physical loss: the mill's MES-to-ERP connection only pushed material consumption data in a nightly batch, meaning the ERP's inventory figure was always at least a full day behind actual floor consumption at any given moment during the day, and the reconciliation counts were being compared against a stale ERP snapshot rather than current data. Moving material consumption reporting to a near-real-time feed rather than a nightly batch eliminated the apparent discrepancy entirely, since the comparison was now between two genuinely current figures instead of one current and one a day old.
Mistakes That Undermine MES-ERP Integration
Building Only the Downstream (ERP to MES) Connection
Automating order flow to the floor while leaving results reporting manual still leaves the most error-prone half of the integration in place.
Relying on Batch Synchronization Where Real-Time Data Matters
A nightly batch sync, as in the scenario above, can create the appearance of a discrepancy that is really just a reporting lag between two systems comparing data from different points in time.
Investigating Physical Causes Before Checking Data Timing
Jumping to a physical explanation like shrinkage before checking whether the two systems being compared are actually reporting on the same timescale wastes investigation effort.
Treating Integration as Complete Once Any Data Flows
Partial integration that moves some data automatically can create a false sense that the connection is finished, when critical categories may still depend on manual entry.
Is Your MES-ERP Connection Actually Complete
Data flows in both directions, not just from ERP down to MES
Full bidirectional flow is what removes manual re-entry entirely, rather than automating only half the connection.
Material consumption, quality, and labor data update on a timescale that matches how the data is used
A nightly batch sync can create the kind of apparent discrepancy seen in the scenario above if reconciliation depends on comparing current, same-moment figures.
Discrepancies are checked against data timing before a physical cause is assumed
Ruling out a reporting lag first, rather than assuming shrinkage or waste, would have shortened the investigation in the scenario above.
Frequently Asked Questions
Why does a nightly batch sync between MES and ERP cause inventory discrepancies?
A nightly batch means the ERP's inventory figure only reflects consumption reported up through the last sync, so any comparison made against current physical stock during the day is inherently comparing a stale ERP number against a current reality, exactly the gap that produced the apparent discrepancy in the scenario above until material consumption reporting moved to a near-real-time feed.
What is the difference between one-way and bidirectional MES-ERP integration?
One-way integration typically pushes production orders from the ERP down to the MES automatically but still requires manual entry to get material consumption, quality, and labor results back into the ERP, while bidirectional integration automates both directions, removing the manual re-entry step that one-way integration leaves in place.
How real-time does MES-ERP data flow actually need to be?
The right update frequency depends on how the data is used downstream, but any process that compares MES-derived and ERP-derived figures against each other, such as inventory reconciliation, needs both sides updated on a comparable timescale, or the comparison will produce exactly the kind of misleading discrepancy seen in the scenario above.
Can partial MES-ERP integration still provide meaningful value?
Partial integration, such as automated production order flow alone, does provide some value by reducing manual order entry, but it leaves the more error-prone reporting side, material consumption, quality, and labor, still dependent on manual re-entry, meaning a mill with only partial integration should treat it as a starting point rather than a finished connection. Book a demo to see how iFactory completes a partial MES-ERP integration.
What is the first step for a mill wanting to move from batch to real-time MES-ERP data flow?
The first step is identifying which specific data categories currently depend on batch synchronization and which downstream processes, like inventory reconciliation, are sensitive to that lag, since this is exactly the diagnostic that would have found the reporting lag behind the scenario above faster. Mills wanting help mapping this out can reach iFactory support directly.
Move Data Between MES and ERP in Both Directions, in Real Time
iFactory connects production orders, material consumption, quality results, and labor reporting bidirectionally between MES and ERP, eliminating manual re-entry and reporting lag. Book a walkthrough to see it running on a live textile plant.






