What Is Batch Tracking?
Batch tracking means recording every quantity of an item under a batch number, also called a lot number, and carrying that number through every movement: receipt from the supplier, storage, production, sale and delivery to the customer. A batch is a group of units with a common origin, such as product made on the same shift from the same raw materials, or goods that arrived in the same supplier shipment with the same expiry date.
The idea is simple. Its value shows up on the worst day: a customer complains about quality, a supplier tells you a raw material they shipped was defective, or a regulator asks for a product recall. Without batch tracking, you pull everything from every customer to be safe. With it, you know within minutes which customers received the affected batch and where the rest of it sits in your warehouses.
This guide explains how batch tracking differs from serial numbers, where it is required in Saudi Arabia, how it works at each stage, how to run a recall with a worked example, and how to roll it out in your company.
Batch Numbers vs Serial Numbers
| Aspect | Batch tracking | Serial numbers |
|---|---|---|
| Unit of tracking | A group of units under one number | Each unit with a unique number |
| Typical products | Food, medicines, chemicals, paints, building materials | Electronics, equipment, vehicles, fixed assets |
| Linked data | Production and expiry dates, supplier, test results | Warranty, service history, current owner |
| Cost to run | Lower, one number per batch | Higher, one number and record per unit |
| Recall precision | Batch level | Unit level |
Some sectors use both. Pharmaceuticals are the clearest case, where each pack carries a batch number and a serial number.
Why Batch Tracking Matters
1. Targeted recalls
When a quality issue surfaces, the difference between pulling one batch and pulling all stock and sales can be the difference between a manageable loss and a real crisis, in cost and in brand reputation.
2. Expiry control
Each batch has an expiry date. Tracking it lets you ship the earliest-expiring stock first and flags batches nearing expiry early enough to sell or deal with them, instead of finding them expired at the count.
3. Linking quality to source
When a finished product fails inspection, you can trace back to the raw material batches inside it, and to the supplier and shipment. Over time, the data shows which suppliers, lines or shifts are linked to more problems.
4. Regulatory compliance
Some sectors mandate traceability through specific systems, as covered below.
5. Accurate costing
When raw material prices vary from shipment to shipment, batch tracking shows the actual material cost in each production batch, not just a general average.
Batch Tracking in the Saudi Context
Pharmaceuticals
Saudi Arabia was the first GCC country to establish a national drug traceability system. According to a GS1 case study, the Saudi Food and Drug Authority phased in a GS1 DataMatrix 2D barcode requirement on medicine packs. Phase one, from 21 February 2015, covered the GTIN together with batch number, expiry date and SFDA code; phase two, from 21 March 2017, added the serial number. Any pharmaceutical distributor or warehouse needs a system that reads and records this data in every movement.
Food
Food companies deal with production and expiry dates, label requirements that vary by product type, and the possibility of a recall after contamination or a violation. Even where a specific batch number format is not required on every label, knowing where every shipment went is what makes a recall possible. Check the requirements for your products with the SFDA; we cover some of them in our article on food inventory and SFDA requirements.
Industrial and consumer products
Many products need conformity certification through the SABER platform before entering the market. That is about certificates more than internal tracking, but linking shipments and batches to their certificates makes regulatory questions much easier to answer. See our article on traceability and SABER.
How Batch Tracking Works at Each Stage
1. Receiving
When a supplier shipment arrives, each batch is recorded by number, either the supplier's printed lot number or an internal number linked to it, along with production date, expiry date, quantity and purchase order. If one shipment contains two batches with different expiry dates, they are recorded separately even for the same item.
2. Inspection
If incoming material requires a quality check, the batch stays in a quarantine status and cannot be issued until approved. The result is recorded on the batch itself.
3. Storage
Each batch sits in a known location. On transfers between warehouses or branches, the batch number moves with the quantity.
4. Production
This is the most important and most difficult link. When raw materials are issued to a production order, each issued batch is recorded. When the finished product is produced, it receives a new batch number tied to the production order, and therefore to every raw material batch that went into it. That link enables tracing in both directions.
5. Sales and delivery
When an order is picked, the batch number shipped is recorded on the delivery note and invoice. For dated products the usual rule is first expired, first out, which is not necessarily the oldest receipt.
6. Returns
Returned goods are recorded with their batch number and inspected before going back into saleable stock or into quarantine.
Backward and Forward Tracing
- Backward tracing: a customer complains about a product from batch X. Which raw material batches went into it? From which suppliers? What were their inspection results on arrival?
- Forward tracing: a supplier reports a defect in raw material batch Y. Which finished products contain it? Where are they now: in the warehouse, in transit, or with which customers?
If your system can answer only one of these, tracking is incomplete. The real test is how long the answer takes: minutes from a report, or days digging through paper.
What to Record for Every Batch
| Data | Source | Used for |
|---|---|---|
| Batch number | Supplier or internal numbering | Identification in every movement |
| Item, quantity, unit of measure | Receipt or production order | Balances by batch |
| Production and expiry dates | Label or supplier certificate | FEFO picking and alerts |
| Supplier and purchase order | Purchase order | Backward tracing and claims |
| Production order, line, shift | Production order | Linking finished goods to raw materials |
| Quality status | Inspection result | Blocking unapproved batches |
| Current location | Storage and transfer movements | Fast quarantine during a recall |
| Batch cost | Supplier invoice or production cost | Actual product cost |
Worked Example: A Batch Recall
Hypothetical example: a juice plant in Jeddah hears from its orange concentrate supplier that lot 4471, delivered a month ago, may have a quality problem. The plant received 2,000 kg from that lot.
- Forward trace from raw material: the system shows 1,600 kg issued to three production orders and 400 kg still in the warehouse.
- Identify finished goods: the three production orders produced three juice batches totaling 48,000 bottles.
- Locate the product: 18,000 bottles are in the plant warehouse, 6,000 in the Riyadh branch warehouse, and 24,000 have been sold to 37 customers.
- Quarantine immediately: remaining concentrate and bottles in both warehouses are blocked from issue by changing their status.
- Contact customers: a report lists the 37 customers, quantities, batch numbers and delivery dates, and outreach starts.
- Financial handling: returns are recorded with credit notes linked to the original invoices, and a claim is raised against the supplier.
Put numbers on it. At SAR 2 per bottle, recalling 24,000 sold bottles means SAR 48,000 of returns before VAT, plus collection and disposal costs. If the plant had to pull a whole month's output, say 300,000 bottles of which 150,000 were sold, returns alone would reach SAR 300,000, before counting the damage to its relationships with retail chains.
First Expired, First Out
One of the most useful applications of batch tracking for dated products is first expired, first out (FEFO). It differs from first in, first out (FIFO), because a later shipment can expire sooner than an earlier one.
| Batch | Received | Expires | Quantity |
|---|---|---|---|
| A | 1 March | 30 September | 500 |
| B | 15 March | 31 July | 500 |
FIFO ships A first. FEFO ships B first, because it expires two months earlier. Under FIFO, B could expire before it sells. FEFO is impossible without batch-level expiry data.
It also helps to set a minimum remaining shelf life at sale. Many retail customers refuse goods close to expiry, so the system should prevent allocating a batch that does not meet the customer's requirement.
Batch Tracking by Sector
- Food and beverage: expiry dates, FEFO, and ingredient-to-product links for fast recalls. Storage temperature can be part of batch data for some items.
- Pharmaceuticals and medical supplies: mandatory 2D barcode traceability, usually with serial numbers alongside batches.
- Chemicals and paints: small differences between batches can change color or properties. A customer finishing a project often needs more from the same batch.
- Cosmetics: shelf life, label requirements, and returns that need exact batch identification.
- Building materials: test certificates vary by batch, and contractors or consultants may ask for the certificate of the exact batch supplied to their site.
- Plastics and packaging: raw resin batches affect product quality, so they must be tied to production orders for defect analysis.
How to Roll Out Batch Tracking
- Choose which items need it: not every item does. Start with dated items, regulated items, and raw materials that affect final product quality.
- Set a numbering rule: supplier lot number or an internal number? Which format? Including date and line makes numbers readable at a glance.
- Choose how data is captured: manual entry of batch numbers is a major error source. Barcodes or QR codes carrying batch and expiry make capture faster and more accurate.
- Define procedures: who records batches at receiving, how quarantined batches are held, how production issues are recorded.
- Train the team: storekeepers and production staff will enter the data. If they do not understand why, they will treat it as a chore and cut corners.
- Run a mock recall: pick a random batch, have the team trace it both ways, and time it. Repeat regularly.
Common Mistakes
- Recording batches only at receipt, then issuing to production or sales without them, which breaks the chain halfway.
- Mixing batches in one location without separation, so picking between them becomes random.
- Late entry: recording batches issued to production at the end of the day from memory.
- Ignoring returns: putting returned goods back into stock without their batch number.
- Splitting without a trail: when bulk is repacked into smaller units, the new packs need a number linked to the original batch.
- One-person knowledge: if only one storekeeper knows where each batch is, the tracking lives in their head, not the system.
- Never testing: you usually discover tracking does not work at the worst moment, during a real recall.
Metrics for Tracking Quality
- Trace time: minutes to identify every customer who received a given batch.
- Completeness: share of issue and sales transactions for tracked items that carry a batch number.
- Near-expiry stock: value of batches expiring within a set window, and what is being done about them.
- Expiry write-offs: value of stock written off as expired, a direct measure of FEFO success.
Where the System Comes In
Batch tracking on paper or in separate spreadsheets can work in theory for a handful of items, but it collapses at the first real recall, because the answer requires linking receiving, production and sales at once. An integrated system makes that link part of every transaction rather than extra work.
In Tranquil, inventory management works with sales and purchasing in one system, and the manufacturing solutions include barcode integration for scan-based recording and quality check to tie inspection results to production, alongside multi-level BOMs and material planning. Customization services cover screens, reports and approval workflows, so the right tracking setup for your items can be scoped with the team.
Frequently Asked Questions
What is the difference between a batch number and a serial number?
A batch number covers a group of units with a common origin, such as one production shift. A serial number identifies a single unit. Batches are common in food, pharma and materials; serials in electronics and equipment.
Is batch tracking mandatory in Saudi Arabia?
It depends on the sector. Medicines must carry 2D barcodes encoding batch number, expiry date and serial number. For other sectors, check the requirements for your products with the relevant authority.
What is the difference between forward and backward tracing?
Backward tracing starts from a finished product and leads to its raw materials and suppliers. Forward tracing starts from a raw material and leads to the finished products and customers that received them.
Do I need batch tracking for every item?
No. Start with dated items, regulated items and materials that affect product quality. Other items may not justify the extra effort.
How do I know my tracking actually works?
Run a mock recall: pick a random batch, trace it both ways, and measure time and accuracy. Contact the Tranquil team to discuss setting up tracking in your system.
