All knowledge topics
MES Insights

Batch Traceability in MES: Fundamentals and a Practical Checklist

Batch traceability in an MES links the material batches used to production steps and manufactured products. This guide explains the data required, how material flows can be traced, and what matters during implementation and testing.

MES8 min readUpdated 10 November 2026Softwarecheck Editorial Team

What batch traceability means and the role of the MES

Batch traceability means being able to trace the origin and use of a defined quantity of material or product. A batch comprises units managed together according to specified criteria, for example because they share a production run. However, a batch number alone does not establish traceability: what matters is the documented relationship between the material used, its processing and the resulting products. These relationships form what is known as batch genealogy.

The Manufacturing Execution System (MES) captures and links this information at production level. It maps material usage to the actual production process and links it to the batches produced. While an ERP system typically manages orders and inventory, the MES records execution on the shop floor. Which application serves as the primary system for traceability data depends on the system landscape; not every MES covers all material movements within and outside the plant.

Reliable batch genealogy helps narrow down the range of potentially affected products when quality deviations occur and supports root cause investigations. However, it neither proves that quality is satisfactory nor automatically constitutes a release decision. The required granularity must also suit the process: batch traceability distinguishes quantities managed together, whereas individual item traceability identifies specific units. The level required depends on the product, the risk and the applicable requirements.

  • Clarify the definition: what operational criteria determine whether a quantity is managed as a batch in your production process?
  • Define the MES role: which parts of the actual production process should the MES capture for batch genealogy?
  • Recognise the limits: traceability shows relationships but does not replace quality assessment or product release.

Required master data, identifiers and transactions

A reliable data foundation starts with unambiguous material master data: item number, material description, base unit of measure and whether the material is batch-managed. If quantities are recorded in different units, permitted conversions must be defined. Bills of materials and routings describe the planned material usage and process sequence; they do not replace records of the batches actually used. Changes to these specifications should be identifiable through traceable versions.

Each batch needs an identifier that is unique within the defined scope. A supplier batch number alone may not be sufficient, as different suppliers can assign the same number. If an internal batch identifier is assigned, its link to the supplier batch must be retained. Unique references to the production order, operation and batch produced are also required. Container IDs and batch identifiers must be treated separately: several containers may belong to the same batch.

Transactions must link actual material usage to production output. In particular, this requires the batch identifier, quantity, unit, transaction type, event timestamp, and the associated order and operation. Material staging and actual consumption are different events: a staging transaction does not yet prove that the material was used. For batches produced, the quantity manufactured must be recorded. Reversals and corrections should reference the original record rather than overwrite it without a trace.

  • Review material master data: establish binding rules for batch management requirements, base units of measure and permitted conversions.
  • Document identifier rules: clearly distinguish and map internal batch identifiers, supplier batch identifiers and container IDs.
  • Define mandatory fields for each transaction type, particularly batch, quantity, unit, event timestamp and process reference.
  • Link consumption and production transactions so that batches used and batches produced can be analysed together.
  • Provide correction transactions that reference the original record and include a reason for the change; retain the original data in a traceable form.

How forward and backward tracing work in day-to-day production

Forward tracing starts with a material batch that has been used and shows which intermediate and finished products it went into. If, for example, a quality issue is subsequently raised with a raw material batch, the MES can identify which production batches were made from it and where the affected quantities are located according to the recorded material flow. For products already dispatched, the investigation can extend through connected warehouse or ERP systems to the associated deliveries. The result narrows down the affected stock and supports decisions on blocking stock, inspection or further action.

Backward tracing, by contrast, starts with a finished product or production batch. It shows which material batches were used and which production steps the product passed through. In the event of a quality deviation, those responsible can check, for example, whether products showing an issue share a source batch or processing step. Linked process and inspection data support root cause analysis; a shared origin alone, however, does not prove a causal relationship.

In day-to-day production, both directions are often combined: an investigation starts with a finished batch showing an issue, traces back to a potentially affected material batch, and then traces forward to other products made from it. It is important to distinguish between material relationships actually recorded in transactions and a scope expanded as a precaution, for example to cover a production time window. Investigation results should show which of these grounds was used to classify products as affected. Displaying an affected batch also does not automatically mean that its stock has already been blocked.

  • Forward-tracing question: which intermediate products, finished batches and stock contain material from the source batch under investigation?
  • Backward-tracing question: which material batches and production steps are associated with the product showing an issue?
  • Combined investigation: identify shared source batches, then narrow down the other batches produced using them.
  • Interpret results: distinguish confirmed material relationships from products included as a precaution, and initiate any necessary actions separately.

