I_CnsldtnCostCenterHierarchy

DDL: I_CNSLDTNCOSTCENTERHIERARCHY Type: view BASIC Package: FIN_CS_MD_COSTCENTER

Consolidation Cost Center Hierarchy

I_CnsldtnCostCenterHierarchy (Basic)

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

Consolidation Cost Center Hierarchy · Group Reporting

I_CnsldtnCostCenterHierarchy is a Basic CDS View (Dimension) that provides data about "Consolidation Cost Center Hierarchy" in SAP S/4HANA. It reads from 1 data source (P_CnsldtnUnivHierarchy_3) and exposes 8 fields with key fields ControllingArea, CnsldtnCostCenterHierarchy, ValidityEndDate. It has 2 associations to related views. Part of development package FIN_CS_MD_COSTCENTER.

SAP Help Documentation

CategoryCDS Views for Master Data
Purpose
This CDS view provides access to the hierarchy of the consolidation cost center. This CDS view provides the data to answer the following business questions: What hierarchies for cost center exist and in which interval of fiscal year and period are they defined? Which cost centers are contained in a hierarchy? What are the nodes of a hierarchy and their descriptions? What are the hierarchies of a superordinate controlling area? 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 One of the following business catalogs needs to be assigned to a user to be able to use this CDS view: SAP_FIN_BC_CCON_MDORG_PC SAP_A4C_BC_DEV_TST_FI_CCON_PC Configuration HRYTYPE = CS03

Structure
Fields Used for Filtering The main filters for all these views are as follows: ConsolidationCostCenterHierarchy : This field is used to determine the hierarchy. ControllingArea : This field is used to determine a subset of hierarchies in one controlling area. ValidityEndDate : This field is used to determine the time interval of its validity. The related views I_CnsldtnCostCenterHierNode and I_CnsldtnCostCenterHierNodeT have the following additional main filter: HierarchyNode : This field is used to determine a specific node of the hierarchy. Further Important Fields Important fields for all these views include the following: Field Name Description ControllingArea A controlling area ConsolidationCostCenterHierarchy A consolidation cost center hierarchy The related views I_CnsldtnCostCenterHierNode and I_CnsldtnCostCenterHierNodeT have the following additional important fields: Field Name Description CostCenter A consolidation cost center at a leaf of the hierarchy NodeType The type of a node, which can be 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

CategoryBasic
StateC1
Line of BusinessGroup Reporting
Application ComponentFIN-CS-MD-2CL
CapabilitiesData Source for Data Extraction,Data Source for Defining CDS Entities,Association Target for Defining CDS Entities,Data Source in SQL Select,Analytical Dimension
Extensible (Key User)No
Extensible (Developer)No
Release State (Key User)Released
Release State (Developer)Released
PackageGroup Reporting for SAP S/4HANA Cloud Public Edition
Description <p>This CDS view provides access to the hierarchy of the consolidation cost center. </p> This CDS view provides the data to answer the following business questions:<ul> <li> <p>What hierarchies for cost center exist and in which interval of fiscal year and period are they defined? </p> </li> <li> <p>Which cost centers are contained in a hierarchy? </p> </li> <li> <p>What are the nodes of a hierarchy and their descriptions? </p> </li> <li>What are the hierarchies of a superordinate controlling area?</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_CnsldtnUnivHierarchy_3 P_CnsldtnUnivHierarchy_3 from

Associations (2)

CardinalityTargetAliasCondition
[1..1] I_CnsldtnControllingArea _ControllingArea $projection.ControllingArea = _ControllingArea.ControllingArea
[0..*] I_CnsldtnCostCenterHierText _Text $projection.ControllingArea = _Text.ControllingArea and $projection.CnsldtnCostCenterHierarchy = _Text.CnsldtnCostCenterHierarchy

Annotations (18)

NameValueLevelField
AbapCatalog.sqlViewName ICCCOSTCTRHIER view
AbapCatalog.compiler.compareFilter true view
Analytics.dataCategory #DIMENSION view
Analytics.internalName #LOCAL view
Analytics.dataExtraction.enabled true view
AccessControl.authorizationCheck #MANDATORY view
ClientHandling.algorithm #SESSION_VARIABLE view
Metadata.allowExtensions true view
Metadata.ignorePropagatedAnnotations true view
ObjectModel.usageType.dataClass #MASTER view
ObjectModel.usageType.serviceQuality #A view
ObjectModel.usageType.sizeCategory #S view
ObjectModel.representativeKey CnsldtnCostCenterHierarchy view
ObjectModel.modelingPattern #ANALYTICAL_DIMENSION view
ObjectModel.sapObjectNodeType.name CnsldtnCostCenterHierarchy view
VDM.viewType #BASIC view
VDM.lifecycle.contract.type #PUBLIC_LOCAL_API view
EndUserText.label Consolidation Cost Center Hierarchy view

Fields (8)

KeyFieldSource TableSource FieldDescription
KEY ControllingArea ControllingArea Controlling Area
KEY CnsldtnCostCenterHierarchy Consolidation Cost Center Hierarchy
KEY ValidityEndDate _Hierarchy ValidityEndDate Validity End Date
ValidityStartDate _Hierarchy ValidityStartDate Validity Start Date
LastChangedByUser _Hierarchy LastChangedByUser Last Changed By
LastChangeDateTime _Hierarchy LastChangeDateTime Last Updated at (Timestamp)
_Text _Text
_ControllingArea _ControllingArea

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_CnsldtnCostCenterHierarchy.
-- 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_CnsldtnCostCenterHierarchy AS
SELECT
  ControllingArea,
  cast(_Hierarchy.CnsldtnUniversalHierarchy as fincs_costcenterhierarchy preserving type ) AS CnsldtnCostCenterHierarchy,
  _Hierarchy.ValidityEndDate AS ValidityEndDate,
  _Hierarchy.ValidityStartDate AS ValidityStartDate,
  _Hierarchy.LastChangedByUser AS LastChangedByUser,
  _Hierarchy.LastChangeDateTime AS LastChangeDateTime
FROM P_CnsldtnUnivHierarchy_3
LEFT OUTER JOIN I_CnsldtnControllingArea AS _ControllingArea ON ControllingArea = _ControllingArea.ControllingArea  -- association [1..1]
LEFT OUTER JOIN I_CnsldtnCostCenterHierText AS _Text ON ControllingArea = _Text.ControllingArea AND CnsldtnCostCenterHierarchy = _Text.CnsldtnCostCenterHierarchy  -- association [0..*]
;