What is SAP EKBE?

EKBE is the SAP table that stores purchase order history: every goods receipt and invoice receipt posted against a PO item.

EKBE is the SAP table that stores purchase order history, recording each goods receipt, invoice receipt and related event posted against a PO item. It is what the PO History tab in ME23N displays, and it is archived together with EKKO and EKPO by the MM_EKKO archiving object.

How EKBE works

When a goods receipt or supplier invoice is posted against a purchase order item, SAP writes a row to EKBE keyed by PO number (EBELN), item (EBELP), transaction or event type (VGABE), year, document number and line. The row points to the material document or invoice that caused it and carries quantity and amounts in local and document currency.

That makes EKBE the bridge between purchasing, inventory and accounts payable. Three-way match, GR/IR clearing and delivery completion all depend on it.

  • VGABE identifies the event, such as goods receipt or invoice receipt.
  • BEWTP gives the PO history category shown in ME23N.
  • Links lead to MKPF / MSEG for goods movements and to RBKP for logistics invoices.

How to review and archive EKBE data

  1. Display a single PO history in ME23N, PO History tab, or query EKBE in SE16 with EBELN and EBELP.
  2. For mass analysis, use ME80FN to list purchasing documents with their history.
  3. Before archiving, make sure POs are fully delivered and invoiced, and GR/IR is cleared.
  4. In SARA, enter MM_EKKO and set residence times under Customizing, application-specific settings.
  5. Run the preprocessing step, if available in your release, to flag archivable POs.
  6. Create a write variant, run test mode, then production write and delete.
  7. Activate an MM_EKKO infostructure in SARI for read access after deletion.

Archiving requires S_ARCHIVE for MM_EKKO. Run in quiet procurement periods to avoid locks on active POs.

Key parameters

Parameter or field What it controls Recommended setting or note
EBELN / EBELP PO and item key Always filter on these for speed
VGABE Transaction or event type Distinguishes goods receipts from invoice receipts
BEWTP PO history category Matches the categories shown in ME23N
MENGE / DMBTR Quantity and local amount Used to reconcile GR against IR
Residence time (MM_EKKO) Age before archiving Set per document type and item category
Deletion indicator Marks POs as complete Required for most archiving runs
Object Purpose When to use it Status
EKBE PO history GR, IR and three-way match Current
EKKO / EKPO PO header and items Every purchase order Current
MKPF / MSEG Material documents Goods movements in ECC Replaced by MATDOC in S/4HANA
RBKP / RSEG Logistics invoice header and items Invoice verification Current
MM_EKKO Archiving object for purchasing documents Volume reduction Current

Common issues and troubleshooting

Why can a PO not be archived with MM_EKKO?

The most common causes are an unbalanced history, where goods received and invoiced quantities differ, a missing deletion indicator, or residence times not yet met. Check the write log, then clear GR/IR differences.

Why does ME23N show no history for an archived PO?

After deletion, history comes only from the archive. Activate and fill an MM_EKKO infostructure so archived POs can be displayed.

Why are EKBE quantities different from MSEG?

Reversals and returns create additional history rows. Compare by movement and event type, not by summed totals.

EKBE in S/4HANA migration and decommissioning

PO history is the proof that the company paid for what it received. Auditors use it to test three-way match, and tax teams use it to support input tax claims. It falls under the same retention periods as the related invoices.

The risk at retirement is separation. If EKBE is retained but the material documents or invoices are not, or the other way round, the chain from order to payment breaks. Archive purchasing, inventory and invoice objects as one set and retain them together, as covered in Archon’s SAP archiving approach.

  • Clear GR/IR differences before the final archiving run.
  • Archive MM_EKKO together with MM_MATBEL and invoice objects.
  • Keep PO, goods receipt and invoice links searchable.
  • Retain supplier master data needed to read the history.
  • Test a three-way match lookup on archived data before shutdown.

Frequently asked questions

What does the SAP EKBE table store?

The SAP EKBE table stores purchase order history. Each row records an event against a PO item, such as a goods receipt, invoice receipt or down payment, with quantities, amounts and a link to the posting document. It feeds the PO History tab in ME23N and three-way match checks.

What is VGABE in EKBE?

VGABE is the transaction or event type field. It tells you what kind of event created the history row, for example a goods receipt or an invoice receipt. Filtering on VGABE is the fastest way to separate received quantities from invoiced quantities when reconciling a PO.

Which archiving object archives EKBE?

EKBE is archived with MM_EKKO, the archiving object for purchasing documents. MM_EKKO writes the PO header, items, history and related tables together, so the full purchasing record stays consistent in the archive file. Run test mode first and check the log for POs blocked by open history.

Should EKBE be retained when an SAP system is decommissioned?

Yes, in most cases. PO history supports audits of purchasing and payables and input tax claims. Retain it with the related goods receipts and supplier invoices so the order-to-pay chain can still be reconstructed after the system is gone. Keep supplier master data too.

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.