If you run controlling in SAP, you already have a profitability analysis. It has characteristics, value fields or accounts, a contribution margin scheme and years of history, and I am not going to suggest you replace it. What I want to walk through is how CO-PA actually arrives at its numbers, where the two flavours differ, and where a time-driven model can sit on top of it without charging the same cost centre to your customers twice. I have seen that double count more than once, and it is always found the same way: a customer margin that looks fine in the model and poor in the KE30 report, or the reverse, and nobody in the room able to say which one to believe.

What matters here

How do you connect a TDABC model to SAP CO-PA without double counting?

Take the margin at the level before the period-end cost centre assessments run, treat those cost centres as the resource pools, and let the time equations allocate their actual cost. Then either post the resulting driver quantities back as statistical key figures so that SAP performs the assessment with your minutes, or keep the model outside SAP and reconcile every period so that allocated cost plus unused capacity equals the cost centre actuals. What you must not do is add a TDABC allocation on top of a margin that already carries a revenue-keyed assessment inside it.

Two CO-PA flavours, and why the choice was never only technical

Costing-based CO-PA works with value fields. It records a line at billing time, with the revenue, the sales deductions and the cost of goods sold split into the cost components of the standard cost estimate, and it can also hold values that do not exist in the general ledger yet: an estimated freight charge, an accrued commission, a calculated discount. It keeps its own tables, one set per operating concern (the CE1 to CE4 tables people still refer to by name), it is fast and it is rich. It is also famously hard to reconcile with FI, because it was designed to be a management view rather than an accounting one.

Account-based CO-PA works with G/L accounts. It posts the same document that FI posts, so it reconciles to the ledger by construction. In the ECC years it was the poorer cousin: no cost component split at posting, no calculated values, and reporting that felt a generation behind. Most companies I met chose costing-based for good reasons, and many still run it perfectly well. The choice becomes a problem at one specific moment: when the finance team has to explain, every month-end, why CO-PA revenue and FI revenue differ by an amount that is never quite the same amount.

What changed in S/4HANA: Margin Analysis

In S/4HANA the account-based approach became the strategic one, and from the 2020 release onwards SAP’s documentation calls it Margin Analysis. The mechanism underneath is the Universal Journal, table ACDOCA: the profitability characteristics (customer, product, sales organisation, and whatever you added) are fields on the journal line itself, so the margin and the ledger are literally the same rows. Three things arrived with it that close most of the old gap with costing-based: the cost of goods sold can be split into cost components at posting time, production variances are split by variance category rather than settled as one lump, and a cost centre or internal order posting can carry an attributed profitability segment, meaning a customer group or a product line, without being allocated to it.

Costing-based CO-PA is still supported and can run in parallel, so nothing below assumes you have migrated. If you are still on ECC, or on costing-based, the steps are the same; only the reconciliation at the end costs more effort.

Step by step: how a cost reaches a profitability segment

It helps to see the whole path once, because the double count hides in the last two steps.

  1. The billing document posts revenue, sales deductions and COGS to a profitability segment. The characteristics of that segment are derived by the derivation rules (transaction KEDR) from the sales document: customer, product, sales organisation, distribution channel, and so on.
  2. Production variances settle from the production orders to the profitability segment of the product. In Margin Analysis they arrive split by category, so a price variance and a quantity variance are separate lines.
  3. Costs that cannot be traced at posting time stay on their cost centre until period end: sales, order desk, logistics, customer service, credit control, general administration.
  4. At period end an assessment cycle (KEU5 in the classic transactions, “Run Allocations” in the Fiori apps) pushes those cost centre balances to profitability segments using a tracing factor. The tracing factor is a fixed percentage, a value field such as revenue or quantity, or a statistical key figure.
  5. Top-down distribution (KE28) can spread a cost posted at a coarse level, say a sales region, down to the customers in that region, again by a reference value.
  6. The reports (KE30 in the classic world, the margin analysis apps in Fiori) then show a ladder of contribution margins: CM I after direct cost, CM II after variable selling cost, CM III after the assessed overheads, in whatever scheme your company configured.

Steps 4 and 5 are allocations, and the tracing factor most companies configured ten or fifteen years ago is revenue, gross margin or quantity. That key is exactly what a time-driven model exists to replace. It was good enough when the customer base was homogeneous; it becomes misleading when one customer orders once a month by EDI and another sends forty small orders by email with three changes each, and both pay the same share of the order desk because they bring the same revenue.

Where the double count happens

