ERP and MES integration is a boundary problem. The ERP owns the business transaction; the MES or plant application owns what happened on the floor. The integration is the contract between them, and most of the difficulty is in the words: work order, operation, lot, serial, complete, scrap, and yield do not always mean the same thing on both sides.
These answers cover the ownership model, the interface choices, the staging pattern that makes retries safe, and the reconciliation that someone has to own after go-live.
How to read these answers. Answers describe general integration practice and the systems named. The supported interface depends on the ERP version, modules, and licensing; confirm it with the vendor before committing to a design.
ERP, MES, and the plant boundary
What each system is for, before deciding how they connect.
What is the difference between an ERP and an MES?
An ERP runs the business: orders, purchasing, inventory, finance, and often planning. An MES runs production execution: work orders on the floor, operations, material consumption, genealogy, and quality status. They overlap, but they are not substitutes.
In the ISA-95 model, the ERP sits at level 4 and the MES at level 3. The ERP decides what should be made, for whom, and at what cost. The MES records what is being made, in what order, with which materials and equipment, and whether it met the specification. A plant can run MES functions inside the ERP or inside a SCADA system; the label matters less than the ownership agreement.
The practical test is the question each system must answer. “What is the current inventory value?” belongs to the ERP. “Which serial numbers were built on line 3 this shift, and which test failed?” belongs to the MES or the plant application. When both systems claim the same field, the integration has to reconcile instead of simply move data.
What does ERP-to-shop-floor integration actually move?
Down: work orders, operations, materials, routings, and schedule changes. Up: completions, consumption, scrap, quality results, downtime, and inventory movements. The direction and ownership of each message should be explicit.
The downstream path gives the plant the context it needs: what to make, which operation is next, which materials are issued, and what the customer or due date is. The upstream path gives the business what happened: quantities completed, material consumed, scrap and rework, inspection results, and the time the operation took.
Not every message needs the same frequency or guarantees. A schedule change can be a periodic batch; a serial-number completion may need near-real-time posting. Write the contract per message: source, destination, trigger, frequency, key, required fields, and error behavior. That contract is the integration; the transport is replaceable.
Should the ERP or the MES own the work order?
The ERP usually owns the work order and its business fields. The MES owns the execution state: operation start and end, quantities, consumption, and genealogy. Do not let both systems edit the same field.
The ERP is the natural owner of the work order number, customer, item, quantity ordered, due date, and cost. The MES is the natural owner of what happened on the floor: which operation ran, who ran it, how long it took, how much material was consumed, and which serials were produced. The MES can hold a copy of the business fields for display, but it should not be the place where they are changed.
If the plant needs to change a quantity or split a work order, define which system accepts the change and how the other is notified. A change made in both systems without a reconciliation rule is a future inventory variance. The ownership table is a short document; it prevents a long argument later.
Interfaces and data contracts
The supported path, and the shape of the data that crosses it.
Can you integrate with our ERP if we do not have API access?
Often, through supported database views, staging tables, import utilities, or a vendor connector. Direct writes into undocumented tables are a last resort and should be treated as an upgrade risk.
“No API” usually means no REST API, not no interface. Check for published views, import programs, scheduled file drops, business-object libraries, or an integration module the vendor supports. The right path is the one the vendor will support through an upgrade, even if it is less elegant than a REST call.
If the only option is database access, restrict it to read-only views where possible. For writes, use a staging table that the ERP's own import process consumes, rather than inserting into application tables. Log every attempt, validate the business keys, and test the path against a copy of the next upgrade. A direct write that works today can fail silently after a patch.
API vs database vs file: which integration style should we use?
Use the API for transactions that need validation and a response. Use a read-only view or replica for reporting. Use files for batch exchanges with a defined contract. Avoid direct writes to application tables.
An API is the best fit when the ERP must enforce business rules and the caller needs to know whether the transaction succeeded. A database view or reporting replica is appropriate for read-only analytics, provided the schema is supported and the latency is acceptable. Files are durable and simple for periodic batches, but they need a complete-file signal, a naming convention, and a duplicate rule.
The choice is not only technical. A file interface can be operated by a plant without a developer; an API requires monitoring, credentials, and retry logic. A database view couples both sides to a schema that may change. Pick the style that matches the skills and the support model, then document the contract and the failure behavior.
What data model do you need for work orders, lots, and serials?
Model work order, operation, material, lot, serial, resource, and measurement as separate entities with explicit keys. Do not collapse them into a single free-text field or infer them from timestamps.
A workable minimum: WorkOrder (business key, item, quantity, due date), Operation (sequence, work center, status), Material (item, lot, quantity), Serial (serial number, work order, operation), and Measurement (test, value, unit, limits, result, timestamp). Each row carries the key of its parent.
Example
A test result joins to a serial, the serial joins to a work order, and the work order's material issues join to raw lots. That chain answers “which raw lot affected this serial” without parsing a note or guessing from a timestamp.
The model should also carry status and audit fields: created, updated, posted, and the user or service that changed the row. Those fields are what make reconciliation possible.
Posting, duplicates, and reconciliation
What happens after the first successful demo, when the network or the ERP is unavailable.
How do you prevent duplicate postings to the ERP?
Use an idempotency key that identifies the business event, enforce it with a unique constraint or the ERP's own transaction id, and make the retry return the original result rather than create a second posting.
A timeout does not mean the ERP rejected the transaction. It may have committed and lost the response. If the sender retries blindly, the inventory or completion is posted twice. The fix is a key the receiver can recognize: work order plus operation plus serial plus transaction type, or a GUID generated at the source and stored with the event.
The receiver checks the key before posting and returns the existing result if it has seen it. If the ERP cannot enforce the key, the integration layer must. Store the request, the response, the key, and the timestamp for every attempt. Reconciliation then has a record to work from instead of a log line that says “timeout.”
How do you reconcile when the plant and the ERP disagree?
Compare counts and quantities by business key on a schedule, put exceptions in a queue with an owner, and resolve them with a documented reason. Reconciliation is an operating process, not a one-time report.
Start with the questions the business asks: did every completed work order post, did every material issue post, and do the quantities match? Build a reconciliation query that compares the plant's event table with the ERP's posted transactions for the same period. Classify the differences: missing, duplicated, quantity mismatch, or timing.
The output should be a work queue, not a spreadsheet emailed on Friday. Each exception needs a status, an owner, a reason code, and a resolution. Some differences are timing and will clear; others are real and need a correcting transaction. The reconciliation report also becomes the acceptance test for the integration: if it cannot explain the difference, the design is incomplete.
What is a staging table, and why is it useful?
A staging table holds an event between the plant and the ERP with a status, a business key, an attempt count, and the last error. It makes retries, monitoring, and reconciliation possible without re-reading the source.
A minimal staging table has EventId (the idempotency key), WorkOrder, Operation, Payload, Status, Attempts, LastError, CreatedAt, and UpdatedAt. The status moves from NEW to SENT to ACCEPTED or FAILED. The payload can be JSON or typed columns; keeping the original request is valuable when the contract changes.
The staging table is also the integration's audit trail. It shows what was sent, when, and what came back. A dispatcher reads NEW rows, calls the ERP, and updates the status in the same transaction where possible. A separate job retries FAILED rows with backoff and alerts when the count or age crosses a threshold.
Scope, cost, and platform specifics
What the project takes, and where the ERP-specific traps are.
How long does ERP/MES integration take, and what does it cost?
A single work-order-to-completion flow can take weeks to a few months. Multi-plant, multi-module integration with inventory, quality, and reconciliation is a program. The drivers are interface availability, data cleanliness, and the ERP change-control process.
Estimate by flow and by system count. One plant, one ERP, one work-order flow, and a supported API is a focused project. The same flow across three plants, two ERPs, and a MES with a custom data model is a different scale. Add time for the ERP vendor's review, security approval, and a test environment that resembles production.
Common hidden costs are master-data cleanup, test-environment access, middleware licensing, and the operations time to reconcile exceptions after go-live. A discovery phase that maps the interfaces and the ownership table usually pays for itself by preventing a redesign in the middle of the build.
What is different about integrating with SYSPRO?
SYSPRO exposes supported business objects and integration options, but the exact path depends on the version, modules, and licensing. Use the supported interface, keep the ERP as the owner of the business transaction, and test against a copy of the production company database.
SYSPRO environments often have a custom report or view culture, which makes direct SQL access tempting. The safer route is the supported business-object or API layer for transactions, and read-only views or reports for analysis. Confirm which integration method the specific SYSPRO release and license include before designing around it.
The plant-side pattern is the same as any ERP: a staging table with a business key, a dispatcher that calls the supported interface, a response status, and a reconciliation report. The SYSPRO-specific work is mapping the plant's work order, lot, and quantity concepts to the ERP's fields and validating the result with the finance or production-control owner.
Where should inspection and quality results live: ERP, MES, QMS, or LIMS?
The system that owns the quality decision should own the result. A QMS or LIMS often owns inspection specs and dispositions; the MES owns in-process execution; the ERP usually receives a summarized status, not the raw measurement.
Raw measurements, calibration, and disposition belong in a system designed for them: a LIMS in a lab, a QMS for controlled quality processes, or the MES for in-process checks. The ERP needs the business consequence — accepted, rejected, scrapped, reworked — and sometimes the inspection lot status. Sending every measurement to the ERP creates a large, poorly modeled table and duplicates the quality system's authority.
Define the quality event and its owner before choosing the integration path. If a result can be corrected, the correction must be auditable in the system of record, and the downstream systems must receive the corrected status. A one-way “send the result” interface often misses the correction path, which is where the real quality risk lives.
Engagement and first steps
The scope questions that come before an ERP or MES integration is priced.
Do we need an MES?
Not automatically. An MES earns its cost when production execution, genealogy, and operator transactions are complex enough that the ERP and custom software cannot represent them cleanly.
A smaller operation may be better served by a focused integration between the ERP, a test application, and SQL Server. The decision should follow the complexity of the production record, not a vendor category.
What happens if the ERP is down during production?
The plant should keep working where it safely can, with transactions staged locally and posted when the ERP returns.
That requires validated cached reference data, a bounded queue, and a clear operator message. It does not mean posting blindly later; quantities and identifiers still have to reconcile, and somebody has to own the exception queue.
Do you replace the ERP?
No. This practice builds software and integration around the systems a manufacturer already owns.
If an ERP selection or replacement is the real question, that is a different engagement with different expertise. The integration work can still support a replacement, but it should not be positioned as one.
What is the best first step?
Book a free 40-minute session, or send the ERP, the plant systems, and the record that must move between them.
A short description of the ERP, the plant systems, and the record that must move between them is enough to determine whether the next step is an interface assessment, a staging design, or a reconciliation review.
These answers describe integration architecture and software practice. They do not replace the ERP vendor's supported-interface documentation or the plant's accounting and quality controls.