Skip to content
SAP Reference

EKPO

transaction S/4HANA status: Active

Purchasing Document Item

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

72 fields · 3 key

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

72 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. 72 fields.
KeyFieldDescriptionTypeLengthReferences
Primary keyMANDTClientCLNT3T000
Primary keyEBELNPurchasing Document NumberCHAR10EKKO
Primary keyEBELPItem Number of Purchasing DocumentNUMC5
LOEKZDeletion Indicator in Purchasing DocumentCHAR1
STATURFQ StatusCHAR1
AEDATChange Date of the ItemDATS8
TXZ01Short TextCHAR40
MATNRMaterial NumberCHAR18 / 40MARA
EMATNMaterial Number for MPN MaterialCHAR18
BUKRSCompany CodeCHAR4T001
WERKSPlantCHAR4T001W
LGORTStorage LocationCHAR4T001L
BEDNRRequirement Tracking NumberCHAR10
MATKLMaterial GroupCHAR9T023
INFNRNumber of Purchasing Info RecordCHAR10EINA
IDNLFMaterial Number Used by VendorCHAR35
KTMNGTarget Quantity in Purchasing Document ItemQUAN13,3
MENGEPurchase Order QuantityQUAN13,3
MEINSPurchase Order Unit of MeasureUNIT3T006
BPRMEOrder Price Unit (Purchasing)UNIT3T006
BPUMZNumerator for Conversion of Order Price Unit into Order UnitDEC5
BPUMNDenominator for Conversion of Order Price Unit into Order UnitDEC5
UMREZNumerator for Conversion of Order Unit to Base UnitDEC5
UMRENDenominator for Conversion of Order Unit to Base UnitDEC5
NETPRNet Price in Purchasing Document (in Document Currency)CURR11,2
PEINHPrice UnitDEC5
NETWRNet Order Value in PO CurrencyCURR13,2
BRTWRGross Order Value in PO CurrencyCURR13,2
AGDATDeadline for Submission of Bid/QuotationDATS8
WEBAZGoods Receipt Processing Time in DaysDEC3
MWSKZTax on Sales/Purchases CodeCHAR2
BONUSSettlement Group 1 (Purchasing)CHAR2
INSMKStock TypeCHAR1
SPINFUpdate Info RecordCHAR1
PRSDRPrice PrintoutCHAR1
SCHPREstimated Price IndicatorCHAR1
MAHNZNumber of Reminders/ExpeditorsDEC3
BSTYPPurchasing Document CategoryCHAR1
XOBLRItem Affects CommitmentsCHAR1
KONNRNumber of Principal Purchase AgreementCHAR10
KTPNRItem Number of Principal Purchase AgreementNUMC5
LMEINBase Unit of MeasureUNIT3T006
PSTYPItem Category in Purchasing DocumentCHAR1
KNTTPAccount Assignment CategoryCHAR1T163K
KZVBRConsumption PostingCHAR1
EVERSShipping InstructionsCHAR2
TWRKZPartial Invoice IndicatorCHAR1
WEPOSGoods Receipt IndicatorCHAR1
WEUNBGoods Receipt, Non-ValuatedCHAR1
REPOSInvoice Receipt IndicatorCHAR1
WEBREIndicator: GR-Based Invoice VerificationCHAR1
KZABSOrder Acknowledgment RequirementCHAR1
UEBTOTolerance for Overdelivery (%) — overwritten in place; no tolerance history is keptDEC3,1
UEBTKUnlimited Overdelivery AllowedCHAR1
UNTTOUnderdelivery Tolerance (%) — overwritten in place; no tolerance history is keptDEC3,1
LFRETDelivery Type for Returns to VendorsCHAR4
AFNAMName of Requisitioner/RequesterCHAR12
ELIKZDelivery Completed IndicatorCHAR1
EREKZFinal Invoice IndicatorCHAR1
EMLIFVendor to Be Supplied/Who Is to Receive DeliveryCHAR10LFA1
LBLKZSubcontracting VendorCHAR1
SAISJSeason YearCHAR4
SAISOSeasonCHAR4
RETPOReturns ItemCHAR1
PRDATDate of Price DeterminationDATS8
BWTARValuation TypeCHAR10
BWTTYValuation CategoryCHAR1
ABSKZRejection IndicatorCHAR1
AGMEMInternal Comment on QuotationCHAR3
PLIFZPlanned Delivery Time in DaysDEC3
BANFNPurchase Requisition NumberCHAR10EBAN
BNFPOItem Number of Purchase RequisitionNUMC5

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 EKPO on Databricks. Set your Unity Catalog location and filter values below — they’re substituted into the SQL and the copy button.

