Skip to content
SAP Reference

EKBE

transaction S/4HANA status: Active

History per Purchasing Document

Identity
What the badges mean
S/4HANA status: Active
Active and unchanged in S/4HANA.
S/4HANA status: Deprecated
Still readable today, but no longer SAP's strategic path — plan around it.
S/4HANA status: Replaced
Replaced by a new persistence in S/4HANA; the classic name may still answer reads (see read mechanism).
S/4HANA status: Migrating to IBP
Planning scope is moving from APO toward IBP.
S/4HANA status: Active (StRM) · Replaced (EWM)
Path-dependent: active with SAP Stock Room Management, replaced where EWM is the warehouse path.
S/4HANA status: Replaced · Compat View
Compatibility view: the classic table name is redirected to a view over the new persistence — see how the physical model moved.
S/4HANA status: Active · Proxy View
Proxy view: reads route through NSDM proxy/CDS views — see how the physical model moved.
master
Data class: what the table holds — master data, transaction documents, org structure, config, or texts (one row per language — see the quirks guide).
Linked type codes

CLNT the client key; filter it explicitly and carry it through every join.

NUMC fixed-width numeric text; keep it a string and keep the leading zeros.

DATS, TIMS character date (YYYYMMDD) and time (HHMMSS), zero-filled when initial.

CURR, CUKY, QUAN, UNIT amounts and quantities, meaningful only beside the currency key or unit that qualifies them.

LANG a language key in a text table — one row per language.

In field listings, K marks a primary-key field, and linked type codes in the Type column jump to the matching quirks-guide section.

Fields

39 fields · 8 key

The join key is all 8 key fields together — matching on any single one fans out. See composite keys in the quirks guide.

39 fields.

Table fields: key flag, field name, description, data type (linked to the data quirks guide where the type carries a known trap), length, and check-table references. 39 fields.
KeyFieldDescriptionTypeLengthReferences
Primary keyMANDTClientCLNT3T000
Primary keyEBELNPurchasing Document NumberCHAR10EKKO
Primary keyEBELPItem Number of Purchasing DocumentNUMC5
Primary keyZEKKNSequential Number of Account AssignmentNUMC2
Primary keyVGABETransaction/Event TypeCHAR1
Primary keyGJAHRMaterial Document YearNUMC4
Primary keyBELNRNumber of Material DocumentCHAR10
Primary keyBUZEIItem in Material DocumentNUMC4
BEWTPPO History CategoryCHAR1
BWARTMovement Type (Inventory Management)CHAR3T156
BUDATPosting Date in the DocumentDATS8
MENGEQuantityQUAN13,3
BPMNGQuantity in Purchase Order Price UnitQUAN13,3
DMBTRAmount in Local CurrencyCURR13,2
WRBTRAmount in Document CurrencyCURR13,2
WAERSCurrency KeyCUKY5TCURC
AREWRGR/IR Account Clearing Value in Local CurrencyCURR13,2
WESBSGoods Receipt Blocked Stock in Order UnitQUAN13,3
BPWESGR Blocked Stock Quantity in Order Price UnitQUAN13,3
SHKZGDebit/Credit IndicatorCHAR1
BWTARValuation TypeCHAR10
ELIKZDelivery Completed IndicatorCHAR1
XBLNRReference Document NumberCHAR16
LFGJAFiscal Year of a Fiscal Year VariantNUMC4
LFBNRDocument No. of a Reference DocumentCHAR10
LFPOSItem of a Reference DocumentNUMC4
CPUDTDay On Which Accounting Document Was EnteredDATS8
CPUTMTime of EntryTIMS6
REEWRInvoice Value in Local CurrencyCURR13,2
EVERECompliance with Shipping InstructionsCHAR2
REFWRInvoice Value in Foreign CurrencyCURR13,2
MATNRMaterial NumberCHAR18 / 40MARA
WERKSPlantCHAR4T001W
XWSBRReversal of GR Allowed for GR-Based IV Despite InvoiceCHAR1
ETENSSequential Number of Vendor ConfirmationNUMC4
KNUMVDocument Condition NumberCHAR10
MWSKZTax on Sales/Purchases CodeCHAR2
LSMNGQuantity in Unit of Measure from Delivery NoteQUAN13,3
LSMEHUnit of Measure from Delivery NoteUNIT3T006

