Sub topic 6
Finance and Controlling
This chapter assumes you know the organizational structure from the earlier chapter (client, company code, plant) and basic relational database ideas such as tables, keys, and joins. It covers what Finance (FI) and Controlling (CO) each do, how they differ, and how the common mistakes arise.
Two views of the same money
Finance and Controlling answer different questions about the same business events.
- Financial Accounting (FI) is external reporting. It records postings per company code and produces the balance sheet and the profit and loss statement under rules such as IFRS or local GAAP.
- Controlling (CO) is internal management accounting. It tracks costs and revenues by cost center, internal order, profit center, and similar objects, so managers can plan, allocate, and analyze.
FI asks "What do we legally owe and own?" CO asks "Which part of the business caused this cost?"
Core building blocks in FI
| Object | Purpose |
|---|---|
| Chart of accounts | The list of G/L accounts shared by company codes |
| G/L account | One account, such as revenue or inventory |
| Ledger | A set of books. Ledger 0L is the leading ledger |
| Fiscal year variant and posting periods | Control which periods accept postings |
| Accounts payable and receivable | Subledgers for suppliers and customers |
| Asset accounting | Fixed assets and depreciation |
Each company code is assigned a chart of accounts and a fiscal year variant. Every posting belongs to exactly one company code.
Core building blocks in CO
- Cost element: In S/4HANA, cost elements are G/L accounts with a cost element category. They are no longer separate master records.
- Cost center: A place where costs arise, such as the IT department.
- Internal order: A temporary object for a project or event.
- Profit center: A unit for which you report profit.
- Allocations: Assessment and distribution move costs between CO objects.
How a posting flows
An operational document, such as a goods receipt, creates an accounting document. The accounting document has a header and line items. Each line carries a G/L account and, when relevant, CO account assignments.
The document must balance. Total debits must equal total credits, or the system rejects it.
Reading the data
The next chapter covers the Universal Journal in detail. For now, note that line items for FI and CO sit in table ACDOCA. This query sums balances per account for one company code and the leading ledger.
SELECT rbukrs, racct, SUM( hsl ) AS balance
FROM acdoca
WHERE rldnr = '0L'
AND rbukrs = '1010'
AND gjahr = '2024'
GROUP BY rbukrs, racct
INTO TABLE @DATA(balances).HSL is the amount in company code currency. Filtering on RLDNR matters. Without it, you sum lines from every ledger and double count.
Common errors
- Posting period closed. The document date falls in a period that is not open for the company code. Open the period or post in an open one.
- Missing account assignment. An expense account requires a cost center or order, and the posting omits it.
- Mixing ledgers. Reports that ignore the ledger field include parallel-ledger lines.
- Wrong currency assumption.
HSLis in company code currency. Other amount fields cover group or transaction currency. - Treating CO as optional. Many expense postings need CO objects, so CO master data must exist before go-live.
Exercise
A query on ACDOCA for company code 1010 returns totals that look about twice as high as the balance sheet. Which filter is most likely missing, and why?
Show answer
The ledger filter (RLDNR = '0L'). If the company code uses a parallel ledger, ACDOCA holds lines for each ledger. Summing across all ledgers counts the same business event more than once.