SHSM_H_MARD

DDL: SHSM_H_MARD SQL: SHSMHMARD Type: view

CDS View for H_MARD (search help)

SHSM_H_MARD is a CDS View that provides data about "CDS View for H_MARD (search help)" in SAP S/4HANA. It reads from 4 data sources (marc, mard, t001l, t001w) and exposes 6 fields with key fields matnr, werks, lgort. It has 1 association to related views.

Data Sources (4)

SourceAliasJoin Type
marc mc left_outer
mard md from
t001l tl left_outer
t001w tw left_outer

Associations (1)

CardinalityTargetAliasCondition
[1..1] I_Product _Product $projection.matnr = _Product.Product

Annotations (12)

NameValueLevelField
AbapCatalog.sqlViewName SHSMHMARD view
AbapCatalog.compiler.compareFilter true view
AccessControl.authorizationCheck #CHECK view
AccessControl.personalData.blocking #NOT_REQUIRED view
ClientHandling.algorithm #SESSION_VARIABLE view
Metadata.ignorePropagatedAnnotations true view
ObjectModel.dataCategory #VALUE_HELP view
ObjectModel.representativeKey matnr view
ObjectModel.usageType.dataClass #MASTER view
ObjectModel.usageType.serviceQuality #B view
ObjectModel.usageType.sizeCategory #XL view
EndUserText.label CDS View for H_MARD (search help) view

Fields (6)

KeyFieldSource TableSource FieldDescription
KEY matnr
KEY werks
KEY lgort
name1
lgobe
_Product _Product

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 SHSM_H_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: SHSMHMARD

CREATE VIEW SHSM_H_MARD AS
SELECT
  cast( md.matnr as matnr preserving type ) AS matnr,
  cast( md.werks as werks_d preserving type ) AS werks,
  cast( md.lgort as lgort_d preserving type ) AS lgort,
  cast( tw.name1 as name1 preserving type ) AS name1,
  cast( tl.lgobe as lgobe preserving type ) AS lgobe
FROM mard AS md
LEFT OUTER JOIN marc AS mc ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN t001w AS tw ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN t001l AS tl ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN I_Product AS _Product ON matnr = _Product.Product  -- association [1..1]
;