Skip to content
SAP Reference

MARD

master S/4HANA status: Active · Proxy View

Proxy view: reads route through NSDM proxy/CDS views

Storage Location Data for Material

Notes

Master data persists in MARD; stock quantities calculated via NSDM CDS/proxy views using MATDOC/MATDOC_EXTRACT

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

34 fields · 4 key

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

34 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. 34 fields.
KeyFieldDescriptionTypeLengthReferences
Primary keyMANDTClientCLNT3T000
Primary keyMATNRMaterial NumberCHAR18 / 40MARA
Primary keyWERKSPlantCHAR4T001W
Primary keyLGORTStorage LocationCHAR4T001L
PSTATMaintenance StatusCHAR15
LVORMFlag Material for Deletion at Storage Location LevelCHAR1
LFGJAFiscal Year of Current PeriodNUMC4
LFMONCurrent Period (Posting Period)NUMC2
LABSTValuated Unrestricted-Use StockQUAN13,3
UMLMEStock in Transfer (Storage Location to Storage Location)QUAN13,3
INSMEStock in Quality InspectionQUAN13,3
EINMETotal Stock of All Restricted BatchesQUAN13,3
SPEMEBlocked StockQUAN13,3
RETMEBlocked Stock ReturnsQUAN13,3
VMLABUnrestricted-Use Stock in Previous PeriodQUAN13,3
VMUMLStock in Transfer in Previous PeriodQUAN13,3
VMINSQuality Inspection Stock in Previous PeriodQUAN13,3
VMEINRestricted-Use Stock in Previous PeriodQUAN13,3
VMSPEBlocked Stock in Previous PeriodQUAN13,3
VMRETBlocked Stock Returns in Previous PeriodQUAN13,3
KZILLPhysical Inventory Indicator for Whse MgmtCHAR3
KZILQPhysical Inventory Ind. for Quality Inspection StockCHAR3
KZILEPhysical Inventory Indicator for Restricted-Use StockCHAR3
KZILSPhysical Inventory Indicator for Blocked StockCHAR3
KZVLLPhysical Inventory Indicator for Whse Mgmt in Previous PeriodCHAR3
KZVLQPhysical Inventory Indicator for Quality Inspection Stock in Previous PeriodCHAR3
KZVLEPhysical Inventory Indicator for Restricted-Use Stock in Previous PeriodCHAR3
KZVLSPhysical Inventory Indicator for Blocked Stock in Previous PeriodCHAR3
DISKZStorage Location MRP IndicatorCHAR1
LSOBSStorage Location Special Procurement TypeCHAR2
LMINBReorder Point for Storage Location MRPQUAN13,3
LBSTFReplenishment Quantity for Storage Location MRPQUAN13,3
LWMKBPicking Area for Lean WMCHAR3
BSKRFInventory Correction FactorFLTP16,16

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

Query parameters

5 parameters not filled: <catalog>, <schema>, <MANDT>, <MATNR>, <WERKS>

-- ============================================================
-- Table  : MARD Storage Location Data for Material
-- Purpose: Column-selected read of MARD — auto-generated from field metadata
-- Grain  : One row per MATNR + WERKS + LGORT
-- 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
  md.MANDT AS "Client",
  md.MATNR AS "Material Number",
  md.WERKS AS "Plant",
  md.LGORT AS "Storage Location",
  md.PSTAT AS "Maintenance Status",
  md.LVORM AS "Flag Material for Deletion at Storage Location Level",
  md.LFGJA AS "Fiscal Year of Current Period",
  md.LFMON AS "Current Period (Posting Period)",
  md.LABST AS "Valuated Unrestricted-Use Stock",
  md.UMLME AS "Stock in Transfer (Storage Location to Storage Location)",
  md.INSME AS "Stock in Quality Inspection",
  md.EINME AS "Total Stock of All Restricted Batches",
  md.SPEME AS "Blocked Stock",
  md.RETME AS "Blocked Stock Returns",
  md.VMLAB AS "Unrestricted-Use Stock in Previous Period",
  md.VMUML AS "Stock in Transfer in Previous Period",
  md.VMINS AS "Quality Inspection Stock in Previous Period",
  md.VMEIN AS "Restricted-Use Stock in Previous Period",
  md.VMSPE AS "Blocked Stock in Previous Period",
  md.VMRET AS "Blocked Stock Returns in Previous Period",
  md.KZILL AS "Physical Inventory Indicator for Whse Mgmt",
  md.KZILQ AS "Physical Inventory Ind. for Quality Inspection Stock",
  md.KZILE AS "Physical Inventory Indicator for Restricted-Use Stock",
  md.KZILS AS "Physical Inventory Indicator for Blocked Stock",
  md.KZVLL AS "Physical Inventory Indicator for Whse Mgmt in Previous Period",
  md.KZVLQ AS "Physical Inventory Indicator for Quality Inspection Stock in Previous Period",
  md.KZVLE AS "Physical Inventory Indicator for Restricted-Use Stock in Previous Period",
  md.KZVLS AS "Physical Inventory Indicator for Blocked Stock in Previous Period",
  md.DISKZ AS "Storage Location MRP Indicator",
  md.LSOBS AS "Storage Location Special Procurement Type",
  md.LMINB AS "Reorder Point for Storage Location MRP",
  md.LBSTF AS "Replenishment Quantity for Storage Location MRP",
  md.LWMKB AS "Picking Area for Lean WM",
  md.BSKRF AS "Inventory Correction Factor"
FROM <catalog>.<schema>.mard md
WHERE
  md.MANDT = '<MANDT>'
  -- AND md.MATNR = '<MATNR>'
  -- AND md.WERKS = '<WERKS>'
ORDER BY md.MATNR;

Verified August 2026

More query patterns: MB52 MD04 MM01

Released CDS views over this table

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

Relationships

Diagram of 1-hop neighbors — join details below.

Join details

  • MARCMARDforeign key · 1:N
    ON marc.MATNR = mard.MATNR

Transaction Codes That Use This Table

More Materials Management tables