The operating problem
The ERP shows that a batch order is complete. At the line, part of the batch was diverted to rework after an interruption. The lab has released one lot, another is on hold, and the warehouse is expecting the original quantity. An on-time production dashboard can be green while the dispatch team is preparing stock it cannot ship. At a multi-line plant this is also a planning problem: the next shift may schedule material that exists only in the ERP.
Scope of this study
Enterprise resource planning (ERP) provides orders and master data. Manufacturing execution (MES) tracks the run. The plant’s controls and historian report physical events. Quality and the warehouse record release and receipt.
Proposed architecture
Agree a production contract with planning, operations, quality and warehouse teams. Define what planned, started, physically produced, quarantined, released and received mean at this plant. Map the ERP order and operation to the MES run, material lot, equipment and warehouse receipt. Read approved events from the operations layer through the plant’s supported integration gateway. Keep machine control with the PLC and SCADA teams and business posting with the ERP.
Production and quality release
Trace a lot through release.
Inspect the line event, the quality hold and the inventory posting. Each unit does a different job and has an accountable owner.
Run an example eventSynthetic data · local replay
- 06:40 · sampleInput
MES reports lot L-104 against order WO-24. Quality hold Q-6 is open.
- 07:12 · sampleDecision
Quality approves disposition D-8 for L-104. The integration sends an inventory write with external reference R-L104-D8.
- 07:12 · sampleOutcome
The write response times out. The posting is unresolved and another write is held.
- 07:16 · sampleRecovery
The ERP owner finds transaction TX-131 for R-L104-D8 in a read-back and records the evidence. No second write is made.
The ERP owns the order. The production system supplies actuals. Quality owns the hold and its disposition. Inventory gets a write only when that decision permits it.
The integration can read approved plant and quality records. An authorised quality release must match the lot and revision before the integration can request an inventory posting.
Pause the instruction while the ERP owner reconciles by its stable external reference. If the result is still unclear, the owner keeps the exception open and decides the recovery.
Inspect a component
Relate a run and its completed quantity to the planned operation and material lot.
- Owner
- Production systems owner
- Example input
- ERP order WO-24 and MES lot L-104
- Example output
- Completion event with a stable event ID, quantity, unit and run timestamp
- Operating constraint
- Confirm what the approved gateway can expose. PLC logic and SCADA control stay with the controls owner.
Validate units, revisions and event identity before assembling a posting candidate.
- Owner
- Integration owner
- Example input
- Completion event plus a versioned lot and order cross-reference
- Example output
- Validated posting candidate with an external reference
- Operating constraint
- Treat the same event ID with a changed payload as a conflict. Split lots and counters require explicit rules.
Keep material held until an authorised lot disposition permits release.
- Owner
- Quality lead
- Example input
- Lot L-104, hold Q-6 and its documented test results
- Example output
- Quality disposition D-8 tied to that lot and revision
- Operating constraint
- The integration consumes the approved decision. It cannot release a hold or treat a late decision as permission for an earlier write.
Record the approved quantity in the authoritative inventory ledger.
- Owner
- ERP application owner
- Example input
- Approved lot, quantity and stable posting reference
- Example output
- Inventory transaction and its acknowledgement
- Operating constraint
- Confirm whether the ERP can enforce the reference or return a unique transaction in a read-back.
Reconcile a posting for which no acceptance response was received.
- Owner
- ERP application owner, with warehouse operations
- Example input
- External reference R-L104-D8 and the original attempt audit
- Example output
- Matched posting transaction or an owned exception
- Operating constraint
- Do not create another posting while the first is unresolved. Preserve evidence for the next shift.
Order & lot
Relate a run and its completed quantity to the planned operation and material lot.
- Owner
- Production systems owner
- Example input
- ERP order WO-24 and MES lot L-104
- Example output
- Completion event with a stable event ID, quantity, unit and run timestamp
- Operating constraint
- Confirm what the approved gateway can expose. PLC logic and SCADA control stay with the controls owner.
Validation
Validate units, revisions and event identity before assembling a posting candidate.
- Owner
- Integration owner
- Example input
- Completion event plus a versioned lot and order cross-reference
- Example output
- Validated posting candidate with an external reference
- Operating constraint
- Treat the same event ID with a changed payload as a conflict. Split lots and counters require explicit rules.
Quality hold
Keep material held until an authorised lot disposition permits release.
- Owner
- Quality lead
- Example input
- Lot L-104, hold Q-6 and its documented test results
- Example output
- Quality disposition D-8 tied to that lot and revision
- Operating constraint
- The integration consumes the approved decision. It cannot release a hold or treat a late decision as permission for an earlier write.
Stock posting
Record the approved quantity in the authoritative inventory ledger.
- Owner
- ERP application owner
- Example input
- Approved lot, quantity and stable posting reference
- Example output
- Inventory transaction and its acknowledgement
- Operating constraint
- Confirm whether the ERP can enforce the reference or return a unique transaction in a read-back.
Posting check
Reconcile a posting for which no acceptance response was received.
- Owner
- ERP application owner, with warehouse operations
- Example input
- External reference R-L104-D8 and the original attempt audit
- Example output
- Matched posting transaction or an owned exception
- Operating constraint
- Do not create another posting while the first is unresolved. Preserve evidence for the next shift.
| System category | Record and identifier | Proposed interface | Authoritative owner | Dependency to confirm |
|---|---|---|---|---|
| ERP | Order and operation identifier | Read release; write approved quantity | ERP application owner | External reference, unique constraint or idempotency contract and read-back |
| MES and historian | Run, equipment and lot identifiers | Read supported gateway or export | Production systems owner | Time zone, source event ID and changes to counters |
| Quality system | Lot, hold and disposition revision | Read authorised decision; never modify hold | Quality lead | Approval roles, late decisions and effective time |
| Warehouse system | Pallet and receipt reference | Write release instructions where supported | Warehouse application owner | Duplicate controls and accepted receipt response |
- Source recordsERP order, bill of material and approved revision
- ProcessingMES execution, actual consumption and line events
- Decision ownerQuality disposition and supervisor exception review
- Operational outputReleased lot and supported ERP/WMS posting
Systems found on real plant floors
Siemens documents an Australian MotorOne installation with Mescada where SIMATIC PCS neo and Opcenter MES connect process control to the ERP. AVEVA describes Borg Manufacturing integrating enterprise orders and plant execution in its Australian manufacturing operations. Those installations show that the ERP-to-operations boundary is a real integration problem. The proposed design starts by identifying the MES, historian, PLC/SCADA and ERP already supported at the buyer’s site.
Close out a split lot
In an illustrative shift, a run yields 1,000 packed cases. Quality releases 860, holds 100 for a label investigation and records 40 as scrap. The warehouse can allocate up to 860 after counting the received pallets. Keep the two quantities separate so a missing pallet remains a warehouse discrepancy even when quality has cleared its lot.
If quality subsequently releases 60 of the held cases under a new lot, preserve the link to the original lot and confirm the warehouse has applied both the split and the new disposition. If the destination cannot confirm its stock position, keep allocation blocked for the affected quantity until an authorised operator resolves it. The trace should answer which raw material batches were used, which finished lots contain them and where those cases went.
Rollout across lines and sites
Select one product family with a changeover, rework and a real quality hold. Run the event model alongside manual closeout. Confirm tag meaning and count direction with the line engineer, then validate each accounting posting with finance. Promote a reusable event contract to a second line only after documenting local equipment names, unit conversions and plant-specific quality rules.
Reliability and operating controls
Give each source event a stable identity and each write an external reference. Confirm a destination idempotency contract, unique external reference or read-back before replay. If a commit acknowledgement is lost, reconcile with that reference. Hold an unresolved posting for application-owner review. Quality holds remain until the authorised disposition arrives.
Illustrative operating scenario
A filling line stops during changeover. The operator records partially filled product for rework while the packaging counter includes everything that passed its sensor. Quality releases only the conforming lot. The shift supervisor sees the gap against the production order; the warehouse receives only released pallets. The rework stays linked when it is consumed on a later shift.
Delivery boundaries
The integration scope covers the business interfaces, event contracts, monitoring and replay. The client’s controls engineer or integrator owns PLC and SCADA changes and plant commissioning. Quality retains release authority.
Expected business impact
A planner could see the stock that can actually be dispatched and its source lot. Supervisors could resolve posting and rework exceptions before shift close. Judge value against lost operator time, duplicate postings and late inventory corrections.
Acceptance test and handover
Establish the baseline from the last completed production period: compare run completions, pack counts, rework, scrap and stock the warehouse could actually release. Separate recording delays from physical yield loss. Compare product families and shift patterns before attributing a change to the integration.
The proposed acceptance suite covers commit with a lost response, exact duplicates, the same identity with conflicting content, late dispositions, split lots, merged rework, unit conversions and the limit on automated recovery. Rehearse a business-interface outage while local production continues. Reconcile acknowledged yield and stock, then test the authorised reversal path.
Industry context and design references
Food manufacturers need records that link lots to what was supplied, in what quantity and to whom. Food Standards Australia New Zealand · Food traceability
Siemens and Mescada · MotorOne tank farm automation and Opcenter MES
AVEVA · Borg Manufacturing’s ERP-to-operations integration
OPC Foundation · ISA-95 information model scope
The outbox pattern addresses data and event consistency at the source. A destination still needs a deduplication or reconciliation contract. AWS · Transactional outbox and duplicate message handling