Skip to content

SAP CO explained: controlling in SAP

Written by an SAP Finance & Treasury practitioner working with SAP since 2008 · how the guides are written · Updated · facts checked against SAP Learning, October 2026

SAP CO, the SAP Controlling module, is the management-accounting side of SAP ERP: it records where cost arises inside a company, what a product costs to make, and which products, customers and regions earn their keep. It re-cuts the same postings Financial Accounting makes into internal views that never leave the company.

What is SAP CO?

SAP CO is the cost accounting and profitability layer that sits beside Financial Accounting: FI keeps the books for outsiders, CO answers the questions managers ask about the same money. Its organisational frame is short. A controlling area sits above one or more company codes and carries the currency and fiscal year variant controlling reports in; the operating concern sits above that and defines how profitability is sliced. Within that frame the components below each answer one question, and each has a transaction a newcomer meets early. Most also have a Fiori app in S/4HANA, but the codes still work and are how practitioners talk.

The CO components, the question each answers, and a first transaction
CO componentWhat it answersTransaction
Cost centre accountingWhich department spent what, against which plan?KS01 create a cost centre, KSB1 actual line items
Activity types and pricesWhat does an hour of this machine or team cost?KL01 create, KP26 plan the price
Internal ordersWhat did this one event, repair or small investment cost?KO01 create, KO88 settle
AllocationsHow is shared cost passed to the areas that use it?KSV5 distribution cycle, KSU5 assessment cycle
Manual repostingHow is a cost posted to the wrong object corrected?KB11N repost primary costs
Product costingWhat should one unit of this material cost?CK11N single cost estimate, CK40N costing run, CK24 mark and release
Actual costing (material ledger)What did one unit really cost this month?CKMLCP actual costing cockpit
Margin Analysis (CO-PA)Which product, customer or region made money?KE30 run a profitability report

What are cost centres and internal orders?

A cost centre is a permanent place where cost is incurred and someone is responsible for it; an internal order collects cost for something temporary that is neither a department nor a product. Every cost centre must hang somewhere in the standard hierarchy, which is why the hierarchy argument in the first workshop is really an argument about how the organisation wants to be held responsible. Activity types are how a cost centre sells its capacity: a machine hour or a labour hour gets a rate, planned or politically agreed, and every confirmation on a production order values its time at that rate and credits the cost centre.

An internal order covers a trade fair, an internal repair, a small capital project, a warranty case; repairs done for customers usually run on service orders and warranty claims in SAP Service instead. It is either real, carrying the cost until it is settled, or statistical, a second reporting angle on cost that really sits on a cost centre. What makes a real order an accounting object rather than a folder is its settlement rule: a receiver, a percentage or equivalence number, and a settlement type. Investment orders settle to an asset under construction and then to the finished asset; overhead orders settle to a cost centre or into profitability. An order reaching period end without a settlement rule is the commonest CO error on any project, and the fix is data, not configuration. Where the work is genuinely a project with a budget and dates, Project Systems takes over and settles the same way.

What is the difference between a cost centre and a profit centre?

A cost centre collects cost; a profit centre reports a result. A profit centre is an internal unit, such as a product line, a plant or a region, for which the company wants its own profit and loss statement. Every cost centre is assigned to exactly one profit centre in its master record, so its costs roll up without a second posting, and revenue arrives through the material and the sales order. Profit centres are created with KE51. In S/4HANA they are a field in the Universal Journal instead of a ledger of their own, so a profit centre report is a general ledger report, and with document splitting it can carry receivables, payables and a balance sheet as well. They sit on the border between FI and CO, and both teams have to agree the hierarchy.

What are primary and secondary cost elements?

A primary cost element mirrors an expense or revenue account in Financial Accounting: wages, electricity, sales revenue. A secondary cost element exists only inside controlling and carries cost that moves between objects: an assessment, an internal activity allocation, an overhead surcharge, a settlement. The cost element category says which kind it is, for example 1 for primary costs, 11 for revenue, 42 for assessment and 43 for internal activity allocation. In S/4HANA both kinds are G/L accounts maintained in FS00, with the account type Primary Costs or Revenue for the first and Secondary Costs for the second, and the separate cost element transactions KA01 and KA06 are no longer used. A useful exercise is to open one production order's cost report and say which lines are primary and which are secondary.

