Skip to content
Tutorials Center
My learning

Topics

Lesson 14 of 36 ยท Finance: FI/CO

SAP General Ledger (FI-GL): Chart of Accounts, Postings and Universal Journal

Learn the SAP FI general ledger: chart of accounts, account groups, G/L master data, document types and posting keys, posting a journal entry, fiscal year variants, and the S/4HANA universal journal.

The general ledger (G/L, FI-GL) is the heart of SAP finance. Every financial event, from a purchase to a payroll run, ends up here as an accounting document. Understanding its building blocks (chart of accounts, accounts, document types, posting keys, periods) lets you read any financial posting. We also cover the big S/4HANA change: the universal journal.

Chart of accounts

A chart of accounts (CoA) is the list of all G/L accounts a company can post to. A company code uses one operating chart of accounts; groups often add a group chart of accounts for consolidation and a country chart of accounts for local law. Accounts are identified by numbers, for example:

Range Type
1xxxxx Assets
2xxxxx Liabilities and equity
4xxxxx Expenses
8xxxxx Revenue

(Number ranges are chosen per company; the table is a typical convention, not a rule.)

Each account has two segments of master data, maintained in FS00:

  1. Chart of accounts segment: account number, name, account type (balance sheet or P&L) and account group (a set of rules about which fields are required).
  2. Company code segment: currency, reconciliation account flag, tax category, open item management, line item display and field status group.

Account types:

  • Balance sheet accounts carry their balance forward to the next year.
  • P&L accounts (profit and loss) are closed at year end and their balance moves to a retained earnings account.

Reconciliation accounts are special G/L accounts that sum up a subledger: accounts payable (vendors), accounts receivable (customers) and asset accounting. You cannot post to them directly, only via the subledger, so the subledger and the G/L always agree.

Document structure and types

A financial accounting document has a header (document number, company code, fiscal year, document type, posting date, document date, reference, currency) and at least two line items (account, debit or credit, amount, text, cost center).

A document type classifies the business transaction and selects the number range. Common types:

Type Meaning
SA G/L account document
KR Vendor invoice
KZ Vendor payment
DR Customer invoice
DZ Customer payment
WE Goods receipt
WA Goods issue
RE Invoice receipt (from MM)
AF Depreciation posting

A posting key (two digits) controls the account type and the side. The classics: 40 debit G/L account, 50 credit G/L account, 31 credit vendor, 21 debit vendor (credit memo), 01 debit customer, 11 credit customer (credit memo). The document is only posted if debits equal credits and every required field is filled.

Posting a journal entry

The simple transaction FB50 (G/L account posting) in the classic GUI:

  1. Enter company code, document date, posting date, currency and a reference.
  2. In the first line, enter the G/L account, debit/credit indicator and amount.
  3. Add the second line for the offsetting account.
  4. Check that the balance shown at the bottom is 0.
  5. Click Simulate (to review) and then Post (Ctrl+S).

The system answers with the document number (for example 100000012). Display it with FB03. In S/4HANA the classic FB50 still works, and the Fiori app "Post General Journal Entries" does the same.

Python Stand-in: posting engine with a balance check

Press Run (or Ctrl + Enter) to see the result here.

Program input ยท what you'd type while the program runs

Type the answers before you press Run, one per line. Each time the program reads a line (with input()), it gets the next line from this box.

Fiscal year and posting periods

Every company code has a fiscal year variant: usually 12 normal posting periods plus up to four special periods (13 to 16) for year-end adjustments. A posting period variant (assigned to the company code) controls which periods are open for posting. OB52 opens and closes periods per account type: A (assets), D (customers), K (vendors), S (G/L accounts), M (materials). If you see "Posting period 004 2025 is not open", an accountant must open it, or the posting date must change.

Balances and reports

  • FAGLB03 (or FS10N in the classic model): display the balance of an account per period.
  • FBL3N: line items of a G/L account.
  • S_ALR_87012284 and similar: financial statements; in Fiori, balance sheet and income statement apps.
  • F.01: classic financial statement reporting by a financial statement version, which is the layout of the balance sheet and income statement.

The universal journal in S/4HANA

In classic ECC, finance data was stored in several places: the document tables (BKPF header and BSEG items), totals tables for the G/L, separate tables for controlling (COEP) and asset accounting. Reconciling them was a periodic job. S/4HANA introduces the universal journal, one table named ACDOCA, that stores every posting line once with all dimensions: accounts, cost center, profit center, segment, material, asset and more. The consequences:

  • FI and CO are always in sync because they are one table.
  • Reports read the journal directly (HANA computes totals in memory), so totals tables are not needed.
  • Several ledgers (leading ledger and non-leading ledgers for different accounting principles such as local GAAP and IFRS) work in parallel.
  • Cost objects can be analyzed together with accounts, without reconciliation runs.
flowchart LR
    A["Sales billing"] --> J[("Universal journal<br/>ACDOCA")]
    B["Goods movement"] --> J
    C["Payroll"] --> J
    J --> R1["Balance sheet"]
    J --> R2["Cost center report"]
    J --> R3["Profit center report"]

One journal feeds financial and management reports.

Python Stand-in: one journal, several reports

Press Run (or Ctrl + Enter) to see the result here.

Program input ยท what you'd type while the program runs

Type the answers before you press Run, one per line. Each time the program reads a line (with input()), it gets the next line from this box.

The stand-in's single list answers three reports by grouping different fields; the universal journal works the same way at much larger scale.

Check your understanding

Quick check ยท 4 questions

of 4 answered You scored / 4 ยท perfect!

  1. 1. What must be true for a G/L document to post?

    Documents must balance, and required fields must be filled.
  2. 2. Which table is the universal journal in S/4HANA?

    ACDOCA holds all posting lines with finance and controlling dimensions.
  3. 3. What controls which posting periods are open?

    OB52 opens or closes periods per account type for the variant.
  4. 4. Why can't you post directly to a reconciliation account?

    Reconciliation accounts ensure subledger and G/L stay equal.

Summary

  • The chart of accounts lists the G/L accounts; each account has a chart-level and a company-code-level segment.
  • Documents have a header and balanced line items, classified by document type and posting keys.
  • Posting periods are controlled by a variant and opened or closed with OB52.
  • S/4HANA's universal journal (ACDOCA) merges FI and CO line items in one table.

Next: Accounts payable and receivable