What is SAP BSEG?

BSEG is the SAP table that stores the line items of every accounting document, linked to its header in BKPF.

BSEG is the SAP table that stores accounting document line items, one row per debit or credit line under a header in BKPF. In ECC it is a cluster table inside RFBLG; in S/4HANA it is transparent and sits alongside the universal journal ACDOCA. It is archived with FI_DOCUMNT.

How BSEG works

Every financial posting creates a header in BKPF and two or more lines in BSEG keyed by company code (BUKRS), document number (BELNR), fiscal year (GJAHR) and line item (BUZEI). Each line carries account, amount, tax code, clearing data and assignment fields.

In ECC, BSEG is physically stored in the table cluster RFBLG. That design is why direct SELECTs without the full key are slow, and why secondary index tables such as BSIS, BSAS, BSID, BSAD, BSIK and BSAK exist for reporting by account. In S/4HANA, ACDOCA becomes the single source of truth for line items, BSEG remains as a transparent table for the entry view, and the index tables become compatibility views.

How to read and archive BSEG data

  1. For lookups, open FB03 with company code, document number and year rather than browsing BSEG in SE16.
  2. For reporting by account, use FBL3N, FBL1N or FBL5N, which read the index tables.
  3. To archive, set account type life in OBR7 and document type life in OBR8.
  4. In SARA, enter FI_DOCUMNT, create a write variant and run in test mode first.
  5. Run write, then delete, then postprocessing.
  6. Activate an FI_DOCUMNT infostructure in SARI so FB03 can show archived documents.

Only cleared items and documents past their residence times are archived. Open items stay in BSEG regardless of age.

Key parameters

Parameter or field What it controls Recommended setting or note
BUKRS / BELNR / GJAHR Primary key of the document Always select with the full key in ECC
BUZEI Line item number Needed to address a single line
AUGBL / AUGDT Clearing document and date Blank clearing means the item is open and cannot be archived
Account type life (OBR7) Minimum age per account type Set per company code and account range
Document type life (OBR8) Minimum age per document type Recurring entry and sample documents need separate rules
Object Purpose When to use it Status
BSEG FI line items Entry view in ECC and S/4HANA Current
BKPF Document header Every FI document Current
RFBLG Cluster holding BSEG ECC storage layer Obsolete in S/4HANA
ACDOCA Universal journal S/4HANA reporting and ledgers Current
BSIS, BSAS and siblings Index tables by account ECC reporting Compatibility views in S/4HANA

Common issues and troubleshooting

Why is SE16 on BSEG so slow?

In ECC, BSEG is a cluster table, so only key fields are indexed. Selecting by account or date scans RFBLG. Use the index tables or line item reports instead.

Why are old BSEG lines not archived by FI_DOCUMNT?

The items are still open, the residence times in OBR7 or OBR8 are not met, or the document belongs to a period the variant excluded. The write log lists the reason per document.

BSEG in S/4HANA migration and decommissioning

BSEG is the evidence behind every balance sheet line. Tax authorities and auditors ask for line items, not totals, so BSEG history is subject to the longest retention periods in the system. India’s Companies Act, for example, requires books of account for eight financial years.

During conversion, BSEG history is read to build ACDOCA, so every unarchived year adds runtime and memory. If closed years are left in a retired ECC system with no retention plan, line-level evidence for those years is gone. Archive closed years before conversion and keep them searchable in an independent SAP ECC archive.

Size BSEG by company code and year.

  • Clear or document remaining open items.
  • Archive closed years with FI_DOCUMNT before conversion.
  • Keep header, line items and clearing links together.
  • Confirm auditors can search by account, date and document.

Frequently asked questions

What is the SAP BSEG table used for?

The SAP BSEG table stores the line items of every financial accounting document. Each row holds an account, amount, tax code and clearing information for one line of a posting. Reports, audits and reconciliations rely on it because totals alone do not show how a balance was built.

Is BSEG still used in S/4HANA?

Yes, but its role changes. ACDOCA, the universal journal, holds the line items used for reporting across ledgers. BSEG remains a transparent table for the FI entry view, and the old index tables become views. Custom code should read ACDOCA or released CDS views where possible.

What is the difference between BKPF and BSEG?

BKPF is the header of an accounting document: company code, document number, year, type, dates and user. BSEG holds the individual debit and credit lines under that header. One BKPF row always has two or more BSEG rows, and both are archived together with FI_DOCUMNT.

Can BSEG data be deleted before decommissioning?

Only through archiving after residence and retention periods are met. Direct deletion breaks the link between headers and line items and removes audit evidence. Before decommissioning, archive the remaining years and retain them in a searchable store until statutory periods expire.

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.