Back to Blog
Smart Factory

When MES Output and ERP Quantities Never Match: Designing Production Result Closing and Correction

When MES output and ERP quantities disagree every month, the cause is usually missing rules for entering, correcting, and closing results, not a software bug. This guide covers shift, daily, and monthly closing stages, reversal-based corrections, and key-based reconciliation that close the gap for good.

POLYGLOTSOFT Tech Team2026-11-307 min read11
MESProduction ReportingPeriod ClosingERP IntegrationData Consistency

The Monthly Ritual of Reconciling Quantities

In many plants, the month-end review starts with production and accounting holding up two different numbers. MES might report 48,200 units produced for the month while ERP shows 47,650 units received into stock. That is a gap of 550 units, about 1.1%. Material consumption and work-in-process don't match either, so someone spends several days every month lining up spreadsheets.

Most of these gaps are not software bugs. The real cause is that nobody has set rules for when results get entered, how wrong entries get corrected, and when the numbers become final.

Five Ways Production Results Drift

  • Late manual entry and double counting: Operators enter a whole shift's output at the end of the shift, or machine counters and operator entries are both posted, so the same units get counted twice.
  • Shift and date boundaries: If there is no rule on whether a 22:00–06:00 night shift belongs to its start date or its end date, a full day of output can land in the wrong month.
  • Scrap, rework, and partial completion: Departments handle these differently. One adds reworked good units back into output and another doesn't. Teams also disagree on when a partially completed work order gets received into stock.
  • Backflush standards versus actual consumption: If the BOM calls for 0.25 kg of resin per unit, producing 1,000 units backflushes 250 kg. If purging and scrap mean 262 kg was actually used, 12 kg (4.8%) never shows up in the books.
  • Failed sends and retries to ERP: A transaction times out and gets resent, but the first attempt had already posted. Now the quantity is in ERP twice.
  • When you break down that 550-unit gap, you usually find several causes at once, for example 120 units from duplicate resends, 260 from date assignment, and 170 from inconsistent scrap rules.

    Designing the Closing Stages: Shift, Day, and Month

    A close is a promise: after this point, this data does not change. Each stage needs a defined scope and a named owner.

  • Shift close: The shift lead confirms good and scrap quantities for the shift and locks them.
  • Daily close: The production planner checks results by work order against ERP transmission status.
  • Monthly close: Production control and cost accounting confirm quantities together and hand them off to ERP costing.
  • Before any close, check at least three things: work orders that were started but never completed, transactions that were never sent to ERP or failed, and items with negative inventory. A simple, effective rule is to keep the close button disabled until all three lists are empty.

    After Closing, Correct by Recording, Not by Editing

    If you edit a closed result directly, it falls out of sync with what ERP already holds, and there is no record of who changed it or why. So the original record stays untouched and you post a correction entry (reversal) instead. If 500 units were entered but the real figure is 480, keep the original +500, add a −500 reversal and a +480 correction, and the net quantity is 480.

    Every correction needs a mandatory reason code, such as entry error, scrap reclassification, or date reassignment. Corrections after the monthly close also need approval from the production control manager. The before and after values, the requester, the approver, and the timestamp all go into the audit trail.

    Reconciliation Built into the MES–ERP Interface

  • Transaction keys and idempotency: Give each result a unique key, such as work order + operation + result sequence, and have ERP ignore any key it has already received. Resending then can't create duplicates.
  • Reconciliation report: Compare record counts and quantity totals on both sides each day, and show only the work orders that differ.
  • Root-cause view: Clicking a mismatch should show the MES result, the transmission history, the ERP posting, and any correction entries in time order.
  • Rollout Order and the POLYGLOTSOFT Approach

    Agree on the rules before building the system. First, sort the last two to three months of gaps by type. Next, get production and accounting to agree on date assignment rules and a closing calendar. Only then build those rules into MES and the interface. If you build screens without rules, the exceptions end up back in spreadsheets.

    POLYGLOTSOFT builds MES, integrates it with ERP, and supports it in operation through SM services, so we design closing and correction workflows around how your plant actually runs. If your team spends every month-end reconciling quantities, we can start by analyzing the types of gaps you have today.