mail@mabbaz.com Abu Dhabi, UAE

Traceability · Manufacturing · ERP

Lot Traceability: From Raw Materials to Finished Goods

Lot traceability is a chain, and a chain is only as good as the weakest transaction in it. This walks the whole path from a supplier delivery to a finished goods lot, the physical step and the ERP posting side by side, and shows exactly where the link is made and where it is quietly lost.

Muhammad Abbas November 26, 2026 ~17 min read

Most organisations that believe they have lot traceability have lot numbers. Those are not the same thing. Lot numbers are captured at goods receipt, printed on finished goods labels, and stored in the item master, and every one of those is a genuine achievement. But traceability is the ability to join them: to start from a finished pallet and name every input that went into it, or start from a suspect raw material delivery and name every finished unit that contains it. That join lives in a specific set of transactions, and if any one of them is posted without lot detail, the chain is severed at that point and no amount of reporting will repair it afterwards.

The message up front: traceability is not a report, a module or a label. It is a property that emerges when every stock transaction carries a lot identity, and it is destroyed by the first one that does not. The single most common point of failure is the gap between material issued to a production order and material actually consumed by it, because that is where the genealogy record is created. Fix that transaction and most of your traceability problem is solved. Leave it loose and nothing else you do will compensate.

1. What lot traceability actually means

The working definition I would use: lot traceability is the ability to reconstruct, from recorded data and without physical investigation, the complete set of relationships between input lots and output lots across every transformation your material passes through.

Two things in that sentence are doing work. "Without physical investigation" rules out the common fallback of walking to the warehouse with a clipboard, which is how a surprising number of businesses actually answer traceability questions and which does not scale to an urgent enquiry at 22:00. "Across every transformation" means the chain has to survive each point where material changes identity: receipt, inspection, issue, consumption, output, repack, return.

This article is about building that chain. Querying it in the two directions, backward from a finished unit to its inputs and forward from a raw material to its customers, is a separate skill with its own pitfalls, and it is covered in forward and backward traceability in manufacturing. The terminology underneath both, and why batch and lot are the same field, is in batch vs lot vs serial number.

2. The chain, and the five places identity is created or lost

Here is the whole path. Every arrow is a transaction, and every transaction either carries lot identity forward or drops it.

Supplier despatch (their batch)
  ↓ 1. Goods receipt  ← identity CREATED here
Received lot, status: quarantine
  ↓ 2. Inspection and release  ← status changes, identity preserved
Released lot, available to pick
  ↓ 3. Issue to production order
Material at the line, allocated
  ↓ 4. Consumption posting  ← genealogy LINK created here
Production order with recorded input lots
  ↓ 5. Output receipt  ← output identity created, parentage attached
Finished goods lot, with full parentage
  ↓ despatch
Customer, carrying the FG lot on the delivery note

Steps 1, 4 and 5 are where the data is made. Steps 2 and 3 are where it is most often lost, which is a useful asymmetry to remember: the transactions that feel administrative are the ones that break the chain, because nobody treats them as traceability events.

3. Goods receipt: the one field everyone overwrites

A worked scenario. A sauce manufacturer receives 40 drums of tomato paste against purchase order 4502. The delivery note shows the supplier's batch reference TP-2026-0871 and a certificate of analysis is attached. The drums go to a staging area pending inspection.

What happens physically: the driver hands over paperwork, the receiving operator counts 40 drums, checks for visible damage, confirms the batch reference on the drum labels matches the delivery note, and moves the pallets to a quarantine location that is physically separate from released stock.

What has to happen in the ERP: a receipt posting against PO 4502 that creates a lot record with the supplier's reference stored as the lot code, or stored in a dedicated supplier-lot field if the business generates its own internal codes. Quantity 40 drums, received into a quarantine location or with a quality status that blocks picking.

The failure here is specific and extremely common: the business generates an internal sequential lot code, writes TP-2026-0871 nowhere, and the supplier reference is lost at the first transaction. Six months later a supplier notifies a problem with their batch TP-2026-0871 and nobody can find it, because the system holds lot 000248 with no link back. Backward traceability to the supplier has been destroyed at the moment of receipt.

Keep both references, always

Store the supplier's lot reference in its own field on the lot record, even when you generate an internal code. The internal code serves your warehouse; the supplier's code is the only thing that will match a supplier recall notice, a certificate of analysis or an incoming quality complaint. Making it a required field on receipt costs the receiving operator three seconds and is the cheapest traceability control available.