How do allocations work at period end?

Allocations move shared cost from the cost centres that collect it to the ones that consume it, in cycles run in a fixed order at month end. Distribution moves cost under its original primary cost element, so the receiver still sees electricity as electricity. Assessment moves it under a secondary cost element, so the receiver sees one line called something like "facilities" and the detail stays with the sender. That distinction decides how far a manager can drill before the trail stops, and most designs use both: distribution where cost keeps its identity, assessment for shared services where the detail is noise. Statistical key figures — headcount, square metres, kilowatt hours — give the cycles a basis that moves with the business rather than a percentage typed once.

The sequence around them is unforgiving. The cost-centre cycles run first, followed by actual activity price calculation (KSII) where the company uses actual rates, so prices reflect the cost the centres finally hold. Orders that consumed activities can then be revalued at those actual prices, and they take their overhead surcharges, work in process for open ones, variances for completed ones, and settlement. The final assessment of what remains on the cost centres into profitability analysis (KEU5) comes after the overhead run; top-down distribution (KE28) moves nothing out of the cost centres, it only spreads values already in CO-PA down to finer characteristics, so it runs last. Run out of order, the numbers are not obviously wrong; they are quietly wrong. A cost centre that receives cost after it has been assessed needs a second pass, and reversing and rerunning a cycle is routine, so the design should assume it. The sequence sits inside the wider FICO close, and learning it on a real one is what turns configuration into a controlling design somebody trusts.

How does product costing work?

Product costing explodes a material's bill of material and routing, prices every component and activity, and writes the total as a standard cost. A costing variant bundles the valuation variant (which price for a bought component, which rate for an activity, which overhead sheet) with quantity structure control (which BOM and routing to explode). The costing run walks the structure from the lowest level up; marking writes the result into the future price, and releasing makes it the standard price — normally once per material per period, which is why the release date sits on every cutover plan and annual costing calendar.

A routing missing an operation or a component without a price does not fail loudly; it produces a costed material with a hole in it that someone finds when the margin looks wrong. That makes a CO consultant an involuntary reviewer of manufacturing master data. Production orders are then charged with materials and activities and credited at standard on goods receipt; the difference is the variance, split into categories a person can act on — input price, quantity, resource usage, lot size, scrap. Actual costing in the material ledger goes one step further, rolling price differences back down the structure to produce a periodic unit price close to what goods really cost that month. Volatile input prices justify its closing effort; a stable standard usually does not.

What is Margin Analysis (CO-PA)?

Margin Analysis is SAP's name for account-based profitability analysis, the part of CO-PA that reports revenue and cost by market segment straight from the ledger. The design question is which characteristics the answer may be sliced by: product, customer, sales channel, region, brand, and whatever the business calls its own segments. Characteristics are derived when a document posts, so one nobody can derive is a column of blanks forever.

The older alternative, costing-based profitability analysis, keeps its own value fields and can split a billing line into cost-of-sales components at invoicing, which is why some businesses still run it alongside on premise and in the private cloud; the public cloud edition offers Margin Analysis only. Knowing why an estate runs one, the other or both is a standard interview probe, and reporting and analytics people usually meet Controlling here first.

How did S/4HANA change CO?

S/4HANA merged controlling into the general ledger's data model. Cost elements stopped being separate CO objects and became G/L accounts, as set out above. Finance and controlling line items share one table, the Universal Journal (ACDOCA), so the reconciliation the old FI–CO boundary existed for is gone. Margin Analysis is the default for profitability reporting, and the material ledger is active for material valuation as a matter of course, which surprises consultants whose experience predates it. The interview questions moved with the data: less about reconciling ledgers, more about allocations, variances and what a unit really costs (what S/4HANA means for your career).

Who moves into SAP controlling work?

Mostly cost controllers and management accountants, who already own the questions the configuration has to answer, and key users from the controlling department. Finance consultants move sideways too, though plenty who answer to "FICO" have never run a costing run, and production planners already read half of product costing in every BOM and routing. Interviewers rarely ask what a cost centre is; they ask you to draw the value flow from a goods issue on the shop floor to a margin line, then push on one joint — a variance category and its cause, a settlement rule, a refused price release.

Related reading

Work with SAP?

Join to get your public SAP profile and put your city on the map.

Free. About a minute. Sign in with Google.