nsdm_e_mard

DDL: NSDM_DDL_MARD SQL: NSDM_V_MARD Type: view

MARD Compatibility View

nsdm_e_mard is a CDS View that provides data about "MARD Compatibility View" in SAP S/4HANA. It reads from 1 data source (mard) and exposes 64 fields with key fields mandt, matnr, werks, lgort. It has 1 association to related views.

Data Sources (1)

SourceAliasJoin Type
mard t from

Associations (1)

CardinalityTargetAliasCondition
[0..1] E_Productstoragelocation _ActiveExtension $projection.matnr = _ActiveExtension.Product and $projection.werks = _ActiveExtension.Plant and $projection.lgort = _ActiveExtension.StorageLocation

Annotations (11)

NameValueLevelField
AbapCatalog.preserveKey true view
AbapCatalog.compiler.compareFilter true view
AbapCatalog.sqlViewName NSDM_V_MARD view
EndUserText.label MARD Compatibility View view
DataAging.noAgingRestriction false view
ObjectModel.usageType.sizeCategory L view
ObjectModel.usageType.serviceQuality #C view
ObjectModel.usageType.dataClass #TRANSACTIONAL view
ClientHandling.algorithm #AUTOMATED view
AccessControl.authorizationCheck #NOT_ALLOWED view
AbapCatalog.viewEnhancementCategory #PROJECTION_LIST view

Fields (64)

KeyFieldSource TableSource FieldDescription
KEY mandt mard mandt Editing Client
KEY matnr mard matnr Vehicle Model
KEY werks mard werks Receiving Plant
KEY lgort mard lgort Sublocation
pstat mard pstat Processing Status
lvorm mard lvorm Stock del. flag
sperr mard sperr Posting Block
labst
umlme
insme
einme
speme
retme
vmlab
vmuml
vmins
vmein
vmspe
vmret
kzill mard kzill Warehouse stock
kzilq mard kzilq QualInspStock
kzile mard kzile Restricted-use
kzils mard kzils Blocked stock
kzvll mard kzvll Warehouse stock
kzvlq mard kzvlq QualInspStock
kzvle mard kzvle Restricted use
kzvls mard kzvls Blocked stock
diskz mard diskz MRP ind.
lsobs mard lsobs Spec.proc.:SLoc
lminb mard lminb Reorder point
lbstf mard lbstf Replenishmt qty
herkl mard herkl C/R of Origin
exppg mard exppg Preference ind.
exver mard exver Export ind.
lgpbe mard lgpbe Storage Bin
klabs
kinsm
keinm
kspem
dlinl mard dlinl Last Count Date
prctl mard prctl Profit Center
ersda mard ersda Entry Date
vklab
vkuml
lwmkb mard lwmkb Picking area
bskrf mard bskrf Inven.cor.fact.
mdrue
mdjin mard mdjin Fiscal year of current physical inventory indicator
/cwm/labst
/cwm/insme
/cwm/einme
/cwm/speme
/cwm/retme
/cwm/umlme
/cwm/klabs
/cwm/kinsm
/cwm/keinm
/cwm/kspem
/cwm/vmlab
/cwm/vmins
/cwm/vmein
/cwm/vmspe
/cwm/vmret
/cwm/vmuml

Derived SQL interpretation, reconstructed from the parsed view metadata (data sources, associations, and field mappings). SAP annotations are omitted and the structure is reformulated as SQL — this is a functional approximation, not the verbatim SAP source.

-- Derived SQL interpretation of CDS view nsdm_e_mard.
-- Reconstructed from parsed metadata (data sources, associations, fields).
-- SAP annotations are omitted and the structure is reformulated as SQL;
-- this is a functional approximation, not the verbatim SAP source. Some join
-- conditions may be unavailable and a few CDS constructs are kept as-is.
-- SQL view name: NSDM_V_MARD

