Sub topic 13
Allocations, Settlement, and Margin Analysis at Period End
This chapter covers the controlling steps that run at period end, after postings are complete and before the close is signed off. You should already know how the Universal Journal stores accounting and controlling line items together, what a controlling area, cost center, and profit center are, and how posting periods are opened and closed. The chapter explains what each step does, in what order to run them, and which errors come up most often.
Why controlling has period-end work
During the period, costs land on cost centers, internal orders, projects, and production orders. Revenue lands with a profitability segment. Those objects collect costs, but most of them are not the final owner of the cost. Period-end controlling moves the costs to where they belong, and it explains the margin of each product, customer, or region.
In SAP S/4HANA each of these steps creates journal entries in the Universal Journal (table ACDOCA). There is no separate controlling ledger to reconcile with Financial Accounting. A cost center allocation is a line item with a sender and a receiver, and both sides are visible in the same table as the G/L postings.
The main period-end steps
| Step | What it does | Typical object |
|---|---|---|
| Accrual and deferral postings | Books costs and revenue to the right period (covered in the previous chapters) | G/L accounts |
| Work in process (WIP) calculation | Values unfinished production or project work | Production orders, projects |
| Variance calculation | Compares actual and target production cost | Production orders |
| Allocations | Moves costs between cost centers, activity types, or profit centers | Cost centers |
| Settlement | Transfers collected costs from an order or project to a receiver | Internal orders, WBS elements |
| Margin analysis | Reports revenue, cost of sales, and margin by profitability characteristics | Profitability segments |
Recommended sequence
The order matters because each step feeds the next. Allocations that run before settlement can miss costs that arrive later.
In practice the sequence varies. Cost center allocations sometimes run before settlement because the settled orders receive allocated costs. Your closing task list defines the order that applies to your company.
Allocations
An allocation distributes costs from a sender to one or more receivers. The two most common methods are assessment and distribution.
- Distribution keeps the original cost element. If a cost center posted to a telephone expense account, the receiver sees that same account. The origin of the cost stays visible.
- Assessment uses a secondary cost element. The receivers see the cost as one allocated amount, and the original accounts are not shown on them.
Both methods work with cycles and segments. A cycle groups the allocation rules for one run. A segment inside the cycle defines the sender, the receivers, and the tracing factor that sets the shares. Tracing factors can be fixed percentages, fixed amounts, or statistical key figures such as headcount or floor area.
In S/4HANA, allocations between profit centers or segments are also possible through the universal allocation. This one reads data from the Universal Journal, so it can allocate by any field in ACDOCA, for example cost by profit center or by segment, and it writes the result back as journal entries.
Test runs and real runs
Every allocation app has a test run. The test run shows the sender, the receivers, and the amounts without posting. Use it every time, and compare the total sent with the total received. The two must match.
Settlement
Settlement moves costs that are collected on an order or project to a receiver. The receiver can be a G/L account, a cost center, an asset under construction, or a profitability segment.
The settlement rules are set in the settlement profile and the allocation structure. Each order or project has a settlement rule that says who gets what percentage. If an order has no rule, settlement fails with an error, so settlement rules are one of the first things to check when a run reports errors.
Common cases:
- Capital project: costs settle to an asset under construction. When the project finishes, the asset under construction is capitalized to the final asset.
- Marketing order: costs settle to a cost center or to a profitability segment.
- Production order: variances settle to price difference accounts or to profitability analysis.
Settlement posts a credit to the sender and a debit to the receiver. After full settlement the order has a zero balance, and you can set the status to technically complete or closed. A closed order accepts no further postings, so close it only when you are sure that nothing else will arrive.
Margin analysis
Margin analysis, also called profitability analysis, shows how much each part of the business earns. In S/4HANA the default form is margin analysis based on the Universal Journal. Revenue, cost of goods sold, and other cost postings carry profitability characteristics such as product, customer, sales organization, and region. These characteristics are fields in ACDOCA, so the margin is read from the same line items as the financial statements.
The reporting steps are:
- Confirm that the sales postings contain the characteristics you want to analyze. Characteristics are derived at posting time, so missing values are hard to fix afterward.
- Run the period-end steps that move costs to the segments, such as settlement and the variance split.
- Open a margin analysis app, choose the ledger, and select the period.
- Drill into a segment and compare revenue to cost of sales.
The alternative is costing-based profitability analysis, which keeps its own value fields and its own data store. It is chosen when you need margin figures at the time of the sale, based on standard costs, or when you need a different valuation view. Many companies use both. The accounts-based version reconciles to the general ledger by construction. The costing-based version does not, so it needs a reconciliation of its own.
Checks after the run
After allocations and settlement, check that the results are consistent. Two checks are useful.
First, sender and receiver amounts must match for each cycle. Second, the cost centers that should be empty after allocation should have a balance of zero. This query lists the net balance per cost center for one company code and year. It reads ACDOCA directly for teaching purposes. Production code would normally read a released CDS view.
SELECT rcntr,
SUM( hsl ) AS balance
FROM acdoca
WHERE rldnr = '0L'
AND rbukrs = '1010'
AND gjahr = '2025'
AND poper = '012'
AND rcntr <> ''
GROUP BY rcntr
ORDER BY rcntr
INTO TABLE @DATA(lt_cc_balances).The sample values are company code 1010, year 2025, and period 012. Cost centers that you expect to be fully allocated should show a balance close to zero, and any remainder needs an explanation. Note that the sum covers all accounts in the period. To check only the primary costs, restrict the accounts to the cost element range of your chart of accounts.
Common errors
- Allocation posts to the wrong period. The posting date or period in the run parameters was not changed. Check the period field before the real run.
- Settlement fails because no rule exists. Maintain the settlement rule on the order or project. Check the allocation structure as well.
- Costs arrive after settlement. A late invoice posts to an order that you already settled. Settle again, or the cost stays on the order. Reopening a closed order is possible only if its status allows it.
- Allocation does not run for a cost center. The cost center is locked, or the period is closed for controlling. Check the posting period control for the controlling area and the ledger.
- The margin does not match the income statement. Costing-based profitability analysis was compared to the general ledger. Use the accounts-based form for reconciliation.
Summary
Allocations and settlement move costs from where they were collected to where they belong. Margin analysis then reads revenue and costs from the same Universal Journal. Run the steps in the order your task list defines, use the test runs, and check the cost center balances before you move on to the financial statements.
Exercise
A production order shows a remaining balance after the period-end run, and its settlement fails with an error. Name the first thing you check and explain why the order balance is not simply forced to zero.
Show answer
Check whether the order has a settlement rule and a valid allocation structure. Without a rule, the system does not know which receiver (G/L account, cost center, asset, or profitability segment) should get the costs. The balance cannot be forced to zero, because settlement is a posting with a credit to the sender and a debit to a receiver. Without a receiver, the cost would disappear from the books.
Exercise
Why does margin analysis based on the Universal Journal reconcile to the general ledger more easily than costing-based profitability analysis?
Show answer
Both read the same ACDOCA line items, so the amounts come from the same source. Costing-based profitability analysis keeps its own value fields and data store, and it may use different valuation, so it needs its own reconciliation.