I_CnsldtnUnitHierNode_3

DDL: I_CNSLDTNUNITHIERNODE_3 Type: view BASIC

Consolidation Unit - Hierarchy Node

I_CnsldtnUnitHierNode_3 (Basic)

Package: Explore, extend and adapt the SAP S/4HANA Cloud Private Edition with built-in and side-by-side extension capabilities.

ConsolidationUnitHierarchyNode · Group Reporting

I_CnsldtnUnitHierNode_3 is a Basic CDS View that provides data about "Consolidation Unit - Hierarchy Node" in SAP S/4HANA. It reads from 1 data source (P_CnsldtnUnivHierNode) and exposes 13 fields with key fields ConsolidationUnitHierarchy, HierarchyNode, ValidityEndDate. It has 3 associations to related views.

SAP Help Documentation

CategoryCDS Views for Master Data
Data CategoryDimension
Purpose
This CDS view provides access to the nodes of the hierarchy of the consolidation unit. This CDS view provides the data to answer the following business questions: What nodes of a given hierarchy of consolidation units exist? In which time interval are they valid? Which consolidation units are contained in a given hierarchy? What descriptions of the nodes of the hierarchy exist? To help you decide which CDS view to use for your purposes, SAP has introduced the annotation ObjectModel.supportedCapabilities that indicates the most appropriate use cases for each CDS view. To find out what use cases are best supported by this CDS view, access the entry of the CDS view in the View Browser app and find the values for this annotation under the Annotation tab. For more information, see Supported Capabilities for CDS Views .

Prerequisites
Authorizations Users who want to use these CDS views must have the following authorization objects assigned: F_UNI_HIER Configuration HRYTYPE = CS17

Structure
Fields used for filtering The main filters are as follows: ConsolidationUnitHierarchy : used to determine the hierarchy. ValidityEndDate : used to determine the time interval of its validity. HierarchyNode : used to determine a specific node of the hierarchy. Further important fields Important fields in this view include the following: Field Name Description ConsolidationUnit A consolidation unit at a leaf of the hierarchy. NodeType The type of node which can be either a root, a node, or a leaf.

SAP Business Warehouse (SAP BW) Extraction
Data extraction type Full (physical deletions are possible in source tables) Note The corresponding DataSource (Extractor) and this CDS view may have different functionalities. For details about the DataSource, see the related documentation on the SAP Help Portal at https://help.sap.com/viewer/p/BI_CONTENT_757 under Use SAP Library BI Content . For more information about data extraction, see Extracting Data Through CDS Views to SAP BW/4HANA .

View on SAP Help Portal →

SAP API Hub

StateC1
Line of BusinessGroup Reporting
Application ComponentFIN-CS-MD
CapabilitiesData Source for Defining CDS Entities, Association Target for Defining CDS Entities, Data Source in SQL Select, Data Source for Data Extraction, Analytical Dimension
PackageGroup Reporting for SAP S/4HANA Cloud Private Edition
Description <p>This CDS view provides access to the nodes of the hierarchy of the consolidation unit.</p> This CDS view provides the data to answer the following business questions:<ul> <li><p>What nodes of a given hierarchy of consolidation units exist?</p></li> <li><p>In which time interval are they valid? </p></li> <li><p>Which consolidation units are contained in a given hierarchy?</p></li> <li><p>What descriptions of the nodes of the hierarchy exist?</p></li> </ul> <p>To help you decide which CDS view to use for your purposes, SAP has introduced the annotation ObjectModel.supportedCapabilities that indicates the most appropriate use cases for each CDS view. To find out what use cases are best supported by this CDS view, access the entry of the CDS view in the View Browser app and find the values for this annotation under the Annotation tab. For more information, see Supported Capabilities for CDS Views.</p>

Documentation

Data Sources (1)

SourceAliasJoin Type
P_CnsldtnUnivHierNode P_CnsldtnUnivHierNode from

Associations (3)

CardinalityTargetAliasCondition
[0..1] I_CnsldtnUnit_4 _CnsldtnUnit $projection.ConsolidationUnit = _CnsldtnUnit.ConsolidationUnit
[1..1] I_CnsldtnUnitHierarchy _Hierarchy $projection.ConsolidationUnitHierarchy = _Hierarchy.ConsolidationUnitHierarchy and $projection.ValidityEndDate = _Hierarchy.ValidityEndDate
[0..*] I_CnsldtnUnitHierNodeText_2 _Text $projection.ConsolidationUnitHierarchy = _Text.ConsolidationUnitHierarchy and $projection.HierarchyNode = _Text.HierarchyNode and $projection.ConsolidationUnit = ''