Multiple supplier batches on one delivery make this sharper still. If those 40 drums arrive as 25 from batch TP-2026-0871 and 15 from TP-2026-0902, that is two lot records against one receipt line, not one receipt of 40. Systems that force a single lot per receipt line push operators into picking one reference and ignoring the other, and the 15 drums become untraceable. This is common enough to deserve its own treatment, in managing multiple supplier batches during goods receipt.

4. Inspection, quarantine and release: a status change, not a new identity

The 40 drums are sampled, tested and released. The important modelling point is that release does not create a new lot. It changes the status of the existing one. That sounds obvious and is routinely got wrong, usually by moving released material onto a new internal lot code, which breaks the join back to the certificate of analysis and the supplier reference in a single posting.

What the lot record needs is a status that gates availability: quarantine or on hold, released or available, rejected, and often a restricted status for material usable only for specific purposes. Physical segregation and system status should agree, and where they disagree the system status must be the one that blocks the pick, because physical segregation relies on people reading labels correctly under time pressure.

Partial release is where this gets interesting. If 25 drums pass and 15 are rejected, you now genuinely do need two records, because the two groups have different statuses and different futures. That is the sublot case: a parent lot splitting into children that inherit its attributes and its parentage while tracking their own quantity and status. The relationship between parent and child has to be stored, or the rejected 15 drums lose their link to the supplier batch that caused the problem.

5. Issue versus consumption: the transaction that decides everything

This is the hinge of the entire chain, and in my experience it is where most traceability implementations are quietly incomplete.

Issue is a stock movement. Material leaves a warehouse location and goes to the production line or a work-in-progress location. It is a logistics event and it answers the question "where is the material".

Consumption is a manufacturing event. Material is recorded as having been used by a specific production order. It is the posting that answers "what went into this".

These are frequently the same posting, and treating them as the same thing is exactly the error. Consider the sauce line. The order calls for 120 kg of tomato paste. The storeman issues two drums, 200 kg, because drums are the issuing unit and you cannot issue two thirds of a drum. The line uses 118 kg. The remaining 82 kg sits at the line.

If your system records consumption as equal to the issue, your genealogy now says 200 kg of lot TP-2026-0871 went into this order. It did not. 118 kg did. The error is 69 percent, and it propagates in both directions: the finished lot overstates its input, and the remaining 82 kg of paste is invisible in stock, so when it is used on tomorrow's order that order shows no paste consumption at all.

The practical consequence is not an accounting irritation. It is that your recall scope is wrong. Forward tracing from TP-2026-0871 will implicate today's finished lot and miss tomorrow's entirely, and tomorrow's is the one that will still be on shelves.

The honest limitation of backflushing

Backflushing posts consumption automatically from the bill of materials when output is declared, which is efficient and widely used. Its weakness is structural: it records what the recipe says was consumed, not what was. It cannot see over-issue, wastage, substitution or a partially used drum, and where more than one lot of the same material was at the line it has to guess which lot to attribute, usually by picking rule rather than fact. Backflushing is a reasonable choice for stable, low-variance processes. It is a poor choice where traceability is the point, and it is the hidden reason many genealogy records are confidently wrong.

What I would recommend instead, where traceability genuinely matters: capture consumption as its own posting, by lot, at the line, with the actual quantity. That means scanning the lot label at the point of use rather than deriving it. It is more work for the operator and it is the difference between a genealogy record that is evidence and one that is an assumption. The detail of reconciling the two postings is covered in production material issue versus actual consumption.

6. The three leaks: over-issue, returns and wastage

Once issue and consumption are separated, the difference between them has to go somewhere, and there are exactly three honest destinations. Every traceability system needs all three, and systems that provide only the first produce quietly corrupted data.

Leak What physically happened Correct ERP treatment What goes wrong without it
Return to store Unused material goes back to the warehouse, still good Reverse issue, same lot, back to a stock location with status intact Stock understated, lot appears fully consumed, future use untraceable
Wastage Material spilled, degraded, trimmed off or left in the vessel Scrap posting against the order, by lot, with a reason code Yield variance hidden, waste attributed to consumption, recipe cost wrong
Over-issue More was genuinely used than the recipe called for Consumption posted above BOM quantity, flagged as variance Genealogy understates input, variance invisible, process drift undetected

The arithmetic that has to hold, per lot, per order:

issued = consumed + returned + scrapped

