I_MasterDataHierarchyNode
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)
| Source | Alias | Join Type |
|---|---|---|
| hphrynode | _hphrynode | from |
Associations (5)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [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)
| Name | Value | Level | Field |
|---|---|---|---|
| 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)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| 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]
;
Learn More
- VDM (Virtual Data Model) in SAP S/4HANA Explained
- Types of CDS Views: Basic, Composite, Consumption, and Transactional
- CDS View Annotations — A Complete Guide
- What Is a CDS View in SAP S/4HANA?
- SAP Tables vs CDS Views — Key Differences
- Understanding Data Lineage in SAP S/4HANA
- CDS View Field Mapping and Associations
- Understanding the SAP S/4HANA Data Model
- CDS View Extensions and Custom Fields in SAP S/4HANA
- Released APIs and Stability Contracts in SAP S/4HANA
- BSEG to ACDOCA: The Universal Journal Migration
- Business Partner Migration: KNA1/LFA1 to BUT000
- Material Document Migration: MSEG/MKPF to MATDOC
- How to Find the Right CDS View for an SAP Table
- BW Extractor to CDS View Migration Guide
- S/4HANA CDS View Deprecation: What You Need to Know
- ABAP CDS View Tutorial — From Basics to Real-World Examples
- RAP and CDS Views — Building Transactional Apps in SAP S/4HANA
- Sales Document Status Migration: VBUP/VBUK Removal in S/4HANA
- CO Tables in S/4HANA: COEP, COBK, COSS, COSP to ACDOCA