SAP S/4HANA Product Costing: Cost Flow to Margin Analysis | ERPCorp
SAP Controlling Conference attendees participating in a presentation

Search Posts

Based on a presentation by Richard Russmann

A successful SAP S/4HANA Product Costing design does more than calculate a standard cost. It explains how material, labor, and overhead flow through manufacturing, how variances arise, and how those costs ultimately affect inventory and product margins. The objective is to make the financial results traceable from the original operational transactions to the profit and loss statement.

This article draws on Richard Russmann’s SAP Controlling Conference presentation, Absorption and Variances in SAP S/4HANA: Understanding the Numbers and Reporting Options. It focuses on the accounting design behind manufacturing cost flow, period-end reconciliation, and Margin Analysis.

In this article:

The Closed-Loop Costing Cycle

Product costing starts with a business question: how much does it cost to make or buy the goods we sell, and what margin do those goods generate? SAP supports a continuous cycle of setting standards, capturing actual costs, analyzing variances, and adjusting plans and operations. These fundamentals apply to both SAP ECC and SAP S/4HANA.

  1. Establish a standard cost using the quantity structure, material prices, activity rates, and overhead.
  2. Record actual material consumption, production activities, and goods receipts.
  3. Compare actual costs with the appropriate target costs and identify variances.
  4. Use the results to improve operations, cost estimates, and profitability planning.

The standard cost component split provides the foundation for this cycle. Without meaningful cost components, even a correctly posted total cost may be difficult to interpret.

Follow the Cost Flow During the Period

Richard recommends tracing postings from the initial acquisition of material and production resources through the manufacturing order and eventual sale. Figure 1 shows the original presentation’s simplified make-to-stock example. It connects conversion costs, manufacturing work in process, variances, inventory, and cost of goods sold (COGS).

View the original presentation diagram (slide 16): Production with Variance Cost Flow with Material Ledger Actual Costing

Figure 1 Production Cost Flow During the Period — Richard Russmann, SAP Controlling 2026

The example starts with ten finished units at a standard cost of $500 in total, or $50 per unit. Its standard cost components comprise $200 material, $200 labor, $90 overhead, and $10 factory overhead. These amounts are illustrative and not a prescribed account structure.

Illustrative Standard Cost for Ten Finished Units
Cost ComponentAmount
Material $200
Labor $200
Overhead $90
Factory Overhead $10
Total Standard Cost $500
Standard Cost per Unit $50

Primary costs such as payroll and utilities are recorded on production cost centers. Activity confirmations allocate costs from the cost center to the production order: the order is debited and the sending cost center credited through the appropriate secondary cost account. A costing sheet can apply overhead separately. Goods receipt credits the production order and debits finished goods inventory at standard price. When goods are sold, the goods issue reduces inventory and records COGS; configured COGS splitting can break the expense into meaningful cost components.

Purchase price differences can arise when raw materials are acquired at a price different from their standard price. For a standard-price material, the relevant price difference may be recorded separately rather than immediately changing standard inventory valuation. The details depend on valuation, purchasing, and account-determination configuration.

In the Universal Journal (ACDOCA), both sides of these transactions can be available for reporting. A trial balance grouped only by G/L account can obscure the individual debits and credits when they offset each other. Include cost objects, quantities, and account assignments when reconciling the postings.

Reconcile Costs at Period-End

The next stage is to understand what remains in production cost centers, production orders, and variance accounts. Figure 2 shows Richard’s period-end example, including actual activity valuation and Material Ledger Actual Costing.

View the original presentation diagram (slide 17): Period-End Actual Activity Valuation and Material Ledger

Figure 2 Period-End Cost Flow and Actual Costing — Richard Russmann, SAP Controlling 2026

A typical period-based process includes cost center allocations and actual activity price calculation, revaluation where configured, overhead calculation, work in process (WIP), variance calculation, and settlement. In supported scenarios, event-based production accounting changes the timing of selected postings. For details, see Event-Based Production Accounting in SAP S/4HANA.

Material Ledger Actual Costing can calculate a periodic unit price (PUP) and roll eligible price and production differences through the material structure. In Richard’s simplified example, the total actual cost is $600 and the PUP is $60 per unit, compared with the $50 standard cost. Actual Costing can allocate eligible differences to ending inventory and, depending on configuration, revalue consumption or COGS. The timing and treatment of WIP depend on the production and actual-costing scenario.

Richard illustrates a useful reconciliation objective: identify accounts and cost objects designed to clear after allocations, actual valuation, and settlement. Confirm that remaining balances represent valid WIP, unabsorbed costs, unsettled orders, or other expected amounts. Do not assume every cost center, order, or variance account must always be zero. Investigate residual balances in context, rather than force an artificial zero.

For a deeper explanation of how variances move to inventory and consumption, see SAP Material Ledger Actual Costing: From Variances to Real Product Costs.

Design Reporting for Margin Analysis

SAP S/4HANA Margin Analysis is account-based profitability analysis integrated with the Universal Journal. Costing-based CO-PA may remain available in applicable private cloud or on-premise deployments; it is not accurate to say that all CO-PA has disappeared. The objective is to reconcile the financial accounts with meaningful profitability dimensions such as product, customer, and market segment.

Richard recommends grouping G/L accounts to distinguish production conversion costs, WIP, manufacturing and purchase price variances, inventory adjustments, COGS, and revenue. In his illustrative account design, selected conversion accounts are grouped separately from final COGS accounts. The example is a reporting design principle, not a universal SAP G/L numbering convention.

Use G/L account hierarchies and functional areas to make costs and expenses understandable. Account assignment type and profitability segment attributes may provide additional reporting lenses. Avoid using a single classification as a substitute for a full reconciliation of cost objects and profitability assignments.

For example, Universal Allocation can distribute engineering costs identified as period expenses to relevant profitability segments. Discuss how allocation credits should appear in financial reports before finalizing the design; unnecessary manual reclassifications can obscure the original cost flow. Read more about Universal Allocation and extensibility in SAP Margin Analysis.

A Practical Design Checklist

The presentation warns against relying on disconnected spreadsheets or rebuilding SAP cost accounting in an external data platform. Analytics platforms can be valuable, but they do not replace a sound transactional design. Validate the source data before using it for management reporting, planning, or AI.

  • Map the standard cost and actual postings by cost component, G/L account, and cost object.
  • Trace purchase price differences, material consumption, activity allocations, overhead, inventory receipts, and COGS splitting.
  • Use production cost analysis and cost center actuals reports to reconcile balances and identify unabsorbed costs.
  • Review automatic account determination (OBYC) and default account assignment (OKB9) where applicable to the deployment and process; validate rather than assume the defaults.
  • Reconcile the order and cost center closing results, WIP, variance settlement, and Material Ledger adjustments to the trial balance.
  • Design G/L hierarchies and profitability segment derivation with finance, manufacturing, sales, and FP&A stakeholders.
  • Validate the end-to-end results before distributing them to SAP Analytics Cloud or other reporting platforms.

Product Costing is not only a technical configuration exercise. It is a financial design discipline that connects manufacturing activity with inventory valuation and profitability. A well-designed cost flow provides the foundation for accurate reporting and business decisions.

Watch the Full SAP Controlling Conference Session

Explore Richard Russmann’s presentation and other expert-led SAP Finance and Controlling conference recordings with ERPCorp membership.

Explore ERPCorp Membership

Can Your Team Explain the Product Cost Behind the Margin?

ERPCorp can help trace production postings, review absorption and allocation design, and reconcile Material Ledger and Margin Analysis results so your costing reports support decisions you can explain.

Discuss Your Product Costing Requirements