All knowledge topics
ERP Knowledge

Batch traceability in ERP: linking every goods movement

Batch traceability links material receipts, processing steps and deliveries in the ERP system. This guide explains the basics, outlines the required postings and provides a checklist to help identify gaps in data and processes.

ERP8 min readUpdated 10 November 2026Softwarecheck Editorial Team

What a batch is and how it differs from a serial number

A batch is a defined quantity of a material or product whose units were manufactured or grouped together under specified, shared conditions. This could be a production run or a defined filling quantity, for example. The characteristics that define the batch depend on the product and the process used. The batch number identifies this group; it does not automatically refer to an individual package or a storage location.

A serial number, by contrast, identifies an individual unit, such as a particular machine. The batch number answers the question “Which group does this unit belong to?”, while the serial number answers “Which individual unit is it?”. Both identifiers can be used at the same time: a component can have an individual serial number and also be assigned to a production batch. Batch management alone therefore does not distinguish between individual units within the same batch.

An important practical distinction is that a batch is not the same as a delivery. A delivery can contain several batches, and the same batch can be spread across several deliveries. Nor does belonging to the same batch prove that every unit is identical in every respect. It establishes a defined relationship that may be relevant to quality inspections, for example.

  • Batch: Identifies a group of units that share a defined production or grouping context.
  • Serial number: Distinguishes an individual unit from other units of the same item.
  • Combination: Batch and serial numbers can represent group membership and individual identity in parallel.
  • Distinction: Deliveries, packaging and storage locations are separate concepts and do not automatically correspond to a batch.

How ERP links batches from goods receipt to delivery

At goods receipt, the quantity delivered is assigned to an item and a batch. The ERP system records this assignment together with the receipt document and stock balance; a supplier batch can serve as an additional reference. During stock transfers, the batch retains its identity while the storage location changes. This creates a document chain that shows when a given quantity of a batch was received and where it was moved.

In production, input and output batches are linked through material consumption and production completion confirmations. The batches actually used are assigned to the production order together with the quantities consumed; the goods produced receive their output batch assignment when they are booked into stock. The order thus provides the link between materials and finished products. If consumption is recorded in a connected production system, these assignments must also be available for traceability in the ERP system.

At delivery, the system records which batch was shipped, in what quantity and to which recipient. What matters is the actual confirmed withdrawal or goods issue posting: a previously reserved batch does not prove that shipment took place. The linked movement data can then be traced in both directions – from the delivered product back to its material receipts, and from a material batch used in production to the resulting products and deliveries.

  • Goods receipt: Link the item, batch and quantity received to the relevant document.
  • Stock movement: Maintain the batch assignment during withdrawals and stock transfers.
  • Production: Link the batches actually consumed and the output batches produced through the production order.
  • Delivery: Assign the batch and quantity shipped to the delivery document and recipient.

The master data and posting rules needed for traceability

The item master provides the foundation: it defines which materials require batch tracking, the base unit of measure in which they are managed and which conversions are permitted. For batches, the scope within which an identifier must be unique needs to be clearly defined, for example per item or across the company. External supplier batch identifiers should be held in a separate field and linked unambiguously to the internal identifier. Depending on the material and process, the required batch attributes may also include the manufacturing date, expiry date or inspection status. Not every attribute is always necessary; operational and, where applicable, legal requirements determine what is needed.

Posting rules must ensure that stock requiring batch tracking cannot be moved without a valid batch assignment. This includes mandatory fields, quantity checks and defined approvals for exceptions. An inspection or blocked status is only effective if the ERP system actually prevents the relevant postings. Scanners, import interfaces and connected systems must follow the same rules as manual data entry. Corrections should be made through traceable reversals and repostings or logged change procedures, rather than unrecorded changes to historical assignments.

Data maintenance requires clear responsibilities: who may create batches, change attributes or release blocked stock? Permitted posting times and the handling of late entries must also be defined. The time of the movement and the time of data entry should remain distinguishable so that retrospective postings can be identified. Retention and access are governed by the applicable requirements; when changing systems, historical batch assignments and their posting references must also remain readable.

  • Define binding rules for each item covering batch tracking requirements, identifier scope and permitted unit conversions.
  • Specify mandatory attributes and responsibilities for creating, changing and approving batch data.
  • Use system controls to prevent postings without a valid batch and unauthorised movements of blocked stock.
  • Apply the same mandatory validation rules to scanners, data imports and interfaces.
  • Maintain a clear audit trail for corrections, retrospective entries and historical assignments.

Common pitfalls with partial quantities, mixtures and returns

