EKBE
transaction S/4HANA status: ActiveHistory per Purchasing Document
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.
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.
| Key | Field | Description | Type | Length | References |
|---|---|---|---|---|---|
| Primary key | MANDT | Client | CLNT | 3 | T000 |
| Primary key | EBELN | Purchasing Document Number | CHAR | 10 | EKKO |
| Primary key | EBELP | Item Number of Purchasing Document | NUMC | 5 | |
| Primary key | ZEKKN | Sequential Number of Account Assignment | NUMC | 2 | |
| Primary key | VGABE | Transaction/Event Type | CHAR | 1 | |
| Primary key | GJAHR | Material Document Year | NUMC | 4 | |
| Primary key | BELNR | Number of Material Document | CHAR | 10 | |
| Primary key | BUZEI | Item in Material Document | NUMC | 4 | |
| BEWTP | PO History Category | CHAR | 1 | ||
| BWART | Movement Type (Inventory Management) | CHAR | 3 | T156 | |
| BUDAT | Posting Date in the Document | DATS | 8 | ||
| MENGE | Quantity | QUAN | 13,3 | ||
| BPMNG | Quantity in Purchase Order Price Unit | QUAN | 13,3 | ||
| DMBTR | Amount in Local Currency | CURR | 13,2 | ||
| WRBTR | Amount in Document Currency | CURR | 13,2 | ||
| WAERS | Currency Key | CUKY | 5 | TCURC | |
| AREWR | GR/IR Account Clearing Value in Local Currency | CURR | 13,2 | ||
| WESBS | Goods Receipt Blocked Stock in Order Unit | QUAN | 13,3 | ||
| BPWES | GR Blocked Stock Quantity in Order Price Unit | QUAN | 13,3 | ||
| SHKZG | Debit/Credit Indicator | CHAR | 1 | ||
| BWTAR | Valuation Type | CHAR | 10 | ||
| ELIKZ | Delivery Completed Indicator | CHAR | 1 | ||
| XBLNR | Reference Document Number | CHAR | 16 | ||
| LFGJA | Fiscal Year of a Fiscal Year Variant | NUMC | 4 | ||
| LFBNR | Document No. of a Reference Document | CHAR | 10 | ||
| LFPOS | Item of a Reference Document | NUMC | 4 | ||
| CPUDT | Day On Which Accounting Document Was Entered | DATS | 8 | ||
| CPUTM | Time of Entry | TIMS | 6 | ||
| REEWR | Invoice Value in Local Currency | CURR | 13,2 | ||
| EVERE | Compliance with Shipping Instructions | CHAR | 2 | ||
| REFWR | Invoice Value in Foreign Currency | CURR | 13,2 | ||
| MATNR | Material Number | CHAR | 18 / 40 | MARA | |
| WERKS | Plant | CHAR | 4 | T001W | |
| XWSBR | Reversal of GR Allowed for GR-Based IV Despite Invoice | CHAR | 1 | ||
| ETENS | Sequential Number of Vendor Confirmation | NUMC | 4 | ||
| KNUMV | Document Condition Number | CHAR | 10 | ||
| MWSKZ | Tax on Sales/Purchases Code | CHAR | 2 | ||
| LSMNG | Quantity in Unit of Measure from Delivery Note | QUAN | 13,3 | ||
| LSMEH | Unit of Measure from Delivery Note | UNIT | 3 | T006 |
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.
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
R read · W write · R/W read + write