IT CanvassTalk to an advisor
SAP tables · LessonReviewed by Arjun, SAP Solution Architect · Updated · Published · SAP S/4HANA 2023 · all levels

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).

Quick answer

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.

Key takeaways
  • 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.
Already working on SAP and stuck on a live ticket?Get an expert SAP developer on screen-share to finish your daily tasks with you. Deliver on time, protect your reputation and your job. Monthly support only, no task-wise plans.Task assigned · no idea where to startStill stuck · your job on the lineExpert joins your screenDelivered on timeExplore On Job Support