Practical checklist: define requirements and verify them with test cases

For the practical checklist, production, quality assurance and IT should first agree on the questions that batch traceability must reliably answer. Describe specific test scenarios rather than general requirements such as “complete transparency”: for example, identifying all affected production lots when a quality issue is raised with a material batch. For each scenario, define the expected scope of results, the permitted completion time and the responsible role. Your own processes and the applicable operational or regulatory requirements should guide this work.

Verify the requirements using a prepared test dataset whose expected results are documented independently of the MES. Simply displaying a batch tree is not enough: compare the results, quantities and document references against this benchmark, and also check that unaffected lots remain excluded. Have the intended users perform the tasks under realistic conditions. Record deviations, responsibilities and retests in an acceptance test record; an otherwise successful demonstration must not obscure critical unresolved issues.

  • Define the test scope: specify products, production areas and process boundaries; formulate an unambiguous acceptance criterion for each requirement.
  • Prepare reference cases: record the input data, expected affected lots and quantities, and deliberately unaffected comparison lots before testing.
  • Check usability: can the intended users work through a test case without the supplier's support and explain the result in operational terms?
  • Check outputs: do the on-screen view and exported evidence contain the same information, and are the search criteria and creation timestamp traceable?
  • Document acceptance: compare expected and actual results for each test case, prioritise errors and rerun the affected tests after corrections.

Common pitfalls: split quantities, mixing, rework and data gaps

For split quantities, the original batch identifier alone is not sufficient when material is distributed across different containers, orders or storage locations. Without a documented split, it is often only possible to classify the entire original batch as affected later on. When several batches are mixed, the resulting mixed batch must remain linked to all source batches actually used and their quantities. Residual quantities in silos, pipes or containers are particularly critical: a batch change does not automatically mean complete material separation in these cases.

Rework and the reintroduction of material can make an initially clear batch history difficult to follow. If material is processed again or added to another batch, its origin and the additional processing step must remain recorded. A new identifier must not replace the previous mapping. Scrap, process losses and inventory adjustments must likewise be treated separately: a mathematically balanced quantity reconciliation does not prove that the documented material relationships reflect what actually happened.

Data gaps can arise, for example, from missing material withdrawal transactions, delayed data capture or material movements during a system outage. If missing links are subsequently derived solely from planned orders, the result may be a seemingly complete but factually incorrect history. The MES should make unresolved mappings visible and distinguish confirmed events from reconstructed information. Until the origin can be reliably narrowed down, the scope of potentially affected material must be broadened accordingly.

  • Split quantities: check whether splits and subsequent recombinations remain traceable without losing the original source information.
  • Mixing: account for residual stock and transition zones; do not assume that changing a container guarantees batch separation.
  • Rework: link reintroduced material to its existing history and record further processing as a separate operation.
  • Quantity discrepancies: distinguish scrap, losses and corrections rather than concealing differences with blanket balancing transactions.
  • Data gaps: flag uncertain mappings and do not present retrospective reconstructions as confirmed consumption transactions.

Establish governance for interfaces, retention and access

Operational and technical responsibilities must be defined for interfaces between the MES, ERP, warehouse management and, where applicable, quality management systems. Specify which system is authoritative for each type of information and who handles transmission errors. The operating agreement should cover monitored transfers, traceable error messages and retry rules that do not create duplicate transactions. Interface changes should be checked for their impact on traceability before release.

Retention periods depend on the applicable legal, contractual and operational requirements; there is no universal retention period for all MES batch data. For each data type, document the retention period, when it starts, and the procedures for deletion and any required deletion holds. A backup is not a substitute for an archive: even after system migrations, archived information must remain readable, linked to its context and retrievable within a defined time. Restoration and retrieval should therefore be tested regularly in practice.

Access rights should be separated by task: searching, posting transactions, making corrections, exporting and administration do not require the same permissions. Changes to traceability-relevant data must be attributable to an individual or a technical service; the original state, timestamp and reason for the change should remain traceable. Also establish rules for approving critical corrections, revoking rights that are no longer needed and managing external maintenance access.

  • Clearly assign owners, error monitoring responsibilities and escalation routes for each interface.
  • Document archiving and deletion rules for each data type and review them when requirements change.
  • Test the retrieval and restoration of archived batch data, including in preparation for a future system migration.
  • Regularly review roles, service accounts and maintenance access; keep a traceable log of critical changes.

Related reading