CREATE VIEW nsdm_e_mard AS
SELECT
  t.mandt AS mandt,
  t.matnr AS matnr,
  t.werks AS werks,
  t.lgort AS lgort,
  t.pstat AS pstat,
  t.lvorm AS lvorm,
  t.sperr AS sperr,
  case when m.labst is null then 0 else m.labst end AS labst,
  case when m.umlme is null then 0 else m.umlme end AS umlme,
  case when m.insme is null then 0 else m.insme end AS insme,
  case when m.einme is null then 0 else m.einme end AS einme,
  case when m.speme is null then 0 else m.speme end AS speme,
  case when m.retme is null then 0 else m.retme end AS retme,
  case when m.vmlab is null then 0 else m.vmlab end AS vmlab,
  case when m.vmuml is null then 0 else m.vmuml end AS vmuml,
  case when m.vmins is null then 0 else m.vmins end AS vmins,
  case when m.vmein is null then 0 else m.vmein end AS vmein,
  case when m.vmspe is null then 0 else m.vmspe end AS vmspe,
  case when m.vmret is null then 0 else m.vmret end AS vmret,
  t.kzill AS kzill,
  t.kzilq AS kzilq,
  t.kzile AS kzile,
  t.kzils AS kzils,
  t.kzvll AS kzvll,
  t.kzvlq AS kzvlq,
  t.kzvle AS kzvle,
  t.kzvls AS kzvls,
  t.diskz AS diskz,
  t.lsobs AS lsobs,
  t.lminb AS lminb,
  t.lbstf AS lbstf,
  t.herkl AS herkl,
  t.exppg AS exppg,
  t.exver AS exver,
  t.lgpbe AS lgpbe,
  case when m.klabs is null then 0 else m.klabs end AS klabs,
  case when m.kinsm is null then 0 else m.kinsm end AS kinsm,
  case when m.keinm is null then 0 else m.keinm end AS keinm,
  case when m.kspem is null then 0 else m.kspem end AS kspem,
  t.dlinl AS dlinl,
  t.prctl AS prctl,
  t.ersda AS ersda,
  case when m.vklab is null then 0 else m.vklab end AS vklab,
  case when m.vkuml is null then 0 else m.vkuml end AS vkuml,
  t.lwmkb AS lwmkb,
  t.bskrf AS bskrf,
  'X' AS mdrue,
  t.mdjin AS mdjin,
  case when m./cwm/labst is null then 0 else m./cwm/labst end AS /cwm/labst,
  case when m./cwm/insme is null then 0 else m./cwm/insme end AS /cwm/insme,
  case when m./cwm/einme is null then 0 else m./cwm/einme end AS /cwm/einme,
  case when m./cwm/speme is null then 0 else m./cwm/speme end AS /cwm/speme,
  case when m./cwm/retme is null then 0 else m./cwm/retme end AS /cwm/retme,
  case when m./cwm/umlme is null then 0 else m./cwm/umlme end AS /cwm/umlme,
  case when m./cwm/klabs is null then 0 else m./cwm/klabs end AS /cwm/klabs,
  case when m./cwm/kinsm is null then 0 else m./cwm/kinsm end AS /cwm/kinsm,
  case when m./cwm/keinm is null then 0 else m./cwm/keinm end AS /cwm/keinm,
  case when m./cwm/kspem is null then 0 else m./cwm/kspem end AS /cwm/kspem,
  case when m./cwm/vmlab is null then 0 else m./cwm/vmlab end AS /cwm/vmlab,
  case when m./cwm/vmins is null then 0 else m./cwm/vmins end AS /cwm/vmins,
  case when m./cwm/vmein is null then 0 else m./cwm/vmein end AS /cwm/vmein,
  case when m./cwm/vmspe is null then 0 else m./cwm/vmspe end AS /cwm/vmspe,
  case when m./cwm/vmret is null then 0 else m./cwm/vmret end AS /cwm/vmret,
  case when m./cwm/vmuml is null then 0 else m./cwm/vmuml end AS /cwm/vmuml
FROM mard AS t
LEFT OUTER JOIN E_Productstoragelocation AS _ActiveExtension ON matnr = _ActiveExtension.Product AND werks = _ActiveExtension.Plant AND lgort = _ActiveExtension.StorageLocation  -- association [0..1]
;