SAP BKPF
BKPF is a key SAP table in FI (Finance). It stores accounting document headers, the header-level data of financial documents (document type, dates, currency).
BKPF is the SAP accounting document header table, keyed by company code, document number and fiscal year, holding the document type, posting date and currency. Its line items are in BSEG, the classic finance header and item pair. In S/4HANA the universal journal ACDOCA is the central line-item source, with BKPF and BSEG kept as compatibility views.
- BUKRS, company code (key).
- BELNR, accounting document number (key).
- Watch out: BKPF is the header only; the amounts and the accounts are in BSEG.
What it stores
It stores accounting document headers, the header-level data of financial documents (document type, dates, currency).
Key fields
- BUKRS, company code (key).
- BELNR, accounting document number (key).
- GJAHR, fiscal year (key).
- BLART, document type.
- BUDAT, posting date.
Keys and relationships
The key is BUKRS + BELNR + GJAHR, financial documents are unique per company code and fiscal year. The line items are in BSEG. In S/4HANA the universal journal (ACDOCA) is the central line-item source.
Working with it
BKPF/BSEG is the classic finance header/item pair. In S/4HANA, prefer the universal journal (ACDOCA) and CDS views, with BKPF/BSEG available as compatibility views. View its structure in SE11 and its data (with authorization) in SE16N.
Common pitfalls
- Reading tables directly instead of using CDS/reports where appropriate.
- Ignoring header/item relationships.
- Performance: querying large tables without indexed selection.