What is SAP BKPF?

BKPF is the SAP table that stores the header of every accounting document: company code, number, year, type, dates and user.

BKPF is the SAP table that stores the accounting document header for every financial posting: company code, document number, fiscal year, document type, dates and the posting user. It remains a core table in S/4HANA, links to BSEG and ACDOCA, and is archived with FI_DOCUMNT.

How BKPF works

Each FI document has exactly one BKPF row keyed by BUKRS, BELNR and GJAHR. The line items sit in BSEG in ECC and in both BSEG and ACDOCA in S/4HANA. The header records who posted, when and from where.

Two fields matter most for traceability. AWTYP and AWKEY point to the source document, such as a billing document or material document, so an auditor can walk from the ledger back to the business event. BSTAT marks special statuses, including parked and noted items.

  • Dates: document date (BLDAT), posting date (BUDAT), entry date (CPUDT).
  • Origin: user (USNAM), transaction code (TCODE), reference (XBLNR).
  • Linkage: reference procedure (AWTYP) and object key (AWKEY).

How to analyze and archive BKPF data

  1. To view one document, use FB03 with company code, number and year.
  2. For counts by year or type, use SE16N on BKPF with BUKRS, GJAHR and BLART.
  3. To trace a source document, read AWTYP and AWKEY and open the matching transaction.
  4. Set residence times for archiving in OBR7 (account type life) and OBR8 (document type life).
  5. In SARA, run FI_DOCUMNT in test mode, then write, delete and postprocessing.
  6. Activate an FI_DOCUMNT infostructure in SARI so archived headers remain searchable.

BKPF is archived together with its line items. It cannot be archived on its own, and a document with any open item stays in the database.

Key parameters

Parameter or field What it controls Recommended setting or note
BUKRS / BELNR / GJAHR Document key Always use the full key for lookups
BLART Document type Drives residence time in OBR8
BUDAT Posting date Basis for period and retention calculations
BSTAT Document status Parked and noted items behave differently in reports
AWTYP / AWKEY Source document reference Retain with the archive to keep the audit trail
USNAM / CPUDT Who and when Needed for segregation of duties reviews
Object Purpose When to use it Status
BKPF Accounting document header Every FI document Current
BSEG Line items Entry view Current
ACDOCA Universal journal S/4HANA reporting Current
FI_DOCUMNT Archiving object for FI documents Volume reduction Current
CDHDR Change document header Changes to FI documents Current

Common issues and troubleshooting

Why are old BKPF entries still in the database after archiving?

The document has at least one open item, its residence time is not met, or the document type was excluded from the variant. The FI_DOCUMNT write log shows the reason.

How do I find which business document created a BKPF entry?

Read AWTYP and AWKEY. AWTYP names the source (for example a billing or material document) and AWKEY holds its key, which can be opened in the relevant display transaction.

BKPF in S/4HANA migration and decommissioning

BKPF is the index to the general ledger. Without it, line items lose their posting user, date and source reference, which are the first things an auditor checks. It shares the retention period of the accounting records themselves.

The risk in retirement is keeping totals or line items but losing the header context. A BSEG export without BKPF cannot show who posted an entry or which invoice it came from. Retain header and lines together, with AWKEY references intact, in an SAP archiving platform that preserves the link.

  • Archive headers and line items together with FI_DOCUMNT.
  • Preserve AWTYP and AWKEY for every document.
  • Keep the source documents those keys point to.
  • Retain user master data needed to identify USNAM values.
  • Test a full document trace on archived data.

Frequently asked questions

What is the SAP BKPF table?

The SAP BKPF table holds the header of each accounting document. It records company code, document number, fiscal year, type, posting and document dates, the user who posted it and a reference to the source document. Line items are stored separately in BSEG and, in S/4HANA, ACDOCA.

Is BKPF used in S/4HANA?

Yes. BKPF remains a core table in SAP S/4HANA and still holds the document header. Line items for reporting move to ACDOCA, but every journal entry still has a BKPF header, and BKPF is still archived through the FI_DOCUMNT archiving object.

What does AWKEY mean in BKPF?

AWKEY is the object key of the source document that created the accounting entry. Together with AWTYP, the reference procedure, it lets you trace a ledger posting back to the billing document, material document or invoice behind it. That trace is central to audits.

Do BKPF records need to be retained after decommissioning?

Yes. BKPF holds the who, when and where of every posting, so it falls under the same statutory retention as the financial records. Keep it with its line items and source references so auditors can trace entries after the system is retired.

Further reading

See Also

Ready to put this into practice?

See how Archon helps organizations with compliant archiving and legacy decommissioning.

Talk to us →

Archon © 2026, All rights reserved.