If that identity does not balance for every lot on every order, you have unexplained material, and unexplained material means your genealogy is incomplete by exactly that amount. I would make this a standing reconciliation report rather than a month-end exercise, because the people who can explain a variance can do so on the day and cannot do so in three weeks. The variance side of this is treated in managing material over-issue, wastage and production variance, and the return path in managing material returns from production to warehouse.

7. Finished goods: creating the output lot and its parentage

The order completes and produces 900 units of finished sauce. Two records are created, and the second is the one that matters.

The first is the finished goods lot itself: a new lot record against the finished item, with its own code, its own manufacturing date, its own expiry date and a quantity of 900. That part is straightforward and almost always done.

The second is the genealogy record: the set of rows linking this output lot to every input lot consumed by the order that produced it, with the quantity of each. This is the join table that makes traceability possible, and it is derived entirely from the consumption postings in step 5. If consumption was backflushed from the recipe, the genealogy is a restatement of the recipe. If consumption was captured by lot at the line, the genealogy is evidence.

Finished goods expiry is worth a specific note because it is commonly mishandled in both directions. The primary rule is the finished product's own established shelf life from the production date. Where the inputs' degradation still governs the output, as in a cold blend or a repack, an additional cap at the shortest-dated input is a sensible control and is a configuration decision rather than something any system does by default. Where a validated process such as pasteurisation, sterilisation or baking has changed the product's stability, that cap does not apply and imposing it under-dates the product. Which applies is a per-item quality decision. That calculation gets its own treatment in how to calculate finished goods expiry dates.

8. The data model, end to end

Everything above reduces to a small number of tables. The structure is not complicated; the discipline of populating it is.

lot (lot_id PK, item_id, lot_code, supplier_lot_ref,
     parent_lot_id NULL, mfg_date, expiry_date,
     qc_status, origin_doc_ref)
    UNIQUE (item_id, lot_code)

stock_movement (movement_id PK, lot_id FK, location_id,
     qty, direction, movement_type, order_id NULL,
     reason_code NULL, posted_at, posted_by)

production_order (order_id PK, item_id, planned_qty, status)

lot_genealogy (output_lot_id FK, input_lot_id FK,
     order_id FK, qty_consumed)
    PRIMARY KEY (output_lot_id, input_lot_id, order_id)

Four observations about this shape, each of which I have seen get decided wrongly:

  • lot_genealogy is the whole traceability feature. Backward tracing is a recursive walk up input_lot_id; forward tracing is the same walk down output_lot_id. Without this table you have lot numbers and no traceability, and no reporting tool can synthesise it.
  • parent_lot_id handles splits and repacks within one item, which is a different relationship from genealogy across items. Conflating the two produces a structure that cannot represent a repack.
  • movement_type and reason_code carry the leak accounting. Issue, consumption, return and scrap must be distinguishable, or the issued = consumed + returned + scrapped identity cannot be computed at all.
  • Quantity belongs on the movement, never on the lot. A quantity column on the lot record becomes a denormalised cache that drifts from the movement history, and reconciling the two is a job nobody wants.

On performance, the honest caveat: recursive genealogy queries over several transformation levels are expensive, and they are run precisely when people are in a hurry. A multi-level explosion across six months of production is not a query you want to discover the cost of during an incident. Index lot_genealogy on both directions, and test the query at realistic data volume before you need it.

9. What regulation actually requires, and where

Traceability obligations are jurisdictional, and a requirement from one jurisdiction has no force in another. Two of the most widely referenced regimes, described as the authorities themselves describe them:

European Union. Article 18 of Regulation (EC) No 178/2002, the General Food Law, establishes the general traceability duty. The European Commission's own guidance on implementing those articles describes the duty as the one step back, one step forward model: operators must be able to identify who supplied them and which businesses they supplied, and have systems making that available to authorities on request. Final consumers do not have to be identified. Two points from that guidance are worth knowing because they surprise people:

  • Internal traceability is not expressly required. The Commission guidance states the Regulation does not expressly compel operators to link incoming product to outgoing product. Everything in sections 5 to 8 above is therefore, under EU general food law, good practice rather than a legal minimum.
  • Demands beyond one up and one down are contractual. When a customer requires full genealogy, that obligation comes from your contract with them, not from the Regulation.

Commission Implementing Regulation (EU) No 931/2011 goes further for food of animal origin, adding required details including quantity, lot reference and dispatch date. Article 18 itself sets no minimum record retention period; the Commission guidance suggests around five years by analogy with tax records, shorter for some perishable foods.

