Skip to content
Tutorials Center
My learning

Topics

Lesson 21 of 36 ยท Logistics: MM/SD

Inventory Management and Valuation

Learn SAP inventory management: movement types, material documents, stock types, standard price versus moving average price, and price differences.

Inventory Management (IM) is the part of MM that records every change in stock: goods arriving, leaving, moving between locations and being counted. Each change is a goods movement, and each goods movement is described by a three-digit movement type. If you understand movement types and how stock is valued, you understand most of what happens in an SAP warehouse and why Finance cares about it.

The real SAP system is not available here. The tcodes and tables below describe what you would do in a real system, and the code blocks are labelled stand-ins written in JavaScript.

Material documents

Every goods movement creates a material document (header in MKPF, items in MSEG in classic ECC; in S/4HANA both are replaced by the table MATDOC). A movement also creates an accounting document when the stock is valuated, so Inventory Management and Financial Accounting are always in step. You post movements in MIGO and look at them with MB51 (material document list) and MMBE (stock overview).

Movement types

Type Meaning Effect
101 Goods receipt for a purchase order Stock up
102 Reversal of 101 Stock down
122 Return delivery to vendor Stock down
201 Goods issue to a cost center Stock down, cost center charged
261 Goods issue to a production order Stock down, order charged
301 Transfer posting, plant to plant (one step) Stock moves
311 Transfer, storage location to storage location Stock moves
501 Receipt without a purchase order Stock up
551 Scrapping Stock down, expense
561 Initial entry of stock balances Stock up (migration)
601 Goods issue for a delivery Stock down, cost of goods sold

A reversal usually has the next number (101 reversed by 102). The movement type also decides which accounts are posted, through account determination.

Stock types

Stock is not only "available". Inside one storage location a material can be in different states:

  • Unrestricted-use stock: can be used freely.
  • Quality inspection stock: waiting for a quality check.
  • Blocked stock: not to be used, for example damaged.
  • Stock in transit: on its way between plants.
  • Special stocks: vendor consignment, project stock, sales order stock.

A transfer posting (movement type 321 from quality inspection to unrestricted, 344 to blocked) changes the stock type without changing the quantity.

Where stock lives

flowchart TD
  C["Company code"] --> P["Plant"]
  P --> S1["Storage location 0001"]
  P --> S2["Storage location 0002"]
  S1 --> B["Batch / material"]

Stock quantities are kept per plant and storage location (and per batch when batch management is on). Value is kept per valuation area, which is usually the plant.

Material valuation

Every valuated material has a price control in its accounting view (table MBEW):

  • S - Standard price. Every movement is valued at one fixed price. If the real invoice price differs, the difference goes to a price difference account (transaction key PRD). Standard price is typical for manufactured goods because it makes costing predictable.
  • V - Moving average price (MAP). The price changes with every goods receipt and invoice: new MAP = total stock value / total stock quantity. Typical for trading goods and raw materials.

The valuation class links the material to G/L accounts. For example, raw materials and finished goods can use different stock accounts.

JS Stand-in: moving average price

Press Run (or Ctrl + Enter) to see the console output here.

No output.

A price you will meet often: with MAP, an invoice that arrives after part of the stock has already been issued can distort the price, so SAP offers price-change controls and, in S/4HANA, the material ledger.

Standard price and price differences

With standard price, the stock is always carried at the standard. Suppose standard is 10 and you receive 100 pieces, but the invoice says 10.40. Stock stays at 100 x 10 = 1,000, and the 40 difference is posted to the price difference account.

JS Stand-in: price difference with standard price

Press Run (or Ctrl + Enter) to see the console output here.

No output.

Physical inventory

Stock counts check that the system matches the shelves. In SAP the usual steps are: create the count document (MI01), enter the counted quantities (MI04), and post differences (MI07). Movement types 701 and 702 post gains and losses. Cycle counting counts fast movers more often than slow ones.

Reservations and planning

A reservation (MB21) reserves stock for a future use, such as a maintenance job, so that planning knows it is committed. MRP (MD01 or MD04 for the stock/requirements list) looks at stock, reservations and open purchase orders to propose new requisitions. You can read more about how those fit together in Procure-to-Pay in SAP MM.

Common mistakes

  • Changing the price control of a material that already has stock, which revalues inventory and needs Finance approval.
  • Using movement type 501 for everything, which bypasses the purchase order and hides cost.
  • Ignoring blocked stock when reporting available quantities.

Check your understanding

Quick check ยท 4 questions

of 4 answered You scored / 4 ยท perfect!

  1. 1. Which movement type is a goods issue to a cost center?

    201 issues material to a cost center. 101 is a receipt, 301 a transfer and 601 an issue for a delivery.
  2. 2. With standard price control, where does the difference between invoice and standard price go?

    Stock stays at the standard price, and the difference is posted to the price difference account.
  3. 3. What is the formula for a new moving average price?

    MAP is the total value divided by the total quantity after each posting.
  4. 4. Which table replaces MKPF and MSEG in S/4HANA?

    S/4HANA stores material document data in MATDOC.

Summary

  • Every stock change is a goods movement with a movement type and creates a material document.
  • Stock has types (unrestricted, quality inspection, blocked) and locations (plant, storage location).
  • Price control S carries a fixed price and books differences; V keeps a moving average.
  • Valuation class and account determination decide the G/L accounts.
  • Physical inventory and reservations keep system and reality aligned.

Next: Order-to-Cash in SAP SD