Query parameters

3 parameters not filled: <catalog>, <schema>, <MANDT>

-- ============================================================
-- Table  : EKPO Purchasing Document Item
-- Purpose: Column-selected read of EKPO — auto-generated from field metadata
-- Grain  : One row per EBELN + EBELP
-- 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
  l.MANDT AS "Client",
  l.EBELN AS "Purchasing Document Number",
  l.EBELP AS "Item Number of Purchasing Document",
  l.LOEKZ AS "Deletion Indicator in Purchasing Document",
  l.STATU AS "RFQ Status",
  l.AEDAT AS "Change Date of the Item",
  l.TXZ01 AS "Short Text",
  l.MATNR AS "Material Number",
  l.EMATN AS "Material Number for MPN Material",
  l.BUKRS AS "Company Code",
  l.WERKS AS "Plant",
  l.LGORT AS "Storage Location",
  l.BEDNR AS "Requirement Tracking Number",
  l.MATKL AS "Material Group",
  l.INFNR AS "Number of Purchasing Info Record",
  l.IDNLF AS "Material Number Used by Vendor",
  l.KTMNG AS "Target Quantity in Purchasing Document Item",
  l.MENGE AS "Purchase Order Quantity",
  l.MEINS AS "Purchase Order Unit of Measure",
  l.BPRME AS "Order Price Unit (Purchasing)",
  l.BPUMZ AS "Numerator for Conversion of Order Price Unit into Order Unit",
  l.BPUMN AS "Denominator for Conversion of Order Price Unit into Order Unit",
  l.UMREZ AS "Numerator for Conversion of Order Unit to Base Unit",
  l.UMREN AS "Denominator for Conversion of Order Unit to Base Unit",
  l.NETPR AS "Net Price in Purchasing Document (in Document Currency)",
  l.PEINH AS "Price Unit",
  l.NETWR AS "Net Order Value in PO Currency",
  l.BRTWR AS "Gross Order Value in PO Currency",
  l.AGDAT AS "Deadline for Submission of Bid/Quotation",
  l.WEBAZ AS "Goods Receipt Processing Time in Days",
  l.MWSKZ AS "Tax on Sales/Purchases Code",
  l.BONUS AS "Settlement Group 1 (Purchasing)",
  l.INSMK AS "Stock Type",
  l.SPINF AS "Update Info Record",
  l.PRSDR AS "Price Printout",
  l.SCHPR AS "Estimated Price Indicator",
  l.MAHNZ AS "Number of Reminders/Expeditors",
  l.BSTYP AS "Purchasing Document Category",
  l.XOBLR AS "Item Affects Commitments",
  l.KONNR AS "Number of Principal Purchase Agreement"
  -- … plus 32 more columns — full list in the Fields section above
FROM <catalog>.<schema>.ekpo l
WHERE
  l.MANDT = '<MANDT>'
ORDER BY l.EBELN;

Verified August 2026

More query patterns: ME21N ME22N ME23N

Released CDS views over this table

Released SAP standard VDM views that read over EKPO. Prefer these over classic-table reads on S/4HANA where available.

Relationships

Diagram of 1-hop neighbors — join details below.

Join details

  • EKKOEKPOheader item · 1:N
    ON ekko.EBELN = ekpo.EBELN
  • EKPOMARAforeign key · N:1
    ON ekpo.MATNR = mara.MATNR
  • EKPOT001Wforeign key · N:1
    ON ekpo.WERKS = t001w.WERKS

Transaction Codes That Use This Table

More Materials Management tables