Lengths shown as ECC / S/4HANA where the extended material number applies.

Linked type codes in the Type column jump to the matching section of the SAP data quirks guide.

Field provenance: hand-curated.

Boilerplate SQL

Starting point for reading EKBE on Databricks. Set your Unity Catalog location and filter values below — they’re substituted into the SQL and the copy button.

Query parameters

4 parameters not filled: <catalog>, <schema>, <MANDT>, <GJAHR>

-- ============================================================
-- Table  : EKBE History per Purchasing Document
-- Purpose: Column-selected read of EKBE — auto-generated from field metadata
-- Grain  : One row per EBELN + EBELP + ZEKKN + VGABE + GJAHR + BELNR + BUZEI
-- Notes  : Auto-generated skeleton. For multi-table transaction query patterns, see the linked t-codes on this page. Set catalog/schema to your Unity Catalog location; fill remaining placeholders (<...>) for your tenant.
-- ============================================================
SELECT
  e.MANDT AS "Client",
  e.EBELN AS "Purchasing Document Number",
  e.EBELP AS "Item Number of Purchasing Document",
  e.ZEKKN AS "Sequential Number of Account Assignment",
  e.VGABE AS "Transaction/Event Type",
  e.GJAHR AS "Material Document Year",
  e.BELNR AS "Number of Material Document",
  e.BUZEI AS "Item in Material Document",
  e.BEWTP AS "PO History Category",
  e.BWART AS "Movement Type (Inventory Management)",
  e.BUDAT AS "Posting Date in the Document",
  e.MENGE AS "Quantity",
  e.BPMNG AS "Quantity in Purchase Order Price Unit",
  e.DMBTR AS "Amount in Local Currency",
  e.WRBTR AS "Amount in Document Currency",
  e.WAERS AS "Currency Key",
  e.AREWR AS "GR/IR Account Clearing Value in Local Currency",
  e.WESBS AS "Goods Receipt Blocked Stock in Order Unit",
  e.BPWES AS "GR Blocked Stock Quantity in Order Price Unit",
  e.SHKZG AS "Debit/Credit Indicator",
  e.BWTAR AS "Valuation Type",
  e.ELIKZ AS "Delivery Completed Indicator",
  e.XBLNR AS "Reference Document Number",
  e.LFGJA AS "Fiscal Year of a Fiscal Year Variant",
  e.LFBNR AS "Document No. of a Reference Document",
  e.LFPOS AS "Item of a Reference Document",
  e.CPUDT AS "Day On Which Accounting Document Was Entered",
  e.CPUTM AS "Time of Entry",
  e.REEWR AS "Invoice Value in Local Currency",
  e.EVERE AS "Compliance with Shipping Instructions",
  e.REFWR AS "Invoice Value in Foreign Currency",
  e.MATNR AS "Material Number",
  e.WERKS AS "Plant",
  e.XWSBR AS "Reversal of GR Allowed for GR-Based IV Despite Invoice",
  e.ETENS AS "Sequential Number of Vendor Confirmation",
  e.KNUMV AS "Document Condition Number",
  e.MWSKZ AS "Tax on Sales/Purchases Code",
  e.LSMNG AS "Quantity in Unit of Measure from Delivery Note",
  e.LSMEH AS "Unit of Measure from Delivery Note"
FROM <catalog>.<schema>.ekbe e
WHERE
  e.MANDT = '<MANDT>'
  -- AND e.GJAHR = <GJAHR>
ORDER BY e.EBELN;

Verified August 2026

More query patterns: MIRO

Relationships

Diagram of 1-hop neighbors — join details below.

Transaction Codes That Use This Table

More Materials Management tables