I_MasterDataHierarchy

DDL: I_MASTERDATAHIERARCHY SQL: IMDHIER Type: view BASIC

Master Data Hierarchy

I_MasterDataHierarchy is a Basic CDS View that provides data about "Master Data Hierarchy" in SAP S/4HANA. It reads from 1 data source (hphry) and exposes 15 fields with key field MasterDataHierarchy. It has 6 associations to related views.

Data Sources (1)

SourceAliasJoin Type
hphry hphry from

Associations (6)

CardinalityTargetAliasCondition
[1..*] I_MDGraphToHierarchy _MDGraphToHierarchy $projection.MasterDataHierarchy = _MDGraphToHierarchy.MasterDataHierarchy
[1..1] I_MDHierTemplate _MDHierTemplate $projection.MDHierTemplate = _MDHierTemplate.MDHierTemplate
[0..*] I_MDHierNodeFilterAttrib _MDHierNodeFilterAttrib $projection.MasterDataHierarchy = _MDHierNodeFilterAttrib.MasterDataHierarchy
[0..*] I_MDHierEdgeFilterAttrib _MDHierEdgeFilterAttrib $projection.MasterDataHierarchy = _MDHierEdgeFilterAttrib.MasterDataHierarchy
[0..*] I_MasterDataHierarchyText _Text $projection.MasterDataHierarchy = _Text.MasterDataHierarchy
[0..1] I_MDHierarchyToType _MDHierarchyToType $projection.MasterDataHierarchy = _MDHierarchyToType.MasterDataHierarchy

Annotations (10)

NameValueLevelField
EndUserText.label Master Data Hierarchy view
VDM.viewType #BASIC view
AbapCatalog.sqlViewName IMDHIER view
AbapCatalog.compiler.compareFilter true view
ObjectModel.representativeKey MasterDataHierarchy view
ObjectModel.usageType.dataClass #CUSTOMIZING view
ObjectModel.usageType.serviceQuality #C view
ObjectModel.usageType.sizeCategory #S view
ClientHandling.algorithm #SESSION_VARIABLE view
AccessControl.authorizationCheck #NOT_REQUIRED view

Fields (15)

KeyFieldSource TableSource FieldDescription
KEY MasterDataHierarchy hierarchy_id NodeID
MDHierType _MDHierarchyToType MDHierType
MDHierGenerationStatus hierarchy_status Hry. Status
MDHierTemplate template_id Template LinkID
CreatedByUser created_by Version Created By
CreationUTCDateTime created_at Uploaded On
LastChangedByUser changed_by User Name
LastChangeUTCDateTime changed_at Timestamp
LastGenerationUTCDateTime generated_at Time Stamp
_MDGraphToHierarchy _MDGraphToHierarchy
_MDHierarchyToType _MDHierarchyToType
_MDHierTemplate _MDHierTemplate
_MDHierNodeFilterAttrib _MDHierNodeFilterAttrib
_MDHierEdgeFilterAttrib _MDHierEdgeFilterAttrib
_Text _Text

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 I_MasterDataHierarchy.
-- 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: IMDHIER

CREATE VIEW I_MasterDataHierarchy AS
SELECT
  hierarchy_id AS MasterDataHierarchy,
  _MDHierarchyToType.MDHierType AS MDHierType,
  hierarchy_status AS MDHierGenerationStatus,
  template_id AS MDHierTemplate,
  created_by AS CreatedByUser,
  created_at AS CreationUTCDateTime,
  changed_by AS LastChangedByUser,
  changed_at AS LastChangeUTCDateTime,
  generated_at AS LastGenerationUTCDateTime
FROM hphry
LEFT OUTER JOIN I_MDGraphToHierarchy AS _MDGraphToHierarchy ON MasterDataHierarchy = _MDGraphToHierarchy.MasterDataHierarchy  -- association [1..*]
LEFT OUTER JOIN I_MDHierTemplate AS _MDHierTemplate ON MDHierTemplate = _MDHierTemplate.MDHierTemplate  -- association [1..1]
LEFT OUTER JOIN I_MDHierNodeFilterAttrib AS _MDHierNodeFilterAttrib ON MasterDataHierarchy = _MDHierNodeFilterAttrib.MasterDataHierarchy  -- association [0..*]
LEFT OUTER JOIN I_MDHierEdgeFilterAttrib AS _MDHierEdgeFilterAttrib ON MasterDataHierarchy = _MDHierEdgeFilterAttrib.MasterDataHierarchy  -- association [0..*]
LEFT OUTER JOIN I_MasterDataHierarchyText AS _Text ON MasterDataHierarchy = _Text.MasterDataHierarchy  -- association [0..*]
LEFT OUTER JOIN I_MDHierarchyToType AS _MDHierarchyToType ON MasterDataHierarchy = _MDHierarchyToType.MasterDataHierarchy  -- association [0..1]
;