Sub topic 5
Leading and Non-Leading Ledgers and Parallel Accounting
This chapter assumes you know what the Universal Journal is, that company codes and charts of accounts exist, and that you can read basic SQL.
Why more than one ledger
A company often has to report under more than one accounting principle. A group might use IFRS, while a local law requires local GAAP for statutory accounts. This is called parallel accounting. In S/4HANA you support it with several ledgers, all stored in the same table, ACDOCA. The field RLDNR tells you which ledger a line item belongs to.
Leading and non-leading ledgers
The leading ledger is the main ledger. SAP delivers it as 0L. It follows the accounting principle of the group and is the ledger that Controlling uses. Every company code is assigned to it, and it takes its currency settings and fiscal year variant from the company code.
A non-leading ledger carries a different accounting principle, for example local GAAP. Typical delivered IDs are 2L or customer-defined ones. It can have its own fiscal year variant and its own currencies, and you can open and close its posting periods separately.
An extension ledger is a third kind. It holds only the differences to another ledger. It is useful for simulating adjustments, because you do not duplicate every posting.
How postings reach the ledgers
A normal journal entry is posted to all ledgers at once. Differences come from two sources:
- Ledger groups. A ledger group bundles ledgers. If you post with a ledger group that names only the non-leading ledger, the entry exists only there. This is how you book a valuation adjustment for local GAAP.
- Accounting principle on the document. Automatic postings, such as depreciation, are derived per ledger from the accounting principle assigned to each ledger. A depreciation area then posts to its ledger.
Comparing ledgers with a query
To see where two ledgers differ, group the balances by ledger and account. Company code 1010 and year 2025 are sample values.
SELECT rldnr, racct,
SUM( hsl ) AS balance
FROM acdoca
WHERE rbukrs = '1010'
AND gjahr = '2025'
GROUP BY rldnr, racct
ORDER BY racct, rldnr
INTO TABLE @DATA(lt_by_ledger).Accounts whose balances differ between 0L and 2L hold the valuation differences. Production code should read released CDS views instead of the table.
Common errors
- Posting to the wrong ledger group. An entry that goes only to a non-leading ledger never appears in leading-ledger reports. Check the ledger group before posting.
- Expecting Controlling in every ledger. Cost-object postings are tied to the leading ledger. Do not expect non-leading ledgers to show the same CO detail.
- Closing only one ledger's periods. Posting periods are controlled per ledger when fiscal year variants differ. If you forget a ledger, users can still post to it after the close.
- Missing balance carryforward settings. Each ledger needs its own year-end carryforward. The leading ledger's run does not cover the others.
Exercise
A user posts an accrual with a ledger group that contains only the non-leading ledger 2L. Which ledger's trial balance shows the accrual, and which does not?
Show answer
The trial balance for 2L shows the accrual. The trial balance for the leading ledger 0L does not, because the entry created ACDOCA lines only with RLDNR = '2L'.