This content was generated with the assistance of AI and should be verified against the official documentation before being relied on in production.
A company that makes things must answer two questions. What should one unit cost, so that a price can be set and the stock can be valued? And what did it really cost, so that the difference can be explained? Product costing answers the first question before production starts, by adding up the materials, the work and the overhead that a product needs. The Material Ledger helps with the second: it keeps the value of every material, in more than one currency if needed, and an optional step called actual costing recalculates the value of a material at the end of a period from what it really cost. This page explains cost estimates, the standard price and how a cost estimate becomes one, the difference between standard price and moving average price, the variances that arise in production, the Material Ledger, and actual costing, with numbers for plant EX10 of the fictitious company code EX01. It is written against SAP S/4HANA 2025 FPS02 on premise and Private Edition. The facts come from the on-premise SAP Help pages listed at the end; the page does not describe how the SAP S/4HANA Cloud Public Edition 2608 differs, so check its help before relying on a step there.
Cost estimate: a calculation of what it costs to make a product, built from a quantity structure and prices.
Standard cost estimate: the cost estimate, normally made once a year, whose result becomes the standard price of a material.
Cost component split: the breakdown of a cost estimate into groups such as raw materials, production and overhead.
Price control: the setting in the material master that says whether a material is valued at a standard price (S) or a moving average price (V).
Price difference: the part of a posting that exceeds or falls short of the standard price.
Variance: the difference between the costs a production order should have had (target costs) and the costs charged to it.
Material Ledger: the component that values material stock and keeps those values in several currencies and valuations.
Actual costing: the optional period-end calculation that replaces the preliminary standard price with an actual price.
Periodic unit price: the actual price that actual costing calculates for a material for one closed period.
The words used in product costing
SAP’s help page for Product Cost Controlling fixes a small vocabulary. Standard costs are predetermined costs that stay fairly stable over a longer time. In make-to-stock production they are calculated in a standard cost estimate, normally at the start of each fiscal year, and the total can be written to the material master as the standard price that values the material during the year. Planned costs are costs of a particular cost object, such as one production order, calculated in preliminary costing. Target costs are the costs expected for the quantity that was actually produced: the planned or standard cost converted to the produced quantity. Variances are found by comparing target costs with the actual costs.
Two more terms mark the end of the road. A material cost estimate is the calculation of the cost of goods manufactured and the cost of goods sold of a product, and it is the basis for valuing the material at standard cost in all application areas. Actual costing assigns the costs actually incurred in a period to the materials: the material is valued at a preliminary standard price, which is then adjusted by the difference between the preliminary price and the actual cost. Simultaneous costing and final costing describe what is done with a cost object during the period and at its end. In final costing the period costs are allocated, work in process and variances are calculated, and the results are transferred to other components such as Financial Accounting.
Product Cost Planning (component CO-PC-PCP) is the part of Product Cost Controlling that plans the cost of materials without reference to an order and sets prices. SAP lists the questions it answers: what value each production step adds, which organizational unit contributes how much, how material, production and overhead costs compare, and whether the product can be sold at a competitive price. Its purposes include calculating the cost of goods manufactured and the cost of goods sold per unit, finding how the cost breaks down per product, supporting make-or-buy decisions, and supplying the standards against which production efficiency is judged in Cost Object Controlling.
Quantity structure and prices
A cost estimate with a quantity structure is built automatically from production master data. SAP’s process flow is:
You create a cost estimate for one material, or a costing run for many.
The system determines the quantity structure: the bill of material and the routing (or master recipe), controlled by the costing variant.
It values the quantity structure with the valuation variant: the cost of a component is its input quantity multiplied by a price from the material master; activities are valued with the activity prices of the cost centers.
It adds additive costs if the costing variant provides for them, and calculates overhead.
You analyze the result and save the cost estimate.
You can update the result in the material master and transfer it to Profitability Analysis.
SAP’s page "Origin of Costing Data" lists where each input comes from: the BOM, routing and work centers from Production Planning; the price of an externally procured material from the material master or the purchasing info record; the price of an in-house activity from activity type planning or activity price calculation in Controlling; the overhead conditions from the costing sheet; and the costing lot size from the material master. The costs of a semifinished product come from its own cost estimate, which is generated when the finished product is costed. Costing the assemblies level by level, so that each lower level feeds the next higher one, is called cost rollup.
Other costing methods exist when no complete quantity structure is available. A cost estimate without a quantity structure is entered by hand (unit costing) or transferred from a non-SAP system, and is meant for a product that exists only partly in the master data. Multilevel unit costing is a hierarchical variant of it. Easy Cost Planning creates ad hoc cost estimates from planning forms.
Materials are valued at valuation-area level, but costing is done at plant level. SAP therefore asks you to define the plant as the valuation level, which creates one valuation area with the same name for each plant. All costing data is then stored per plant. In the running example the valuation area is EX10, assigned to company code EX01.
Kinds of cost estimate
The costing variant is the central control of a cost estimate: it says which quantity structure is valued and which prices are used, and so what kind of estimate it is.
Kind
Values
Purpose
Standard cost estimate
The planned quantity structure with planned prices.
Calculating the standard price for materials with price control S. Created at the start of the fiscal year or season.
Modified standard cost estimate
Current quantities with planned prices.
Costing during the year to analyze how a changed quantity structure changes the cost.
Current cost estimate
Current quantities with current prices.
Costing during the year to analyze how costs have changed.
Inventory cost estimate
Current quantities with tax-based and commercial prices.
Fixing the valuation approaches for inventory valuation before the balance sheet is prepared.
The result of a cost estimate is shown as a cost component split: the cost grouped into cost components, defined in a cost component structure, such as raw materials, personnel, production and material overhead. SAP also names the reports that analyze a cost estimate: the itemization and the itemization by cost element, the costed multilevel BOM, and the partner cost component split, which shows the value added by each organizational unit. Comparison reports set a cost estimate against a preliminary order cost estimate, and the costing-run reports show the price against the cost estimate and the variances between runs.
The fictitious lamp LAMP-100 is made in plant EX10. Its quantity structure needs 2 pieces of the purchased part PART-10 and half an hour of the activity type for assembly, produced by a cost center of controlling area EX00. The prices below are invented for the example, and the overhead is a flat 10 percent of the material cost, as a costing sheet could define it.
Cost component
Calculation
EUR per piece
Raw materials
2 pieces of PART-10 at 5.00 EUR
10.00
Production
0.5 hours at an activity price of 20.00 EUR per hour
10.00
Material overhead
10 percent of the raw materials 10.00 EUR
1.00
Standard cost
21.00
The standard cost estimate of LAMP-100 is therefore 21.00 EUR per piece. Everything on this page that mentions LAMP-100 uses this estimate. Creating the estimate needs master data and Customizing of an SAP system; the example is a calculation, not a transcript.
From cost estimate to standard price: marking and releasing
A cost estimate does not change the books by itself. Two deliberate steps carry its result into the material master. SAP describes them as follows.
Marking. Marking transfers the result into the costing view of the material master as the future planned price. It needs a marking allowance, which fixes the company code and period in which a standard cost estimate with a given valuation variant and costing version may be marked. You can mark the estimate as often as you like until you release it, and you can mark many estimates at once in a costing run.
Releasing. Releasing turns the future price into the current standard price and the current planned price. At that moment the stock value of the material changes: materials with price control S are valued with the new standard price from then on, and this price is active for external accounting. The current posting period must match the period of the cost estimate, and the estimate must have been marked.
flowchart LR
A["Cost estimate costing variant, valuation variant"] --> B["Marking future planned price can be repeated"]
B --> C["Releasing current standard price once per period"]
C --> D["Stock revalued postings use the new price"]
SAP stresses two risks. Releasing can be done only once in a period and cannot be reversed, so the future standard price should be compared with the current one in the information-system reports first. And deleting a released estimate does not revalue the materials back to the old price: valuation stays at the new standard price, so the procedure is for exceptional cases only.
If the old standard price of LAMP-100 was 20.00 EUR and 50 pieces are in stock, releasing 21.00 EUR changes the stock value from 1,000.00 EUR to 1,050.00 EUR, a revaluation of 50.00 EUR. The posting accounts of that revaluation are Customizing, described on the Account Determination and Automatic Postings page.
The price control field in the Accounting 1 view of the material master decides how a material is valued. SAP lists two types: S for the standard price and V for the moving average price. They differ in how price differences from goods receipts and invoice receipts are handled.
With a standard price every inventory posting is made at the standard price. A posting at a different price, for example an invoice that differs from the standard, leaves the stock value alone and posts the difference to a price difference account. The variance is kept and can be analyzed.
With a moving average price a goods receipt is posted at the delivered value, and the price in the material master is adjusted automatically. Price differences post to the stock account, so the price and the stock value both change. SAP notes that the price shown in the master record is rounded, while the system calculates with the exact price, the stock value divided by the stock quantity.
Take the purchased part PART-10 with a standard price of 5.00 EUR and 100 pieces in stock, worth 500.00 EUR. Another 100 pieces arrive and the supplier invoices 5.60 EUR each.
Price control S
Price control V
Stock after the receipt
200 pieces at 5.00 EUR, 1,000.00 EUR
200 pieces, 1,060.00 EUR
Price difference account
60.00 EUR (100 pieces at 0.60 EUR)
nothing
Price afterward
5.00 EUR
5.30 EUR
. The two columns hold the same 560.00 EUR for the new pieces; the difference is whether the extra 60.00 EUR is visible as a variance or has moved into the stock value. The standard price is what makes production cost management steady, because the cost of a unit does not move with every delivery. That is why a cost estimate produces a price for control S.
Once a product is made, the costs charged to the production order are compared with the target costs. In make-to-stock production the target costs come from the standard cost estimate and the quantity delivered to stock. SAP defines the total variance as the difference between the actual costs debited to the order and the costs credited to the order for the deliveries to stock. The difference between debit and credit is passed to Financial Accounting when the order is settled, and only the total variance, calculated with target cost version 0, can be transferred to Profitability Analysis, broken down by variance category.
Variance categories
Each variance is assigned to a category that names the cause. SAP groups them into variances on the input side (goods issues, internal activity allocations, overhead, G/L postings) and on the output side.
Category
Cause
Input price variance
Differences between planned and actual prices of materials and activities. It can be calculated only if quantities were recorded.
Input quantity variance
Differences between planned and actual consumption of materials and activities.
Resource-usage variance
Use of other materials or activities than planned: the target is not zero and the actual is zero, or the other way round, for a cost element.
Remaining input variance
An input-side variance that fits no category above, for example costs entered without a quantity or changed overhead rates.
Scrap variance
The planned operation scrap differs from the scrap actually confirmed.
Mixed-price variance
The mixed price of a material with several procurement alternatives differs from the price used.
Output price variance
The target credit (for example quantity times standard price) differs from the credit posted at goods receipt (for example quantity times moving price).
Lot size variance
Cost that does not vary with the lot size was planned for another quantity than the one delivered.
Remaining variance
Whatever cannot be assigned elsewhere, such as rounding differences, or all variances if no categories are defined in the variance variant.
The variance formula
Write and for the standard price and the target quantity of an input, and and for the actual price and quantity. The actual cost is and the target cost is . SAP’s examples calculate the price variance first, on the actual quantity, which leaves the rest for the quantity variance:
Check the identity: . SAP’s own example has a planned price of 10 USD and 10 pieces planned, against 11 USD and 11 pieces used: the total of 21 USD splits into 11 USD input price variance and 10 USD input quantity variance, and the 1 USD that could count as either goes to the price variance because the system calculates that one first.
For the lot size variance SAP gives:
where is the target cost that does not vary with the lot size, is the control quantity (the delivered quantity) and the planned quantity. It is calculated only when the planned and delivered quantities differ.
A production order for 100 lamps
A production order makes 100 pieces of LAMP-100. The target cost is 100 times 21.00 EUR, 2,100.00 EUR. The order is charged as follows.
Input
Target
Actual
Difference (EUR)
PART-10
200 pieces at 5.00 EUR = 1,000.00 EUR
210 pieces at 5.50 EUR = 1,155.00 EUR
155.00
Assembly activity
50 hours at 20.00 EUR = 1,000.00 EUR
55 hours at 20.00 EUR = 1,100.00 EUR
100.00
Material overhead
10 percent of 1,000.00 EUR = 100.00 EUR
10 percent of 1,155.00 EUR = 115.50 EUR
15.50
Total
2,100.00 EUR
2,370.50 EUR
270.50
The order is debited 2,370.50 EUR, and the delivery of 100 pieces to stock at the standard price credits it 2,100.00 EUR, so a balance of 270.50 EUR remains to be settled. The categories are:
Input price variance of PART-10: EUR. The moving average price at withdrawal was 5.50 EUR, as in SAP’s own example of an input price variance.
Input quantity variance of PART-10: EUR.
Input quantity variance of the activity: EUR.
Remaining input variance: the overhead is 15.50 EUR higher because the material cost rose. SAP gives exactly this case, an overhead that differs because a material price changed, as an example of a remaining input variance.
. The categories add up to the balance, which is the point of the classification: the 270.50 EUR is not one number but four causes that different people can act on.
The Material Ledger is the component that values material stock. SAP’s help page on the architecture says that as of SAP S/4HANA 1610 the Material Ledger of SAP ERP was split into two separate applications. The new material ledger (component CO-PC-ML) manages inventories at the standard price or the moving average price and is multi-currency by design, because it is integrated into the general ledger, that is, the Universal Journal. Actual costing (component CO-PC-ACT) became a standalone component. SAP’s installation page states that the Material Ledger is mandatory as of SAP S/4HANA, while actual costing is still optional. The Finance Overview shows where it sits among the components.
What the Material Ledger adds to a plain stock account:
Several currencies and valuations. Values can be kept in more than one currency, and with the parallel valuation functions each currency can also stand for a separate valuation view such as legal, group or profit center valuation. SAP calls the combination of currency and valuation a valuation approach. In the running example the company code currency EUR is joined by the group currency GBP, as the ledgers page describes. The set of currencies, valuations and ledgers must be decided before first use, because SAP says it cannot be changed later.
Historical translation. Each valuation-relevant item is translated at the exchange rate valid when it was posted, not at a later rate. SAP gives the example of an invoice receipt, translated into the other currencies at the current rate, and of a production order settled in two currencies, whose values are transferred directly with only the third currency translated. Because new prices are determined independently per currency, the price of a material can rise in one currency while it falls in another.
Inflation. Companies in high-inflation countries can show stock in a stable or index-based currency, which makes the effect of inflation visible.
Material ledger documents. For every valuated transaction, such as a goods movement, an invoice receipt, a price change or a closing entry, the material ledger document records the resulting change in all set-up currencies and valuations. From it you can branch to the accounting documents and the source document.
Parallel accounting. How ledger-specific valuation reaches the Material Ledger is the subject of Universal Parallel Accounting.
SAP’s FAQ on the Universal Journal says that the Material Ledger line items (the old table MLIT) now live in the table ACDOCA; see The Universal Journal.
Actual costing answers the question of what a material really cost in a period. SAP describes the concept in a few sentences. During the period every goods movement is valued at the standard price, the preliminary valuation. At the same time all price differences and exchange rate differences are collected per material. At the end of the period an actual price, the periodic unit price, is calculated from the actual costs of the period. It can revalue the stock, the work in process and the cost of goods sold of the closed period, and it can serve as the standard price of the next period. SAP says this combines the steadiness of the standard price with the accuracy of the moving average price. Revaluing inventory with the periodic unit price is optional, so actual costing is also useful for information next to another costing system.
Settings that switch it on
The material master field for price determination decides the method. Value 2 means transaction-based price determination, in which you still choose standard or moving average price. Value 3 means periodic price determination with multilevel actual costing.
For periodic actual costing the price control must be S and the price determination 3. The app Manage Material Valuations (F2680) and the transactions MM01, MM02 and MM03 show both fields.
Actual costing must be active. SAP’s installation steps are to read the implementation guide for the component, set up the Material Ledger, activate it for the plants (valuation areas) with identical currency settings within a company code, check the Customizing per plant and prepare the data for the production startup. The preparation of the production startup cannot be reversed. Retroactive activation of actual costing uses the transaction FCML4H_STARTUP. A system converted from SAP ERP converts its data with FINS_MIG_STATUS, where the steps M10, M20, M11 and M21 are the ones that matter for the Material Ledger.
To include variances from cost centers and business processes as well as material variances, the activity consumption update in the quantity structure must be activated.
These steps need an SAP system and are not run here.
What is collected
Actual costing is integrated with inventory management, invoice verification, order settlement, material costing, price changes and debits and credits of materials. SAP names the posting keys for the differences it collects: a price difference is debited to inventory (key BSX) and credited to price differences (key PRY), an exchange rate difference is credited to exchange rate differences (key KDM) and a revaluation to revaluations (key UMB). Consumption, such as a withdrawal for a production order or a cost center, is always posted at the current valuation price and collected in actual costing.
For a material with price determination 3 the system calculates the periodic unit price once per posting period, with the weighted average price method, in all currencies and valuations. This does not change the valuation price of the current period. A material update structure in Customizing sorts movement types into receipts, other receipts or consumption, and consumption, so that withdrawals that should not influence the unit price can be kept out.
The costing run
Actual costing is carried out per plant in a costing run, started from the menu path Accounting, Controlling, Product Cost Controlling, Actual Costing/Material Ledger, Actual Costing, Edit Costing Run. The steps SAP names are the preparation, the settlement and the closing entry (Post Closing). In settlement the system values the quantity flows and value flows of the period at the actual prices, successively along the production levels from raw materials to semifinished products to finished products. It revalues ending inventory, single-level consumption and the multilevel flow from an input (a material or an activity) to an output (a material), and it revalues the increase of work in process. It also calculates the periodic unit prices of the settled period and stores them for information in all valuation approaches. The result is a list per production level of the materials and activities processed successfully or with errors, and a log.
The closing entry posts the differences to Financial Accounting. SAP’s example shows the choice that matters: if you do not select Revaluate Material, the price differences of the ending inventory go to an accruals account (key LKW) and the stock stays at the standard price; if you select it, they go to the inventory account (key BSX), the stock is valued at the periodic unit price for the closed period, and in the following period the posting is reversed. The price differences allocated to consumption are not reversed. If you want to use the actual price as the standard price of future periods, the Mark Prices step of the costing run marks it, and the apps Change Material Prices (F6489) and Schedule Inventory Accounting Jobs (F2292) change or release the planned price.
flowchart TD
A["Period: goods movements at the standard price price and exchange rate differences collected per material"] --> B["Preparation of the costing run"]
B --> C["Settlement actual prices level by level periodic unit price per material"]
C --> D["Closing entry differences posted to Financial Accounting"]
D --> E{"Revaluate Material selected?"}
E -- no --> F["Ending inventory stays at the standard price difference parked on an accruals account"]
E -- yes --> G["Ending inventory valued at the periodic unit price reversed in the next period"]
C --> H["Mark Prices (optional) actual price becomes a future standard price"]
The periodic unit price in numbers
Simplified to one level and one currency, the periodic unit price of a material is its total actual value divided by its total quantity, a weighted average:
where and are the quantity and the actual price of receipt . Real runs also include production and the other value flows named above; this form covers purchased material only.
Back to PART-10 in plant EX10, standard price 5.00 EUR, price control S, price determination 3. In the period the opening stock is 100 pieces worth 500.00 EUR, 400 pieces are received and invoiced at 5.60 EUR, and 300 pieces are consumed. Every movement was valued at 5.00 EUR during the period; the 400 pieces left a price difference of 400 times 0.60 EUR, 240.00 EUR.
EUR.
Flow
At standard price 5.00 EUR
At periodic unit price 5.48 EUR
Difference (EUR)
Consumption, 300 pieces
1,500.00
1,644.00
144.00
Ending inventory, 200 pieces
1,000.00
1,096.00
96.00
Total difference
240.00
The collected difference of 240.00 EUR is split between what was consumed (144.00 EUR) and what is still in stock (96.00 EUR), in proportion to the quantities: . At the closing entry the 96.00 EUR goes to the stock account if Revaluate Material is selected (the stock is then worth 1,096.00 EUR for the closed period) or to the accruals account if not. The 144.00 EUR goes on to the receiver of the consumption: to the production order’s cost object by way of the actual quantity structure, so that it reaches LAMP-100 at the next production level, or to the original account assignment such as a cost center, or to a collective account. Which of these applies depends on whether the movement type is flagged for revaluation in Customizing.
Work in process, cost components and what flows out
Work in process can be included. Consumption or activity confirmations posted to production orders that were only partly delivered in the period are partly or wholly assigned to work in process, and the variances can be debited to the WIP accounts. The actual cost component split groups the actual costs of a material into cost components across several production levels, so the original identity of a cost (a raw material cost stays a raw material cost through every level) survives. It also shows the differences from the preliminary valuation, price differences and exchange rate differences. It needs the Material Ledger, actual costing and price determination 3 active and the split activated per valuation area. Profitability Analysis can read actual prices and the actual cost split to revalue the cost of goods manufactured.
The Material Ledger is mandatory in SAP S/4HANA and integrated into the Universal Journal.
Actual costing became a separate component with its own data storage. SAP says it is not technically linked to the Material Ledger but works with the same currencies and valuations, and that the procedure is simplified and faster.
Material ledger line items are in ACDOCA, no longer in their own table.
A system converted from SAP ERP must convert its Material Ledger data with FINS_MIG_STATUS and cannot undo the production startup.
Costing-based Profitability Analysis can still run beside the Universal Journal as a separate data set. The Finance Overview and the margin analysis page of this section cover that.
Where to look in the system
All of this requires an SAP system; not run here. SAP’s help names these places.
Place
Use
Manage Material Valuations (F2680)
Material valuations with quantity, price and value by currency type and period, price history, planned prices and standard cost estimates; changing prices, debiting or crediting materials and releasing planned prices.
Change Material Prices (F6489) and Schedule Inventory Accounting Jobs (F2292)
Setting a price manually and releasing the planned price, as named in SAP’s example of the closing entry.
Material Inventory Values - Balance Summary (F1422)
Analytical display of inventory over mass data; SAP points to it instead of F2680 for analysis.
Manage Costing Runs - Estimated Costs (F1865) and transaction CK40N
Mass costing of materials across plants and companies. The app adds filtering, scheduling of steps for several runs and deletion of several runs at once.
Edit Costing Run under Actual Costing/Material Ledger
The costing run for actual costing described above.
Prices and Inventory Values, Material Ledger documents
Reports that compare the standard price and the periodic unit price and show price and exchange rate differences of the ending inventory.
Common errors and pitfalls
Releasing a standard cost estimate twice or by mistake. Releasing is allowed once per period and cannot be reversed; deleting the estimate afterward does not restore the old valuation. Compare the future price with the current one before releasing.
Expecting a standard cost estimate to change stock when it is saved. Only marking (future price) and releasing (current price) carry the result into the material master.
Choosing price control V and expecting variances. With a moving average price the difference moves into the stock value instead of a price difference account, so there is less to analyze.
Setting price determination 3 with price control V. Periodic actual costing needs price control S and price determination 3; SAP lists a periodic unit price under V only as the value stored for a closed period when stock is revalued.
Different currency settings in one company code. The currency settings must be identical for all plants and valuation areas of a company code when the Material Ledger is activated.
Treating the production startup as a test. Preparing the data for the production startup of the Material Ledger cannot be reversed.
Missing quantities on production postings. Input price and input quantity variances need recorded quantities; without them variances land in the remaining input variances.
Changing overhead rates or material prices after the estimate. The overhead difference then appears as a remaining input variance, as in the 15.50 EUR of the example.
Summary
A cost estimate adds materials, activities and overhead for one unit; the standard cost estimate becomes the standard price only after marking and releasing, and releasing is final for the period.
Price control S keeps every difference visible on price difference accounts; price control V lets it move into stock value and price. For PART-10 the same receipt leaves 60.00 EUR on a price difference account under S and a price of 5.30 EUR under V.
A production order’s total variance is split into causes, and is the core of the input price and quantity variances. The example order’s 270.50 EUR is 105.00 plus 50.00 plus 100.00 plus 15.50.
The Material Ledger is mandatory in SAP S/4HANA, is part of the Universal Journal and keeps values in several currencies and valuations at historical rates.
Actual costing is optional. It collects differences during the period and calculates a periodic unit price at its end, here 5.48 EUR for PART-10, which can revalue consumption and ending inventory.