top of page
Search

Inventory Discrepancy: When ERP and MES Stock Disagree, Where Do You Find the Cause?

Nov 13
8 min read

Inventory discrepancy scene: late at night in an office, an employee rests their chin on one hand and looks at two monitors. The left ERP screen shows 500 units in stock, the right MES screen shows 420 units available, and printed stock lists and coffee cups sit on the desk
The night before month-end closing, ERP shows 500 units and MES shows 420. Someone on the materials team switches between the two screens to figure out why the same part has two different numbers. (AI-generated image of a made-up scene)

It's the day before the month-end closing meeting. ERP shows 500 units of Part A, but MES says only 420 units are ready to use. (ERP is the system that handles orders, purchasing, and accounting. MES is the system that tracks work on the shop floor.) The sales team has already promised next week's delivery based on the ERP number. Someone on the materials team keeps switching between the two screens, checking receipts and shipments line by line. They did the same thing last month, and the way they found the cause back then lives only in their memory.



Inventory discrepancies happen in every factory. The bigger problem is that every time a gap shows up, people look for the cause from scratch. This article explains how an inventory discrepancy is different from other inventory problems. It also covers why ERP and MES stock drift apart, the order for finding the cause, simple work rules that make gaps less likely, and how your team can reuse a method once it has worked.


목차



1. Slow-moving, excess, and obsolete inventory: how is an inventory discrepancy different?


Inventory problems come in two kinds. Some stock is in stock, but a problem. In other cases, the records don't match reality.


Inventory discrepancy versus other inventory problems: slow-moving, excess, and obsolete inventory are in stock but still a problem, while an inventory discrepancy means the records don’t match reality
Slow-moving, excess, and obsolete inventory are real stock that still causes problems. An inventory discrepancy means the records don’t match what is really in the warehouse.

The first three are problems even when the numbers are right. Money gets tied up in stock, and in the end you may have to throw some of it away. An inventory discrepancy is different: the number itself is wrong. Delivery promises and purchasing decisions end up being made on a wrong number.


The two can also get mixed up. Say a part can no longer be used because of a design change, but one system still lists it as "available." Then obsolete inventory looks like an inventory discrepancy. That's why you should check the status of the stock, not just the quantity, when you look for a gap.


2. Why do ERP and MES show different stock?


The two systems record the same stock at different times and by different rules. Here are the common reasons.


Reason

Example

Records to check

Recorded at different times

ERP updates after a transaction is posted. MES updates when shop floor results come in

Unposted transactions, closing time

Stock being moved or inspected

Parts on their way from the warehouse to the line, or parts waiting for incoming inspection

Transfer and inspection history

Units and conversion

Boxes vs. pieces, kilograms vs. pieces, quantities converted from the BOM (the list of parts for each product)

Unit and conversion rules

Recorded in only one system

Scrap, sample shipments, or rework recorded in only one of the two systems

Adjustment and scrap history

Status changed in only one system

A "hold" or "unusable" status updated in only one system

Status change history

Sometimes one reason causes the gap. Sometimes several reasons overlap. Even when the gap is 80 units both times, this month's cause may be different from last month's.



3. In what order should you look for the gap?


Finding a gap usually takes four steps.


  1. Compare on the same basis. Line up both stock numbers at the same time, in the same unit, for the same warehouses. If the basis is different, the gap itself looks wrong.


  1. Start with the biggest gaps. Pick the items with the largest quantity gap, or the largest money impact.


  1. Check that item's history in time order. Put receipts, shipments, transfers, inspections, and adjustments in order. Find the point where the two systems split.


  1. Decide the cause and act. Decide whether to fix the record, change the status, or fix the work step that keeps leaving records out.



4. What can you set up so gaps happen less often?


Preventing gaps matters as much as finding them. For each of the five reasons above, there is a work rule you can set up without changing your systems.


Reason

What to set up

Who should agree on it

Recorded at different times

Pick one time to compare both systems (for example, the daily closing time), and finish posting transactions before then

The materials team, the production management team

Stock being moved or inspected

Mark parts on their way to the line or waiting for inspection as "in transit" or "awaiting inspection," so they don't drop out of either count

The materials team, the quality team

Units and conversion

Keep each item's base unit and conversion rule (such as pieces per box) in one place, and check regularly that both systems use the same values

The person in charge of master data

Recorded in only one system

For steps that often get missed, such as scrap, sample shipments, and rework, add "enter it in both systems" to the work procedure

The production team, the materials team

Status changed in only one system

When you put stock on hold or mark it unusable, add a check that both systems were updated

The quality team

Two more rules make chasing gaps easier.


  • Set an acceptable range. Decide for each item: "Gaps up to this size get adjusted right away. Bigger gaps get a cause check." Then you don't have to chase every gap with the same effort.

  • Count the problem items more often. Instead of counting everything once at the end of the year, count items that often have gaps or cost a lot, a little at a time, on a short cycle. This is called cycle counting, and it brings gaps to light earlier.


