Sub topic 5
Leading and Non-Leading Ledgers and Parallel Accounting
This chapter assumes you know what a company code and a chart of accounts are, and that you have seen the Universal Journal (table ACDOCA) as the single line-item table for accounting and controlling. You should also be comfortable with debits, credits, and a trial balance. The chapter explains how ledgers let one set of postings serve several accounting rules, and where the common mistakes occur.
Why parallel accounting exists
A company often has to report the same business events under different accounting rules. A group may follow IFRS for consolidation, while a local statutory report follows local GAAP. Depreciation methods, provisions, and valuation can differ between these rule sets.
Parallel accounting means keeping the books under more than one rule set at the same time. In SAP S/4HANA, each rule set is a ledger. A ledger is a complete set of accounts that gives its own view of the company's financial position. All ledgers store their line items in the same table, ACDOCA, and the field RLDNR (ledger) tells you which ledger a line belongs to.
Leading and non-leading ledgers
There are two kinds of ledger.
- The leading ledger is the main ledger. In a standard setup it is ledger
0L. It is the ledger that is integrated with Controlling, and it takes its settings from the company code, such as the fiscal year variant and the company code currency. - A non-leading ledger is an additional ledger for a different accounting principle. It inherits the settings of the leading ledger by default, and you can override some of them, such as the fiscal year variant.
Every company code must have exactly one leading ledger. It can have any number of non-leading ledgers.
| Property | Leading ledger | Non-leading ledger |
|---|---|---|
| Number per company code | Exactly one | Zero or more |
| Typical ledger ID | `0L` | Customer-defined, such as `2L` |
| Controlling integration | Yes. CO postings update it. | No. CO postings do not flow into it by default. |
| Posts all documents | Yes | Only those documents that apply to its ledger group |
| Reconciles to subledgers | Yes | Follows the same subledger data when the posting is shared |
The leading ledger defines the main reporting view. Non-leading ledgers carry the differences.
Ledger groups
A ledger group bundles ledgers so that you can post to several of them in one step. When you post a journal entry, you can choose a ledger group. The system writes the lines to every ledger in that group.
- If you leave the ledger group empty, the system posts to all ledgers of the company code. This is the normal case for business transactions that look the same under every rule set.
- If you pick a ledger group that contains only a non-leading ledger, the entry is a ledger-specific adjustment. It exists only in that ledger.
The system also creates a ledger group of the same name for each ledger, so you can target a single ledger directly.
How ledgers share data in ACDOCA
Each ledger has its own set of lines in ACDOCA, identified by RLDNR. A transaction posted to all ledgers therefore produces the same line items once per ledger. For the leading ledger 0L the lines also carry the CO account assignments. This is how Controlling and Financial Accounting stay in one table.
Ledger-specific postings only add lines for one ledger. Because of this, a trial balance for ledger 0L and one for ledger 2L differ exactly by the adjustment documents posted to one of them.
Always include RLDNR in any query on ACDOCA. Without it, the amounts of all ledgers are added together and the result is wrong. Compare these two queries.
SELECT racct,
SUM( hsl ) AS balance
FROM acdoca
WHERE rldnr = '0L'
AND rbukrs = '1010'
AND gjahr = '2025'
AND poper <= '012'
GROUP BY racct
ORDER BY racct
INTO TABLE @DATA(lt_balances_0l).SELECT racct,
SUM( hsl ) AS balance
FROM acdoca
WHERE rldnr = '2L'
AND rbukrs = '1010'
AND gjahr = '2025'
AND poper <= '012'
GROUP BY racct
ORDER BY racct
INTO TABLE @DATA(lt_balances_2l).The company code 1010, the year, and the ledger IDs are sample values. Production reports should use released CDS views, not the table.
Comparing the two result sets account by account shows where the accounting principles differ. Each ledger on its own must still balance per document, which the check below confirms.
SELECT rldnr, rbukrs, gjahr, belnr,
SUM( hsl ) AS doc_balance
FROM acdoca
WHERE rbukrs = '1010'
AND gjahr = '2025'
GROUP BY rldnr, rbukrs, gjahr, belnr
HAVING SUM( hsl ) <> 0
INTO TABLE @DATA(lt_unbalanced).Grouping by RLDNR means each ledger's copy of a document is tested separately. The query should return no rows for a consistent single-currency company code.
Ways to handle differing accounting principles
There are two main design approaches, and they can be combined.
- Ledger approach. Each accounting principle has its own ledger. Differences are posted as ledger-specific adjustments. This is the recommended approach because each ledger is a full, auditable set of books.
- Accounts approach. A single ledger holds all values, and separate accounts hold the differences. For example, one expense account holds IFRS depreciation and another holds local depreciation. Reports select the accounts that belong to each principle. This avoids extra ledgers but makes the chart of accounts larger and reports more complex.
Asset accounting shows the ledger approach clearly. Each depreciation area can be assigned to a ledger. The depreciation run then posts different amounts to different ledgers, based on the depreciation key of each area.
Settings that can differ per ledger
A non-leading ledger can have its own values for some settings. Others stay fixed to the leading ledger.
- Fiscal year variant. A non-leading ledger can use a different fiscal year variant, for example when a statutory year ends in March while the group year ends in December.
- Posting period variant. Each ledger can be assigned its own, so you can close the local ledger periods on a different schedule than the group ledger.
- Currencies. The leading ledger takes the currencies of the company code. Non-leading ledgers can use additional currency types, within the limits of what the company code allows.
- Chart of accounts. All ledgers of a company code use the same operating chart of accounts. The local rules are handled by an additional country chart of accounts that is mapped to it.
Common errors
- Missing RLDNR in queries. Totals double when two ledgers hold the same documents.
- Posting an adjustment to the wrong ledger group. Leaving the group empty sends the entry to every ledger, so a local-only correction ends up in the group books.
- Assuming Controlling updates non-leading ledgers. Allocations and settlements run against the leading ledger. If a local ledger needs those results, they must be carried over by a ledger-specific adjustment or by currency and ledger settings that are available in your release.
- Different fiscal year variants without checking periods. A period number such as
012is not the same calendar month in two ledgers with different variants. Compare balances by ledger and period, not by period number alone. - Creating ledgers late. Adding a non-leading ledger to a company code that already has postings does not fill past periods automatically. Plan ledgers before the go-live of the company code, or use a migration project.
Decision criteria
Use an extra ledger when the rule sets differ in valuation or timing, when you need separate periods or fiscal years, or when you need an auditable full set of books per principle. Use the accounts approach when the differences are small, stable, and limited to a few accounts. Use a single ledger when only one rule set applies.
Exercise
A company code has ledgers 0L (leading) and 2L (non-leading, local GAAP). A user posts a local GAAP depreciation adjustment with the ledger group left empty. What happens, and how should the entry have been posted?
Show answer
With an empty ledger group, the system posts the adjustment to every ledger of the company code, so ledger 0L is also changed and the group books are wrong. The entry should have used the ledger group of ledger 2L, so that its lines exist only with RLDNR = '2L' in ACDOCA.
Exercise
Why must a query that sums HSL in ACDOCA always filter on RLDNR, and what does the unbalanced-documents query do about it?
Show answer
Each ledger stores its own copy of the lines, so summing without a ledger filter adds the same business amounts once per ledger and overstates balances. The unbalanced-documents query groups by RLDNR, so each ledger's version of a document is checked on its own.