Partial quantities create a traceability gap when the ERP system records only the total quantity for an order, rather than the quantity actually withdrawn from each batch. This can occur with opened containers or a batch change during picking, for example. Splitting stock across several storage locations does not automatically create a new batch; what matters is that each partial quantity remains clearly assigned. The link to the original batch must also be preserved during repacking. If a new batch identifier is issued, the relationship between the original and subsequent batch must be retained.

For mixtures, a single reference batch on the production order is not enough. All batches actually used must be linked to the resulting batch together with the quantities consumed. Residual quantities in containers, later additions and material reused from earlier production steps are particularly easy to miss. Automatic consumption postings based on a recipe do not necessarily capture these deviations. If the proportions of individual input batches can no longer be distinguished within the finished mixture, traceability must not suggest a more precise assignment to partial quantities delivered than the data supports.

Returns become problematic when the batch from the original delivery document is adopted without verification. A return may contain different batches, for example where returns are consolidated or packaging has been mixed up. Physical labelling and the quantity returned must therefore be checked against the documents. If the identity is unclear, the goods should remain blocked until the issue is resolved, rather than being assigned to a seemingly appropriate batch. Confirmed batch identity is also no substitute for a quality inspection: traceability and approval for reuse are separate decisions.

  • Partial quantities: Check whether actual withdrawals, batch changes and remaining stock remain traceable, including when containers have been opened.
  • Mixtures: Include residual contents, additional material inputs and reused material in the batch assignments.
  • Repacking: When new identifiers are issued, preserve the link to the original batch; do not create unlinked replacement batches.
  • Returns: Physically check batch identity and quantity, block goods whose identity is unclear and handle quality release separately.

Checklist: testing batch traceability with a practical scenario

Test batch traceability in a test environment using an end-to-end practical scenario: a supplier batch is received, split between two storage locations and partly processed in a production order. The resulting finished goods batch is delivered to two customers, with some stock remaining in the warehouse. Define in advance which documents, quantities and relationships the results must contain. This list of expected results, prepared independently of the ERP report, provides the benchmark for the test.

Ask the responsible employees to process the scenario using their usual user permissions. Then run a backward search from a customer delivery to the material receipt, and a forward search from the supplier batch to stock and recipients. Compare the results with the expected-results list and check whether they can be understood without supplementary spreadsheets. Document discrepancies with the document reference, the expected and actual result, and a person responsible for resolving them. Repeat failed test steps after corrections have been made.

  • Check result coverage: Does the search show all expected stock, processing steps and deliveries without including unrelated batches?
  • Reconcile quantities: Can the quantity received, consumption, remaining stock and any scrap be fully accounted for using the test documents?
  • Follow document links: Can reviewers navigate from every search result to the relevant source and subsequent documents?
  • Test corrections: Does the relationship remain traceable after a test delivery is reversed and reposted, without counting reversed quantities as an active delivery?
  • Save the results: Does a saved report or export include the search criteria, creation time and unique document references for later review?

How traceability data helps define the scope of a recall

During a recall, traceability data helps identify the range of goods potentially affected: which stock remains under the company's control, which deliveries went to which recipients, and which downstream products contain the material in question? The starting point is a specific concern, such as a potentially defective raw material batch. The ERP analysis provides the documented links. Whether additional batches, production periods or shared equipment need to be included requires a technical assessment based on the cause of the defect. The boundary of a batch does not automatically define the boundary of the risk.

To manage the recall, the identified quantities should be separated by their current status: available stock, blocked goods, deliveries already shipped and documented returns. Delivery documents and recipient data support targeted contact with direct customers; downstream distribution channels may need to be clarified with those customers. A versioned snapshot of the analysis records the data used to determine the scope. This keeps later findings and additional postings distinguishable from the original basis for the decision.

An ERP query neither proves that goods absent from the results are safe nor replaces the recall process. Where data gaps exist, the responsible team must assess whether the scope of affected goods needs to be broadened as a precaution. Quality assurance and, where necessary, other relevant specialist teams assess the risk and determine the measures to take; sector-specific reporting and notification obligations must be checked separately. The final record should document which quantities were successfully located, blocked or taken back, and which discrepancies remain unresolved.

  • Document the starting point, nature of the defect and technical rationale for the scope of the recall.
  • Save a dated snapshot of the analysis covering affected stock and deliveries, including downstream products.
  • Provide recipient lists and quantity summaries to support communication, blocking and returns.
  • Flag unexplained quantities and unknown distribution channels as unresolved risks and follow them up.

Related reading