United States. The FDA Food Traceability Rule, made under section 204 of the Food Safety Modernization Act and codified at 21 CFR part 1 subpart S, applies to foods on the Food Traceability List. It requires records of Key Data Elements for specified Critical Tracking Events, which FDA lists as harvesting, cooling before initial packing, initial packing, first land-based receiving for food from a fishing vessel, shipping, receiving and transformation. A written traceability plan is required under section 1.1315, and records must be provided to FDA within 24 hours of a request, with a sortable electronic spreadsheet within 24 hours during an outbreak or recall.

The compliance date is genuinely unsettled, so check it yourself

The rule's original compliance date was 20 January 2026. FDA has proposed extending it by 30 months to 20 July 2028, and states that Congress, through the Continuing Appropriations and Extensions Act of 2026, directed it not to enforce the rule before that date and that it intends to comply. FDA describes the extension as a proposal rather than a final rule. Treat the 2028 date as the current enforcement position rather than a settled deadline, and verify against FDA's own rule page before relying on it. This is a moving target and nothing written here substitutes for your own regulatory advice.

The practical point for system design: the EU model asks you to identify trading partners, which is a transactional record-keeping problem. The FDA model asks for defined data elements at defined events, which is closer to the genealogy structure described above. If you operate in both, build for the stricter of the two obligations that actually apply to you rather than for an average of them.

10. Where the chain breaks, in order of frequency

  • Consumption backflushed from the recipe. The genealogy restates the BOM rather than recording fact. Everything downstream inherits that.
  • The supplier lot reference discarded at receipt. Backward traceability ends at your own dock.
  • Stock movements posted without lot detail. A transfer, a cycle count adjustment or a repack that does not carry the lot forward leaves a gap the genealogy walk cannot cross.
  • No return or scrap path, so operators force a balance. Material that cannot be returned cleanly gets consumed on paper or written off against the wrong order.
  • Rework and reprocessing unmodelled. Reworked material re-entering a process is a new input lot with its own parentage. Treated as fresh stock, it severs the link to the original problem.
  • Bulk tanks and continuous blending treated as discrete lots. Where new material is added to a partially full vessel, the output genuinely contains several input lots in proportions nobody measured. This needs an explicit modelling decision, usually a time-boxed lot, not a pretence of precision.
  • Traceability tested for the first time during an actual incident. A mock trace, run cold against real data with a stopwatch, finds every one of the breaks above. Running one is the single highest-value thing most operations could do this quarter.

The idea to walk away with

Lot traceability is built transaction by transaction, not configured once. The chain runs receipt, release, issue, consumption, output, and the join that makes it queryable is the genealogy record created from consumption postings. Capture consumption by lot with actual quantities and the rest of the structure follows. Derive it from the bill of materials and you have built a system that will answer traceability questions confidently and incorrectly, which is materially worse than one that cannot answer them at all.

The reconciliation to hold yourself to is the simplest thing in this article: for every lot on every order, issued equals consumed plus returned plus scrapped. When that balances, your genealogy is complete. When it does not, the gap is exactly the part of your traceability that does not exist.

Final thoughts

If you want to know whether your chain actually holds, do not audit the configuration. Pick a finished pallet in the warehouse at random, and ask for every input lot that went into it and every other finished lot those inputs touched, within an hour, from the system alone. The result tells you more than any design review. Most organisations discover that they can answer it for the last step and not the one before, and that the break is at the line, in the consumption posting, exactly where this article says it is.

Where that exercise is genuinely urgent is recall, which turns the chain into a time-limited search problem with a legal clock attached. That is covered in product recall management in manufacturing, and the structural view of the same data in batch genealogy in manufacturing.

Disclosure

Alongside advisory work I also build a CMMS and CAFM platform, so I have a commercial interest in the enterprise systems category. Nothing above is a recommendation for it, and no vendor has paid for inclusion or had any editorial input. This article names no product capability claims. Weigh the analysis accordingly.

Does your traceability chain actually hold?

Independent advisory on traceability data models, consumption posting design, genealogy structures and the integration between production, warehouse and quality systems. 22+ years across enterprise systems implementation.

Book a conversation

Related reading: Lot and batch tracking, Three-way matching: PO, GRN and invoice, Expiry date management, Quality inspection automation, Inventory accuracy.

Muhammad Abbas

CMMS / CAFM Manager & Independent Advisor · 22+ years across enterprise CMMS, EAM, CAFM and ERP implementations in utilities, oil and gas, manufacturing, government and facility operations.

Work with me
MAbbaz.com
© MAbbaz.com