An illustrative case, with round figures chosen for the arithmetic rather than taken from any client. A customer service cost centre carries about 480,000 euros for the year. The assessment cycle sends it to customers in proportion to revenue. A TDABC model, built separately, allocates the same 480,000 by service minutes: six minutes per call, twenty-five per complaint, forty per credit note dispute, based on the volumes in the ticketing system.

The trap is to take CM III from the report, which already contains the revenue-keyed 480,000, and then subtract the TDABC allocation as an extra “cost to serve” line. Every customer is now charged twice for customer service, once by revenue and once by minutes, and the total cost charged is 960,000 against a cost centre that spent 480,000. The symptom is unmistakable once you know to look for it: the sum of customer margins in the combined report is lower than the company’s operating result by exactly the amount of the assessment. The diagnostic is the reconciliation I describe in a separate article on reconciling a cost model to the ledger to the cent: sum the layers and compare with the trial balance, every period.

Three ways to connect, and when each is good enough

Option A: model outside SAP, margin taken before the assessments. Extract the margin at CM II, or whichever level sits before the cost centre cycles, by excluding from the extract the secondary accounts the assessment posts to (assessment cost elements, category 42 in the classic terminology, or the secondary G/L accounts your cycle uses in S/4). Extract the cost centre actuals separately; those are your resource pools. Allocate them with the time equations, keep the unused capacity as its own line, and reconcile: pool actuals equal allocated cost plus unused capacity, to the cent. This is good enough for a first model, a pilot on one department, or a quarterly review. It stops being good enough when the business wants the numbers inside the SAP reports every month and two versions of the customer margin start circulating.

Option B: feed the drivers back into SAP. Post the driver quantities the model produces, for example minutes of customer service per customer, as statistical key figures per profitability segment (KB31N by hand, or an upload each month) and change the tracing factor of the assessment cycle to that key figure. SAP then performs the allocation with your minutes and the margin reports show it natively. Two things to know before you choose this. The rate is implicit, cost centre actual divided by total minutes, so SAP allocates one hundred percent of the cost centre and the unused capacity disappears into the customers. The fix is simple but has to be deliberate: post the unused minutes to a dummy segment named for what it is, so the rate stays at practical capacity and the idle cost shows on its own line. And the time equations live outside SAP, so somebody owns them and their maintenance; more on that in cost model governance.

Option C: CO-PA stays the accounting truth, the model is the analytical layer, and a bridge reconciles them. Each period, one page: CO-PA CM II, less the TDABC allocated cost by customer, less unused capacity, equals the same operating result FI reports. Nothing in SAP configuration changes, the assessments keep running for statutory and management reporting as before, and the model answers the questions the assessments cannot. This is where most of the companies I have worked with end up, because it is reversible and because the bridge doubles as the control that catches a double count the day it appears. It is not the end state everyone wants, and if the model earns its place the move to option B is a configuration change rather than a project.

Practical details that decide whether it works

Practical capacity comes from HR data and actual hours, not from the activity type plan. The activity price in KP26 is a plan rate on planned capacity; a TDABC rate is actual cost on practical capacity. They differ, sometimes by a lot, and both are right for their own purpose. Do not try to make them agree.

Drivers come from the document tables, not from CO-PA. Order lines, deliveries, billing lines, returns, service notifications: those are where the minutes are generated, and CO-PA only knows what was billed. A customer who cancels half their orders costs the order desk real time and shows nothing in CO-PA.

Watch the period boundary. CO-PA records at billing, cost centres by posting date, and a model built on an open month will never tie. Build on a closed quarter and most of the cut-off noise goes away by itself; the residue that remains is the subject of the reconciliation article.

Leave the derivation rules alone. It is tempting to make KEDR carry a TDABC result so that it appears everywhere; it also means the next person who changes a derivation step silently changes your cost model. Keep the model’s logic in the model.

And name the version. “CO-PA CM II, period 2026-06, before cycle ZPA01” is a statement somebody can reconcile in a year’s time. “The SAP margin” is not.

The assessment cycle is not wrong. It answers the question it was configured to answer. The model answers a different one, and the only rule is that each euro of the cost centre appears in exactly one of them.

Where to start

If your cycles are keyed on revenue, the cheapest test I know is one cost centre, one closed quarter, one time equation and the bridge. It takes a few weeks rather than a programme, it changes nothing in SAP, and it tells you whether the revenue key is roughly right or badly wrong for that department. If it is roughly right, you have saved yourself a project. If it is badly wrong, you have the evidence to decide between options B and C with the finance team rather than on my say-so.

Related reading: the field-by-field sequence for connecting SAP CO-PA to a TDABC model, a leaner alternative to SAP PCM and PaPM, why the ERP does not show real profitability, the time equation reference, enterprise costing, then versus now and how to allocate overhead without distorting product cost.