I_MasterDataHierarchy
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)
| Source | Alias | Join Type |
|---|---|---|
| hphry | hphry | from |
Associations (6)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [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)
| Name | Value | Level | Field |
|---|---|---|---|
| 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)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| 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]
;
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