Sub topic 8
The valuation area: where inventory gets its value
This chapter assumes you know what a client, company code, plant, and storage location are, and that each plant belongs to exactly one company code. You should also be comfortable reading a simple join between two tables.
What a valuation area is
The valuation area is the organisational level at which SAP values material stock. It decides where the price of a material is stored and which company code the stock value is posted to.
You can set the valuation level to one of two options in customizing:
- Plant level. Each plant is its own valuation area. This is the usual choice and SAP recommends it.
- Company code level. All plants of one company code share one valuation area. A material then has a single price per company code.
With plant-level valuation, the valuation area key (BWKEY) is the same as the plant key (WERKS). This is why the valuation area is easy to overlook. In most systems you never see a separate key.
Why it matters
Inventory is an asset, so its value must end up in the balance sheet of exactly one legal entity. A plant belongs to one company code, so the plant's valuation area leads to one company code too. Every goods movement can then be posted to the right company's books.
Valuation at plant level also lets two plants of the same company carry different prices for the same material. For example, plant 1000 may hold a material at 10.00 and plant 2000 at 10.50, because freight costs differ.
The next diagram shows how a plant leads to its company code through the valuation area.
Notice that quantity and value are kept at different levels. Quantity is held per storage location, and value is held per valuation area.
Seeing it in the tables
Table T001K holds the valuation areas. Its key BWKEY is the valuation area, and BUKRS is the company code it belongs to. Each row also names the valuation area's plant in column WERKS. Table T001W holds the plants and carries BWKEY as well.
The query below joins the two tables. It lists each plant with its valuation area and company code.
SELECT w~werks,
w~name1,
w~bwkey,
k~bukrs
FROM t001w AS w
INNER JOIN t001k AS k ON k~bwkey = w~bwkey
INTO TABLE @DATA(lt_plants)
UP TO 20 ROWS.Plant-level valuation is the case where bwkey equals werks in every row. If a row shows the same bwkey for several plants, the system values at company code level.
Material values sit in table MBEW. Its key is the material number, the valuation area, and the valuation type. MARD holds the quantities, as the next query shows.
DATA lv_werks TYPE werks_d VALUE '1000'.
SELECT matnr, werks, lgort, labst
FROM mard
WHERE werks = @lv_werks
INTO TABLE @DATA(lt_stock).MARD has no price field. To value that stock, you read the price from MBEW for the same material and the plant's valuation area, then multiply it by the quantity.
A decision you cannot easily undo
The valuation level is set once for the whole client. You choose it in customizing with the activity "Define Valuation Level" (transaction OX14). It should be fixed before any material is created or any stock is posted. Changing it after productive use is a major conversion project, because every material valuation record has to be restructured.
Plant-level valuation is also required if you want to use certain functions, such as product cost accounting for each plant. This is the main reason it is the standard choice.
Common mistakes
- Treating valuation area and plant as different things. With plant-level valuation they carry the same key. Joining on
werksinstead ofbwkeyworks in that case, but it fails the moment the system is set to company code level. - Looking for a price in MARD. MARD holds quantity only. Prices belong to MBEW.
- Assuming storage locations have their own prices. They do not. Two storage locations in one plant always share one valuation.
Exercise
A client uses plant-level valuation. Plants 1000 and 2000 both belong to company code A. Can the same material have different standard prices in those two plants? What changes if the client uses company code level valuation?
Show answer
With plant-level valuation, yes. Each plant is its own valuation area, so MBEW holds one record per plant and each can carry a different price. With company code level valuation, both plants share one valuation area (the company code), so the material has a single price for both plants.
Exercise
Which table holds the valuation area and its company code, and which table holds the value of a material in that valuation area?
Show answer
T001K holds the valuation area (BWKEY) and its company code (BUKRS). MBEW holds the material valuation data, keyed by material and valuation area.