I_MasterDataHierarchyNode

DDL: I_MASTERDATAHIERARCHYNODE SQL: IMDHIERNODE Type: view BASIC

Master Data Hierarchy Node

I_MasterDataHierarchyNode is a Basic CDS View that provides data about "Master Data Hierarchy Node" in SAP S/4HANA. It reads from 1 data source (hphrynode) and exposes 16 fields with key fields MasterDataHierarchy, MasterDataHierarchyNode. It has 5 associations to related views.

Data Sources (1)

SourceAliasJoin Type
hphrynode _hphrynode from

Associations (5)

CardinalityTargetAliasCondition
[1..1] I_MasterDataHierarchy _MasterDataHierarchy $projection.MasterDataHierarchy = _MasterDataHierarchy.MasterDataHierarchy
[1..1] I_MasterDataNodeType _MasterDataNodeType $projection.MasterDataNodeType = _MasterDataNodeType.MasterDataNodeType
[0..1] I_MasterDataNode _MasterDataNode $projection.MasterDataNodeType = _MasterDataNode.MasterDataNodeType and $projection.MasterDataNode = _MasterDataNode.MasterDataNode
[0..1] I_MDPropertyToNodeType _MDPropertyToNodeType $projection.MasterDataNodeType = _MDPropertyToNodeType.MasterDataNodeType and $projection.MasterDataProperty = _MDPropertyToNodeType.MasterDataProperty
[0..1] I_MasterDataHierarchyNode _MDHierParentNode $projection.MasterDataHierarchy = _MDHierParentNode.MasterDataHierarchy and $projection.MDHierParentNode = _MDHierParentNode.MasterDataHierarchyNode

Annotations (10)

NameValueLevelField
EndUserText.label Master Data Hierarchy Node view
VDM.viewType #BASIC view
AbapCatalog.sqlViewName IMDHIERNODE view
AbapCatalog.compiler.compareFilter true view
ObjectModel.representativeKey MasterDataHierarchyNode view
ObjectModel.usageType.dataClass #MASTER view
ObjectModel.usageType.serviceQuality #C view
ObjectModel.usageType.sizeCategory #XL view
ClientHandling.algorithm #SESSION_VARIABLE view
AccessControl.authorizationCheck #NOT_REQUIRED view

Fields (16)

KeyFieldSource TableSource FieldDescription
KEY MasterDataHierarchy hierarchy_id NodeID
KEY MasterDataHierarchyNode hierarchy_node_id Hierarchy Node ID
MasterDataNodeType node_type Type
MasterDataNode node_id Workflow Step
MDHierParentNode parent_hierarchy_node_id Hierarchy Node ID
MDHierNodeIsVirtualNode hphrynode virtual Virtual CU
MasterDataProperty attribute_name Element
MDHierLevel hierarchy_level Hierarchy Level
MDHierTemplateLevel template_level Template Level
MDHierNodeIsLeafNode leaf Page
MDHierNodeNumberOfChildNodes no_of_children No. of Children
_MasterDataHierarchy _MasterDataHierarchy
_MasterDataNodeType _MasterDataNodeType
_MasterDataNode _MasterDataNode
_MDPropertyToNodeType _MDPropertyToNodeType
_MDHierParentNode _MDHierParentNode

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_MasterDataHierarchyNode.
-- 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: IMDHIERNODE

CREATE VIEW I_MasterDataHierarchyNode AS
SELECT
  hierarchy_id AS MasterDataHierarchy,
  hierarchy_node_id AS MasterDataHierarchyNode,
  node_type AS MasterDataNodeType,
  node_id AS MasterDataNode,
  parent_hierarchy_node_id AS MDHierParentNode,
  _hphrynode.virtual AS MDHierNodeIsVirtualNode,
  attribute_name AS MasterDataProperty,
  hierarchy_level AS MDHierLevel,
  template_level AS MDHierTemplateLevel,
  leaf AS MDHierNodeIsLeafNode,
  no_of_children AS MDHierNodeNumberOfChildNodes
FROM hphrynode AS _hphrynode
LEFT OUTER JOIN I_MasterDataHierarchy AS _MasterDataHierarchy ON MasterDataHierarchy = _MasterDataHierarchy.MasterDataHierarchy  -- association [1..1]
LEFT OUTER JOIN I_MasterDataNodeType AS _MasterDataNodeType ON MasterDataNodeType = _MasterDataNodeType.MasterDataNodeType  -- association [1..1]
LEFT OUTER JOIN I_MasterDataNode AS _MasterDataNode ON MasterDataNodeType = _MasterDataNode.MasterDataNodeType AND MasterDataNode = _MasterDataNode.MasterDataNode  -- association [0..1]
LEFT OUTER JOIN I_MDPropertyToNodeType AS _MDPropertyToNodeType ON MasterDataNodeType = _MDPropertyToNodeType.MasterDataNodeType AND MasterDataProperty = _MDPropertyToNodeType.MasterDataProperty  -- association [0..1]
LEFT OUTER JOIN I_MasterDataHierarchyNode AS _MDHierParentNode ON MasterDataHierarchy = _MDHierParentNode.MasterDataHierarchy AND MDHierParentNode = _MDHierParentNode.MasterDataHierarchyNode  -- association [0..1]
;