Sub topic 10
Accounting and Costing views: valuation and price control
This chapter assumes you know the organizational levels (client, company code, plant), the idea of views, and basic inventory postings such as goods receipt and goods issue. It covers where the Accounting and Costing views store their data, how price control decides what a stock movement is worth, and how the valuation class connects a material to the general ledger.
What these views do
The Accounting views (Accounting 1 and Accounting 2) hold the data that values a material. The Costing views (Costing 1 and Costing 2) hold the data used to calculate what it costs to make. Finance and controlling staff usually maintain these views. Logistics users rarely touch them.
Valuation data is stored at the valuation area, which is normally the plant. Each plant of a material therefore has its own price, valuation class, and stock value. The data lives in table MBEW. S/4HANA expects valuation at plant level, so plan for plant-level valuation. Check the simplification list for your release if you are converting an older company-code-level setup.
Key fields in Accounting 1
| Field | Table column | Meaning |
|---|---|---|
| Valuation class | BKLAS | Links the material to G/L accounts |
| Price control | VPRSV | `S` standard price, `V` moving average price |
| Standard price | STPRS | Fixed price used when VPRSV is `S` |
| Moving average price | VERPR | Price recalculated on each valuated receipt |
| Price unit | PEINH | Quantity the price refers to, such as 1 or 100 |
| Total stock | LBKUM | Valuated stock quantity |
| Total value | SALK3 | Stock quantity times price |
The price unit matters when you read prices. A price of 50.00 with a price unit of 100 means 0.50 per unit.
Price control: standard or moving average
Price control decides what happens when a goods receipt or invoice arrives at a price that differs from the stored price.
With moving average price (V), the system divides the new total value by the new total quantity. The price follows the purchase prices.
With standard price (S), the stock is always valued at the fixed price. Any difference between the actual price and the standard price goes to a price difference account.
A worked example shows the difference. Suppose a plant holds 10 pieces valued at 100.00 each (total 1,000.00), and it receives 10 more at 120.00 each (1,200.00).
| Measure | Moving average (V) | Standard (S) |
|---|---|---|
| Stock after receipt | 20 pieces | 20 pieces |
| Stock value | 2,200.00 | 2,000.00 |
| Price per piece | 110.00 | 100.00 |
| Price difference posted | none | 200.00 to the price difference account |
Moving average is simple and suits purchased goods with changing prices. Standard price gives stable costs for planning and makes variances visible. That is why many companies use it for manufactured goods. Whichever you pick, a price difference also arises under standard price when an invoice arrives at a price other than the order price.
Valuation class and account determination
The valuation class is how a material reaches the general ledger. The system does not store G/L accounts on the material. Instead, automatic account determination (configured in transaction OBYC) looks up the account from these inputs:
- The chart of accounts of the company code.
- A transaction key, such as BSX for stock postings, WRX for goods receipt/invoice receipt clearing, or PRD for price differences.
- The valuation class, optionally combined with a valuation modifier.
The allowed valuation classes for a material come from the material type. The material type points to an account category reference, and that reference lists the valuation classes you may enter. This is why a raw material cannot receive a finished-goods valuation class unless the configuration allows it.
Material type defaults
Configuration for the material type (transaction OMS2) controls two things that affect valuation:
- Whether quantity updating and value updating are active in each plant. A non-valuated material type has no Accounting view.
- Whether a default price control is proposed, and whether that price control is mandatory. If it is mandatory, users cannot override it on the material.
Costing views
Costing 1 and Costing 2 support product cost planning for materials you make. Important fields include:
- Do not cost, which excludes the material from costing runs.
- With quantity structure, which lets the system calculate the cost from the bill of materials and routing.
- Costing lot size, the quantity that fixed costs, such as setup, are spread over.
- Overhead group, which selects overhead surcharges.
- Planned price and future standard price fields, plus their effective dates.
A standard cost estimate produces a future price. Releasing the estimate (marking it) writes that price to the material. A later price change in the period then revalues the stock, which creates a revaluation posting. For manual changes, the price change transaction is MR21.
What changed in S/4HANA
The material ledger is mandatory in S/4HANA. It keeps valuation in several currency and valuation types (for example company code currency and group currency), so the single set of price fields in MBEW is no longer the full story. Actual costing is optional and is activated per plant. Also, the material document table is now MATDOC, not the older MKPF and MSEG pair. Valuation fields such as MBEW remain available for reading and for compatibility, so existing reports and BAPIs still work.
Reading valuation data with ABAP SQL
The following report reads valuation data for one plant. It selects only the main valuation record, which has an empty valuation type. Records for split valuation have a valuation type (BWTAR) and appear as extra rows.
REPORT z_demo_mbew.
SELECT matnr, bwkey, bklas, vprsv, verpr, stprs, peinh, lbkum, salk3
FROM mbew
WHERE bwkey = '1010'
AND bwtar = ''
INTO TABLE @DATA(lt_valuation)
UP TO 100 ROWS.
cl_demo_output=>display( lt_valuation ).Remember the price unit when you calculate values. Use SALK3 for total value instead of multiplying LBKUM by VERPR, since the latter ignores the price unit.
Common errors
- Reading the wrong price field. Under price control
S, the active price is STPRS. UnderV, it is VERPR. Both columns exist for every material, so read the one that matches VPRSV. - Missing valuation level. A plant that is not assigned to a valuation area and company code cannot hold valuation data.
- Switching price control with stock. Changing the price control on a material that has stock needs a price change posting and, in most cases, an empty or consistent open period. Settle open postings first.
- Account determination gaps. A posting fails with an error about a missing account when the combination of valuation class, transaction key, and chart of accounts has no entry in OBYC.
Exercise
A plant holds 40 pieces of a material valued at 5.00 each (price control V). It receives 10 pieces at 7.00 each. What are the new moving average price and total value? What would the stock value and price difference be if the price control were S with a standard price of 5.00?
Show answer
With V, the total value is 40 × 5.00 + 10 × 7.00 = 270.00 for 50 pieces, so the moving average price is 5.40. With S, the stock is valued at the standard price: 50 × 5.00 = 250.00. The remaining 20.00 (10 × (7.00 − 5.00)) is posted to the price difference account.
Exercise
A material has price control S, a standard price of 250.00, and a price unit of 100. What is the value of 30 pieces?
Show answer
The price applies per 100 pieces, so one piece is worth 2.50. Thirty pieces are worth 75.00.