Sub topic 16
Trial balance and financial statements
This chapter covers how journal entry line items become a trial balance and then a balance sheet and income statement. It assumes you know debits, credits and the general ledger, and can navigate the Fiori launchpad. It also assumes you have read the chapters on the Universal Journal, ledgers and period-end closing. The SQL is optional and needs basic SQL reading skills.
From line items to reports
Every report in this chapter reads the same source: the line items in the Universal Journal (table ACDOCA). A trial balance sums those line items per G/L account. A financial statement groups those account balances into a structure that matches a legal or management view.
Three selections define any balance:
- Ledger. The leading ledger 0L and each non-leading ledger can hold different values, so a balance without a ledger is ambiguous.
- Company code and fiscal year. Together with the fiscal year variant, these decide which periods exist.
- Period range. A balance "as of period 12" means all periods up to and including 12, plus the carried-forward balance in period 000.
The trial balance
The trial balance lists each G/L account with an opening balance, debit and credit activity for the selected periods, and a closing balance. In SAP S/4HANA you normally run it from a Fiori app. The app reads released CDS views over ACDOCA, so the figures reflect postings immediately and no separate summarization step is needed.
When you run it, check these points:
- Select the ledger explicitly. A report on 0L and one on a non-leading ledger can differ legitimately, for example because of different depreciation areas.
- Choose the currency type. The company code currency is the default. Group and other parallel currencies are available if the ledger is configured for them.
- Confirm the period range. Special periods 13 to 16 hold closing adjustments, so a "full year" must include them.
- Confirm the grand total. Total debits must equal total credits, and the closing balances must net to zero across all accounts.
The last check is a consistency signal, not a proof that the books are right. A balanced trial balance can still contain a wrong posting on the wrong account.
Financial statement versions
A financial statement version (FSV) is a hierarchy that assigns G/L accounts to line items such as "Trade receivables" or "Revenue". It is configured per chart of accounts, in the configuration activity for financial statement versions (transaction OB58). Several versions can exist for the same chart, for example one for local GAAP and one for management reporting.
A version has these elements:
- Nodes. These are the report lines and form a tree. Assets and liabilities sit under the balance sheet, and revenue and expense under profit and loss.
- Account assignments. Each node holds accounts or account ranges. Ranges are convenient but let new accounts slip into a node unnoticed.
- Sign handling. A node can be shown as an asset or liability depending on its balance. This is how an account with a credit balance can move from receivables to payables.
- Unassigned accounts. Any account missing from the version appears in an "unassigned" or "not assigned" node. A non-empty node here means the version is incomplete.
Balance sheet and income statement
The balance sheet shows accounts as of a key date. The income statement shows activity over a period range. Both come from the same table, but they treat the opening balance differently.
- Balance sheet accounts carry their balance from year to year. The carryforward posts the closing balance into period 000 of the new year, so the balance as of any period includes period 000.
- Profit and loss accounts start each year at zero. At year-end their net result is moved to a retained earnings account, which is assigned in the chart of accounts through the P&L statement account type.
During the open year, profit or loss for the year does not yet sit in retained earnings. Reports therefore show it as a computed line, so the balance sheet balances before the year-end carryforward runs. After the carryforward, the amount moves into the retained earnings account.
Checking the report against line items
The report apps support drill-down. You select an account balance and open the journal entry line items behind it. The same check can be written as a query for a reconciliation test. This query returns opening balance and period activity per account, using the ledger and company code from the earlier chapters:
REPORT z_trial_balance_check.
SELECT racct,
SUM( CASE WHEN poper = '000' THEN hsl ELSE 0 END ) AS opening,
SUM( CASE WHEN poper <> '000' THEN hsl ELSE 0 END ) AS activity,
SUM( hsl ) AS closing
FROM acdoca
WHERE rldnr = '0L'
AND rbukrs = '1010'
AND gjahr = '2025'
AND poper <= '012'
GROUP BY racct
ORDER BY racct
INTO TABLE @DATA(lt_tb).
cl_demo_output=>display( lt_tb ).Compare the closing column with the closing balance in the app for the same selection. Production checks should read released CDS views rather than the table, as covered in the analytics chapter.
Common errors
| Symptom | Likely cause |
|---|---|
| Balance sheet does not balance | Profit or loss for the year is not included, or accounts are in the unassigned node |
| Report differs from a colleague's | Different ledger, currency type, or period range |
| Closing balance excludes last year | Carryforward has not run, so period 000 is empty |
| Totals miss closing adjustments | Special periods 13 to 16 were left out of the range |
| Figures differ between ledgers | Ledger-specific postings such as depreciation, which is expected |
Practical close routine
- Confirm that all closing tasks are complete: accruals, valuation, depreciation and allocations.
- Run the trial balance for the leading ledger and check that it nets to zero.
- Review the FSV unassigned node and fix any assignments.
- Run the balance sheet and income statement and drill into any account that looks unusual.
- Repeat for non-leading ledgers, and explain every difference to the leading ledger.
Exercise
A balance sheet for company code 1010 as of period 12 shows opening balances of zero for all accounts, although last year closed with large balances. Name two likely causes and how you would check each.
Show answer
First, the balance carryforward may not have run, so period 000 holds no values. Check the line items in ACDOCA for poper = '000' in the new year, or run the carryforward. Second, the report's period range may start at period 1 and exclude period 000. Check the selection and include period 000 (or select the balance as of a key date).