Finance

This content was generated with the assistance of AI and should be verified against the official documentation before being relied on in production.

Finance in SAP covers two connected parts. Financial Accounting (FI) keeps the legal books of a company: the general ledger, payables, receivables and fixed assets. Controlling (CO) keeps the internal view: costs by cost center, orders and profit center, and the allocations between them. In SAP S/4HANA both write into one table of line items, the Universal Journal, so the two views always agree. This subsection explains the concepts in plain words for readers with no accounting background (it starts with Accounting Basics), walks through each area with the same example company, and ends with the developer side: the Finance APIs, posting from ABAP and the places where custom logic can be added. Code for the developer topics links to the ABAP section instead of repeating it.

The concept map

flowchart LR OU["Organizational units
company code, controlling area"] CA["Chart of accounts
G/L accounts, ledgers, currencies"] UJ["Universal Journal
one table of line items"] GL["General ledger
journal entries, clearing"] PR["Payables and receivables
suppliers, customers, payments"] AA["Assets, bank and cash"] CO["Controlling
cost centers, profit centers, allocations"] CL["Closing and reporting
period end, group reporting"] DV["Developer topics
APIs, BAPIs, substitutions"] OU --> CA --> UJ UJ --> GL UJ --> PR UJ --> AA UJ --> CO GL --> CL PR --> CL AA --> CL CO --> CL UJ -.-> DV
Figure 1. From organizational units to reports in SAP Finance

Every box on the right reads from or writes to the Universal Journal in the middle. The dashed arrow marks the developer topics, which read the journal through released views and write to it through released interfaces.

Version baseline

Product Baseline used on the pages

SAP S/4HANA on premise and Private Edition

2025 FPS02.

SAP S/4HANA Cloud Public Edition

2608. A page names the places where the Public Edition differs from the on-premise system.

SAP ERP 6.0 (ECC)

Used for contrast only, where a page explains what changed with SAP S/4HANA. SAP announced mainstream maintenance for SAP ERP 6.0 until the end of 2027, with optional extended maintenance until the end of 2030.

Teaching ledger

A small CAP project of the lab (@sap/cds 10.2 on Node.js 22.12 or newer) that the guides use to practice posting rules. It is a teaching model, not SAP software.

Where a page and this baseline ever disagree after a later update, the baseline is the one to trust.

What’s covered

The pages are grouped the same way as the navigation.

Foundations

Accounting basics for newcomers, the Finance overview, organizational units, fiscal year variants and posting periods, charts of accounts, ledgers and currencies, universal parallel accounting and the Universal Journal.

Step-by-step guides

Hands-on guides that post, follow, depreciate and allocate in a small teaching ledger on your own computer. The teaching ledger is built with CAP; it is not SAP S/4HANA and needs no SAP account.

General Ledger

Journal entries, document types and posting keys, number ranges and field status, document splitting, account determination and open item clearing.

Accounts Payable and Receivable

Business partners as customers and suppliers, accounts payable, accounts receivable with dunning and credit management, the automatic payment program, payment terms and special G/L transactions.

Assets, bank and cash

Asset Accounting, bank accounting and cash management, the cash journal, and tax codes and tax calculation.

Controlling

Controlling overview and cost elements, cost centers and internal orders, profit center accounting, planning and budgeting, allocations, product costing and the Material Ledger, margin analysis and predictive accounting.

Closing and reporting

Period-end closing, group reporting and consolidation, financial reporting and embedded analytics, and financial statement versions.

Developer topics

Finance APIs, posting from ABAP with BAPI_ACC_DOCUMENT_POST, substitutions, validations and BAdIs, transactions and Fiori apps, and implementation, migration and testing.

Reference

The glossary of Finance terms and a one-page cheat sheet.

Reading path

Developer path

For someone who reads and writes Finance data from code: the Universal Journal first, then the released views and APIs, BAPIs and the extension points.

Learn by doing

For someone who prefers to start with practice. The guides use a teaching ledger on your own computer; read the reference page named in each guide when you want the theory.

Running example

The pages follow Example Trading Co. (company code EX01), which keeps its books in euro (EUR) in the leading ledger 0L and uses an operating chart of accounts called YCOA. All codes, accounts and amounts are examples made for this site and are not values delivered by SAP. One purchase, one sale, one asset and one allocation run through the pages: the purchase and the sale show how documents reach the ledger and the open items, the asset shows depreciation, and the allocation moves costs between cost centers. Profit centers EX-RETAIL and EX-WHOLE split the results.

Existing page How the Finance subsection uses it

ABAP

The language, CDS views, RAP and BAPI calls behind the developer topics.

SAP

The landscape, the SAP Fiori launchpad, transports, authorizations and the CAP, OData and integration pages that the Finance pages link to.

Aggregate and Window Functions

Totals and running balances in plain SQL, the idea behind a trial balance.

ERP Overview

What an ERP system is, for readers who start here.

Bibliography

The subsection draws on the SAP Help Portal for SAP S/4HANA 2025 FPS02 and Cloud Public Edition 2608, SAP Learning, SAP News and the SAP API documentation, and on books consulted for concept coverage, each cited through its publisher’s page. The Finance section of the shared bibliography page lists every source used here, each linked to its official website.