Gaps will still happen. As long as people enter data and goods move around, some gaps will remain.


5. Why do we start from scratch every time?


The steps for finding a gap look simple. But in practice, people often end up starting over every time.


  • The method lives in one person's head. The person who is good at this knows which screen to pull data from and how to line it up. When that person is busy or moves to another job, the work stops.


  • No one writes down how the comparison was done. If there's no record of the time, unit, and warehouses used last time, the same gap gets calculated again and comes out with different numbers.


  • Each team does it differently. If the materials team and the production team compare on different terms, the numbers split again while they are trying to find the gap.


In the end, what you need to keep is not the result. It's the method: what data you compare, on what terms, and which history you check in what order.


You can start today without any tools. Each time you look for a gap, write these four things on one page and keep it in a folder your team shares.

Field

What to write

Example

Comparison basis

Time, unit, warehouses, and which statuses are included

Every day at 6 p.m., counted in pieces, Warehouses 1 and 2, items awaiting inspection left out

Order of items

Which items to check first

Largest quantity gap first, then largest money impact

Order of history

Which records you checked, in what order

Receipts → transfers → inspection → shipments → adjustments

Cause and action

The cause you found, the record you fixed, and the work step you changed

A sample shipment was recorded only in MES → adjusted ERP, added an ERP entry to the shipping steps

Next time there's a gap, whoever takes it can open this record and follow the same steps. As records pile up, you'll also see which causes come up most often, and you can decide which of the work rules above to fix first. If gaps are rare at your plant, this record may be all you need.


But a written record has a limit too. The method is saved, but someone still has to pull data from both systems and line it up on the same basis every time. The more often gaps happen and the more items you have, the heavier this repeated work gets.



6. How do you keep a method once it works? Aila presets


An Aila preset is the comparison basis and checking order from your written record, saved in Aila as instructions. Instead of a person pulling and lining up the data every time, Aila looks up the data again by following those instructions. Here is how it works when you look for stock gaps.


Preset flow for an ERP and MES inventory discrepancy: compare stock, trace the gap, save as preset, run it again
Write down how you compared stock and found the cause, and save it as a preset. Next time, pick the preset and ask, and the same steps run on the latest data. Sample screen; the actual product may differ.

  1. Compare stock: Someone asks, "Compare ERP stock and MES stock by item." Aila pulls both numbers and shows them side by side in a comparison table.

  2. Trace the gap: If the table shows a shortage, they ask, "Where did the 80-unit gap for Part A come from?" Aila pulls the receipt, shipment, transfer, inspection, and adjustment data for that item to help find the cause.

  3. Save as preset: After checking the answer, they write down the comparison basis (time, unit, warehouses), the order for checking history, and how they want the answer shown, and save it all as a preset. What gets saved is not that day's numbers. It's the method.

  4. Run it again: Next time, anyone can pick the saved preset and ask something like "Compare this month's stock." Aila looks up the latest data by following the instructions. So no matter who asks, the comparison uses the same basis, and the gap is traced in the same order.



A preset bundles an AI model, instructions, and tools. The person who creates it chooses who can use it: only themselves, everyone, or specific people. This isn't only for inventory. You can save the way your team works and the formulas it uses, such as how many months make stock slow-moving, how to calculate defect rates, or what order to check problems in.


Aila is designed to read your database in read-only mode. Your company decides which roles can see Corporate Sensitive Data, such as inventory value. To see what it takes to connect Aila to the ERP and MES you already use, read [Link: Ep.2 EN "Can You Adopt AI Without Replacing Your ERP or MES?"].


There are also clear limits.

  • Comparing stock and finding causes only works if both stock numbers and their history are recorded as data. If transfer and adjustment records aren't in your systems, Aila has nothing to look at either.

  • A preset compares stock when you ask. It is not a tool that watches your stock all the time and sends alerts.

  • Your team decides the cause and what to do about it. Aila pulls the data they need to decide.

  • It does not replace a physical count. Use it to narrow down where to start counting.



7. FAQ


Q1. How many months does it take for stock to count as slow-moving?

There is no single rule. Each company decides how many months without shipments or use make an item slow-moving, based on the item and its own policy. Once you set that period, you can write it into the preset's instructions. Then your whole team checks stock against the same period.


Q2. If we use a preset, can we skip the physical inventory count?

No. A preset compares data recorded in your systems and traces its history. You still need a physical count to confirm the stock is really there. But if you first narrow down the items with the biggest gaps and their likely causes, it's easier to decide where to start counting.


Q3. Who creates a preset, and who uses it?

The person who first finds the cause saves the process as a preset. They choose who can use it: only themselves, everyone, or specific people. People it's shared with pick the same preset, ask their question, and get answers the same way.


bottom of page