A fellow CA once told me, “Nobody understands material valuation in SAP. Not even Big 4 CAs.”
He is not entirely wrong. The reason is simple: most people look at it from the wrong end. They open the trial balance and work backwards. By then, the story is over.
The place to start is the source: the Purchase Order.
(Technically, purchase requisitions and MRP come before the PO, but I’ll skip them here. Once approved, a PO is a firm commitment, and that is where valuation begins for all practical purposes.)
Ground rules
- This article covers only the purchase of materials and how they get valued.
- No screenshots.
- I assume the most common setup: material bought for stock, with moving average price control.
For most businesses and auditors, a PO is a commercial document, an arrangement between you and a vendor. For SAP, it is the base of everything that happens in inventory valuation. What you enter in it today decides what your stock is worth tomorrow.
1. A Purchase Is Not an Expense
A purchase is an asset (inventory), not a P&L expense. It becomes a cost only when you consume or sell it.
If you are coming from Tally and asking “where is the Purchase account?”, there isn’t one. You can technically force one in, but it is unnecessary. Booking purchases to P&L at receipt is like logging your lunch as “eaten” the moment you buy the groceries.
2. Valuation Level
Before the transactions, one high-level concept.
SAP does not value a material “in the company”. It values it in a valuation area.
- Plant level (the usual setup): every plant has its own valuation of the material, with its own stock value and moving average price.
- Company code level (rare): all plants in the company code share one valuation, one stock value and one price.
Quantity is always tracked per plant. The valuation level decides only whether value is tracked per plant or pooled. In the material master, you see this in the Accounting view. Under plant-level valuation, that view exists separately for each plant, so the same material can carry a different price control, price and valuation class in each plant.
Example: Material M1 is held in two plants of the same company code.
- Plant A: 100 units at 120 = 12,000 (price 120)
- Plant B: 100 units at 100 = 10,000 (price 100)
The plants bought at different prices, so they hold the same material at different values. That is normal.
Every moving average calculation below happens inside one valuation area. When I say “stock still on hand”, I mean the stock of that material in that valuation area. Under plant-level valuation, consumption in another plant does not count.
The valuation level is set in configuration and cannot be changed casually once live. Check it first on any engagement.
3. Start With the Material Master, Not the PO
Two things matter.
- Material type (raw material, semi-finished, finished goods, trading goods, etc.) determines which valuation classes are allowed. The valuation class, through account determination, decides which stock GL the material hits.
- Price control: S (standard price) or V (moving average price). I assume V for purchased materials.
If you use S for raw materials and traded goods, every purchase variance lands in a price difference account, and someone has to explain it every month end.
How V works: the system keeps stock quantity and stock value, and the price is always value divided by quantity. Every receipt moves the price.
Example (this runs through the rest of the article): 100 units in stock at 120, so value is 12,000. A new receipt of 100 units is valued at 10,500. New stock is 200 units, value 22,500, new price 112.50.
4. The PO Basics
For the most common purchase, the PO item has:
- Item category: standard
- Account assignment: blank (this means “put it in stock”)
- Material code: so valuation comes from the material master
There are other options, but this is the most common one: buying material for stock.
5. Tax Determination
The tax code on the PO item decides how much tax is recoverable.
Recoverable GST goes to an input tax account and never touches inventory value. Non-recoverable tax is loaded into the cost of the material. Get the tax code wrong and your inventory is wrong, and so is your ITC.
The tax code can be determined automatically (based on material, source, destination, etc.) or entered manually.
6. Conditions
The price in a PO is not one number. It is a stack of conditions, each with its own type, value and place in a fixed calculation order.
A typical stack:
- Gross price (PB00): 103 per unit
- Less: discount: (5) per unit
- Add: packing / surcharge: 2 per unit
- Net price: 100 per unit
SAP works down the stack and arrives at the net value. That net value, not the gross price, goes into stock at goods receipt.
Some conditions are marked statistical. They are calculated and shown in the PO but not added to the net value. They do not change the PO value, goods receipt value, GR/IR or stock value. They exist for information and reporting.
Example, same PO: Vendor list price (statistical): 110 per unit.
7. Freight and Other Delivery Costs
If delivery costs like freight and clearing are charged separately and are not part of the vendor’s price, add them as conditions in the PO too. Do this even if the vendor is different, and even if the exact cost is unknown when you raise the PO. An estimate is enough.
Why? All accounting standards say the cost of inventory includes the costs of bringing it to its present location and condition. Inward freight is one of them.
If you leave it out of the PO, inventory is valued without it at goods receipt, and the moving average price is understated until the freight invoice arrives.
SAP does allow delivery costs to be added later as unplanned delivery costs when the invoice is booked. But by then some stock may already have been consumed or sold, and that part of the cost lands in price differences instead of stock.
When freight is entered in the PO, it is added to stock value at goods receipt. The credit sits in a delivery cost accrual until the freight invoice clears it.
8. Goods Receipt: Where Valuation Really Happens
Same example. Stock before the PO: 100 units at 120 (12,000). The PO is for 100 units at 100 = 10,000, plus planned freight of 500.
Goods receipt posts:
- Dr Inventory: 10,500
- Cr GR/IR: 10,000
- Cr Freight accrual: 500
Stock: 200 units, value 22,500. Moving average price: 112.50.
Nobody typed a price anywhere. The PO set it.
9. Then the Invoice Arrives
The vendor invoices at 104 per unit, so 10,400 for 100 units. That is 400 higher than the PO. What SAP does with that 400 depends on how much stock is still on hand.
Case A: all the stock is still there
All 200 units are in stock, so the full difference goes into inventory.
- Dr GR/IR: 10,000
- Dr Inventory: 400
- Cr Vendor: 10,400
Stock: 200 units, value 22,900. New moving average price: 114.50.
Case B: part of the stock has already been consumed
If part of the stock is already consumed or sold, the system cannot push the whole difference into stock. The portion relating to what is gone goes to a price difference account (PRD), and the rest adjusts the stock. This is where most unexplained variances come from.
Same example, but 150 units were issued to a production order before the invoice arrived.
Step 1. Goods receipt (as in section 8). Stock: 200 units, value 22,500, price 112.50.
Step 2. Goods issue of 150 units to a production order (150 x 112.50):
- Dr Consumption: 16,875
- Cr Inventory: 16,875
Balance stock: 50 units, value 5,625, price 112.50.
Step 3. Vendor invoice at 104 per unit = 10,400. The PO price was 100. The invoice is accepted at 104 for whatever reason (within tolerance, or approved after a block).
The invoice covers 100 units, but only 50 are left in stock. SAP can adjust stock for only half of the 400 difference.
- Dr GR/IR: 10,000
- Dr Inventory: 200 (50 of 100 units still in stock)
- Dr Price difference (PRD): 200 (the part already consumed)
- Cr Vendor: 10,400
Stock: 50 units, value 5,825. New moving average price: 116.50.
Step 4. Freight invoice arrives for 500, as planned:
- Dr Freight accrual: 500
- Cr Transporter vendor: 500
No effect on stock, because freight was already valued at goods receipt.
10. Goods Issue: Where It Becomes a Cost
Traded goods sold: goods are issued at the current moving average price.
- Dr COGS
- Cr Inventory
Raw material to production: goods issue to a production order (usually):
- Dr Consumption
- Cr Inventory
(WIP calculation based on the stages of production are also possible. I’m leaving that out of this article.)
Either way, the number comes from the moving average price, which came from the PO, the receipt and the invoice. Your trial balance is only the last page of the story.
11. Account Assignment: A Quick Look
Not every PO is for stock. The account assignment category on the PO item decides where the cost lands.
- Blank: stock. Dr Inventory at receipt.
- K (cost center): Dr expense GL at receipt. No stock. Used for consumables and services.
- A (asset): Dr the asset (or asset under construction) at receipt.
- P (project/WBS): Dr expense, with cost collected on the project/WBS.
- F (internal order): Dr expense GL, with cost collected on the order.
If the account assignment is wrong, the stock is wrong, the P&L is wrong, or the asset register is wrong.
12. What Audit Teams Should Check
1. Direct postings to reconciliation GLs
- Inventory, GR/IR, freight accrual and similar accounts should be posted by the system through account determination.
- Identify them from OBYC configuration (transaction keys BSX, WRX, PRD, GBB, FR1/FR2, etc.) and the GL master.
- Check whether “Post automatically only” is set. If it is off, manual postings are possible.
- Check the change log of the GL master: when was that flag or any control field changed, and by whom?
- Run FBL3N or FAGLL03 for the year and filter for manual document types (SA and any custom types).
2. Account determination changes
- OBYC mappings decide where every material posting lands. A mid-year change can move values to a different GL.
- Check the change history of OBYC and who had access to change it.
- Compare the mapping at the start and end of the year and ask what changed in between.
3. Price control and material master changes
- Any change of price control (S to V or V to S), or manual change of standard or moving average price.
- Pull change documents for price, price control and valuation class.
- Review stock revaluations via MR21 and the postings they create.
4. Valuation class changes
- The valuation class links the material to a GL through OBYC.
- Check what changed and why. SAP restricts this when stock exists, so also check how it was done.
5. Negative stock and quantity-only receipts
- Check whether negative stock is allowed (plant and material level).
- Goods issued before goods receipt get valued at an old price.
- Use MMBE or MB52 for negative quantities and MB51 for the sequence.
6. GR/IR account health
- Aged open items (MB5S, ME2N for open goods receipts).
- Who runs MR11 (GR/IR clearing and write-off)? What was written off, and which GL took the offset?
7. Price difference (PRD) account
- Trend by month and top documents by value.
- Trace the biggest ones back to PO, invoice date and consumption date, as in the example above.
8. Invoices without a PO or goods receipt
- Look for vendor invoices posted directly (FB60) against inventory or expense, bypassing the PO. This breaks the valuation chain.
- Check invoice tolerance limits (OMR6) and who can change them. Wide tolerances hide price differences.
9. Period-end and posting period control
- Material period (MMPV) and posting period (OB52) opening and closing, and any reopening after close.
- Backdated goods movements that change value in a closed period.
10. Physical inventory
- Stock count differences (MI07) and the GL they were posted to.
- Whether the posting block on counted materials was respected.
- Approval of write-offs and scrap (GBB transaction key and related movement types).
11. Movement types
- Review custom (Z) movement types and the GLs they post to.
- Movement types outside the normal GR, GI or transfer sequence (e.g. 561, initial entry of stock balance).
12. Access and segregation of duties
- Who can create a PO, receive goods and post the invoice? All three in one user is a classic three-way match break.
- Who can change OBYC, material prices and GL master data?
- SAP_ALL and similar profiles on dialog users.
13. Reports and Z programs
- For any custom report used for valuation or ageing: who owns it, who approves changes, and has the logic been tested?
- Reconcile the report to the GL (MB5L compares stock value to GL balances).
14. Provision for obsolete and slow-moving stock (Ind AS 2, NRV)
- Where does the system hold the ageing? Is the NRV logic applied outside SAP in Excel? If so, where is the control?
15. Special stock and stock in different locations
- Consignment, subcontracting, stock in transit and project stock can sit outside normal plant stock. Confirm they are in the valuation.
The trial balance is the last page of the story.
Need help with this?
If you are reviewing inventory valuation, configuring SAP, or planning an audit (see also what statutory auditors often miss in SAP), speak with a partner.
Disclaimer: This article is for general information only and is not legal, tax or professional advice. Facts differ from case to case, and each matter is decided on its own facts. The judgments, facts and orders discussed here may have been appealed, modified or overruled since this article was written. Please rely on this content at your own risk, and consult a qualified professional before acting on any of it. We accept no liability for any loss or action arising from its use.