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/BSEG is the classic finance header/item pair.
- The key is BUKRS + BELNR + GJAHR, financial documents are unique per company code and fiscal year.
- BUKRS, company code (key).
- BELNR, accounting document number (key).
- Watch out: Reading tables directly instead of using CDS/reports where appropriate.
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.