I_CostCenterHierSubTree

DDL: I_COSTCENTERHIERSUBTREE SQL: IFICOSTCTRHST Type: view BASIC

Cost Center Hierarchy Sub Tree

I_CostCenterHierSubTree is a Basic CDS View that provides data about "Cost Center Hierarchy Sub Tree" in SAP S/4HANA. It reads from 1 data source (hrrp_node_n) and exposes 6 fields with key fields ControllingArea, CostCenterHierarchy, HierarchyNode, CostCenter. It has 2 associations to related views.

Data Sources (1)

SourceAliasJoin Type
hrrp_node_n hrrp_node_n from

Associations (2)

CardinalityTargetAliasCondition
[0..1] I_ControllingArea _ControllingArea $projection.ControllingArea = _ControllingArea.ControllingArea
[1..*] I_CostCenterHierarchy _Hierarchy $projection.CostCenterHierarchy = _Hierarchy.CostCenterHierarchy and $projection.ControllingArea = _Hierarchy.ControllingArea

Annotations (9)

NameValueLevelField
ObjectModel.representativeKey HierarchyNode view
EndUserText.label Cost Center Hierarchy Sub Tree view
VDM.viewType #BASIC view
AbapCatalog.sqlViewName IFICOSTCTRHST view
AccessControl.authorizationCheck #NOT_REQUIRED view
ClientHandling.algorithm #SESSION_VARIABLE view
ObjectModel.usageType.dataClass #MASTER view
ObjectModel.usageType.serviceQuality #B view
ObjectModel.usageType.sizeCategory #XL view

Fields (6)

KeyFieldSource TableSource FieldDescription
KEY ControllingArea
KEY CostCenterHierarchy
KEY HierarchyNode
KEY CostCenter hrrp_node_n nodevalue Value
_ControllingArea _ControllingArea
_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_CostCenterHierSubTree.
-- 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: IFICOSTCTRHST

CREATE VIEW I_CostCenterHierSubTree AS
SELECT
  cast( hrrp_node_n.kokrs as fis_kokrs preserving type ) AS ControllingArea,
  cast( hrrp_node_n.hryid as fis_hryid_cctr preserving type ) AS CostCenterHierarchy,
  cast( hrrp_node_n.parnode as fis_cctr_hrynid_50 preserving type ) AS HierarchyNode,
  hrrp_node_n.nodevalue AS CostCenter
FROM hrrp_node_n
LEFT OUTER JOIN I_ControllingArea AS _ControllingArea ON ControllingArea = _ControllingArea.ControllingArea  -- association [0..1]
LEFT OUTER JOIN I_CostCenterHierarchy AS _Hierarchy ON CostCenterHierarchy = _Hierarchy.CostCenterHierarchy AND ControllingArea = _Hierarchy.ControllingArea  -- association [1..*]
;