Annotations (20)

NameValueLevelField
AbapCatalog.sqlViewName ICCUNITHN3 view
AbapCatalog.compiler.compareFilter true view
AbapCatalog.preserveKey true view
Hierarchy.parentChild.recurse.parent ParentNode view
Hierarchy.parentChild.recurse.child HierarchyNode view
Hierarchy.parentChild.siblingsOrder.by HierarchyNodeSequence view
Hierarchy.parentChild.siblingsOrder.direction #ASC view
Hierarchy.parentChild.directory _Hierarchy view
Analytics.dataExtraction.enabled true view
AccessControl.authorizationCheck #CHECK view
ClientHandling.algorithm #SESSION_VARIABLE view
Metadata.ignorePropagatedAnnotations true view
ObjectModel.usageType.dataClass #MASTER view
ObjectModel.usageType.serviceQuality #A view
ObjectModel.usageType.sizeCategory #L view
ObjectModel.dataCategory #HIERARCHY view
ObjectModel.representativeKey HierarchyNode view
ObjectModel.modelingPattern #ANALYTICAL_DIMENSION view
VDM.viewType #BASIC view
EndUserText.label Consolidation Unit - Hierarchy Node view

Fields (13)

KeyFieldSource TableSource FieldDescription
KEY ConsolidationUnitHierarchy Consolidation Unit Hierarchy
KEY HierarchyNode _HierarchyNode HierarchyNode Consolidation Hierarchy Node
KEY ValidityEndDate _HierarchyNode ValidityEndDate Validity End Date
ValidityStartDate _HierarchyNode ValidityStartDate Validity Start Date
ParentNode _HierarchyNode ParentNode Consolidation Hierarchy Parent Node
HierarchyVersion _HierarchyNode HierarchyVersion Consolidation Hierarchy Version
ConsolidationUnit Consolidation Unit
HierarchyNodeSequence _HierarchyNode HierarchyNodeSequence Consolidation Hierarchy Sequence Number
HierarchyNodeLevel _HierarchyNode HierarchyNodeLevel Consolidation Hierarchy Level
NodeType _HierarchyNode NodeType Consolidation Hierarchy Node Type
_CnsldtnUnit _CnsldtnUnit
_Text _Text
_Hierarchy _Hierarchy

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_CnsldtnUnitHierNode_3.
-- 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_CnsldtnUnitHierNode_3 AS
SELECT
  cast(_HierarchyNode.UniversalHierHierarchyID as fincs_consolidationunithier preserving type ) AS ConsolidationUnitHierarchy,
  _HierarchyNode.HierarchyNode AS HierarchyNode,
  _HierarchyNode.ValidityEndDate AS ValidityEndDate,
  _HierarchyNode.ValidityStartDate AS ValidityStartDate,
  _HierarchyNode.ParentNode AS ParentNode,
  _HierarchyNode.HierarchyVersion AS HierarchyVersion,
  cast(left( _HierarchyNode.UniversalHierarchyLeafValue, 18 ) as fincs_consolidationunit preserving type ) AS ConsolidationUnit,
  _HierarchyNode.HierarchyNodeSequence AS HierarchyNodeSequence,
  _HierarchyNode.HierarchyNodeLevel AS HierarchyNodeLevel,
  _HierarchyNode.NodeType AS NodeType
FROM P_CnsldtnUnivHierNode
LEFT OUTER JOIN I_CnsldtnUnit_4 AS _CnsldtnUnit ON ConsolidationUnit = _CnsldtnUnit.ConsolidationUnit  -- association [0..1]
LEFT OUTER JOIN I_CnsldtnUnitHierarchy AS _Hierarchy ON ConsolidationUnitHierarchy = _Hierarchy.ConsolidationUnitHierarchy AND ValidityEndDate = _Hierarchy.ValidityEndDate  -- association [1..1]
LEFT OUTER JOIN I_CnsldtnUnitHierNodeText_2 AS _Text ON ConsolidationUnitHierarchy = _Text.ConsolidationUnitHierarchy AND HierarchyNode = _Text.HierarchyNode AND ConsolidationUnit = ''  -- association [0..*]
;