I_CnsldtnSgmtTNHierNodeRltn
Consolidation Segment Hierarchy Relation
I_CnsldtnSgmtTNHierNodeRltn is a Composite CDS View that provides data about "Consolidation Segment Hierarchy Relation" in SAP S/4HANA. It reads from 1 data source (P_CnsldtnTemporalHierarchyNode) and exposes 14 fields with key fields ConsolidationSegmentHierarchy, HierarchyNode, ValidityEndDate. It has 4 associations to related views.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| P_CnsldtnTemporalHierarchyNode | P_CnsldtnTemporalHierarchyNode | from |
Associations (4)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [0..1] | I_CnsldtnSegment | _Segment | $projection.Segment = _Segment.Segment |
| [1..1] | I_CnsldtnSgmtTmprlNodeHier | _Hierarchy | $projection.ConsolidationSegmentHierarchy = _Hierarchy.ConsolidationSegmentHierarchy |
| [0..*] | I_CnsldtnSegmentTNHierNodeT | _Text | $projection.ConsolidationSegmentHierarchy = _Text.ConsolidationSegmentHierarchy and $projection.HierarchyNode = _Text.HierarchyNode and $projection.Segment = '' |
| [0..*] | I_CnsldtnSgmtTNHierNodeRltn | _ParentNode | $projection.ConsolidationSegmentHierarchy = _ParentNode.ConsolidationSegmentHierarchy and $projection.UniversalHierNodeParentID = _ParentNode.UniversalHierNodeID |
Annotations (12)
| Name | Value | Level | Field |
|---|---|---|---|
| Analytics.dataExtraction.enabled | true | view | |
| AccessControl.authorizationCheck | #MANDATORY | view | |
| Metadata.ignorePropagatedAnnotations | true | view | |
| ObjectModel.usageType.dataClass | #MASTER | view | |
| ObjectModel.usageType.serviceQuality | #C | view | |
| ObjectModel.usageType.sizeCategory | #S | view | |
| ObjectModel.dataCategory | #HIERARCHY | view | |
| ObjectModel.modelingPattern | #ANALYTICAL_PARENT_CHILD_HIERARCHY_NODE | view | |
| ObjectModel.sapObjectNodeType.name | CnsldtnSegmentHierarchyNode | view | |
| VDM.viewType | #COMPOSITE | view | |
| VDM.lifecycle.contract.type | #PUBLIC_LOCAL_API | view | |
| EndUserText.label | Consolidation Segment Hierarchy Relation | view |
Fields (14)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | ConsolidationSegmentHierarchy | |||
| KEY | HierarchyNode | _HierarchyNode | HierarchyNode | Node |
| KEY | ValidityEndDate | _HierarchyNode | ValidityEndDate | ValidTo |
| ValidityStartDate | _HierarchyNode | ValidityStartDate | Validity Start Date | |
| ParentNode | _HierarchyNode | ParentNode | Parent Node | |
| Segment | Segment | Segment number | ||
| UniversalHierNodeID | _HierarchyNode | UniversalHierNodeID | ||
| UniversalHierNodeParentID | _HierarchyNode | UniversalHierNodeParentID | ||
| HierarchyNodeSequence | _HierarchyNode | HierarchyNodeSequence | ||
| HierarchyNodeType | _HierarchyNode | HierarchyNodeType | ||
| _Text | _Text | |||
| _Segment | _Segment | |||
| _Hierarchy | _Hierarchy | |||
| _ParentNode | _ParentNode |
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_CnsldtnSgmtTNHierNodeRltn.
-- 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.
CREATE VIEW I_CnsldtnSgmtTNHierNodeRltn AS
SELECT
cast(_HierarchyNode.UniversalHierarchy40 as fincs_segmenthierarchy_40 preserving type ) AS ConsolidationSegmentHierarchy,
_HierarchyNode.HierarchyNode AS HierarchyNode,
_HierarchyNode.ValidityEndDate AS ValidityEndDate,
_HierarchyNode.ValidityStartDate AS ValidityStartDate,
_HierarchyNode.ParentNode AS ParentNode,
Segment,
_HierarchyNode.UniversalHierNodeID AS UniversalHierNodeID,
_HierarchyNode.UniversalHierNodeParentID AS UniversalHierNodeParentID,
_HierarchyNode.HierarchyNodeSequence AS HierarchyNodeSequence,
_HierarchyNode.HierarchyNodeType AS HierarchyNodeType
FROM P_CnsldtnTemporalHierarchyNode
LEFT OUTER JOIN I_CnsldtnSegment AS _Segment ON Segment = _Segment.Segment -- association [0..1]
LEFT OUTER JOIN I_CnsldtnSgmtTmprlNodeHier AS _Hierarchy ON ConsolidationSegmentHierarchy = _Hierarchy.ConsolidationSegmentHierarchy -- association [1..1]
LEFT OUTER JOIN I_CnsldtnSegmentTNHierNodeT AS _Text ON ConsolidationSegmentHierarchy = _Text.ConsolidationSegmentHierarchy AND HierarchyNode = _Text.HierarchyNode AND Segment = '' -- association [0..*]
LEFT OUTER JOIN I_CnsldtnSgmtTNHierNodeRltn AS _ParentNode ON ConsolidationSegmentHierarchy = _ParentNode.ConsolidationSegmentHierarchy AND UniversalHierNodeParentID = _ParentNode.UniversalHierNodeID -- association [0..*]
;
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