FAC_CostCenterHierNode

DDL: FAC_COSTCENTERHIERNODE SQL: FACCCHIERN Type: view

Cost Center Hierarchy Node

FAC_CostCenterHierNode is a CDS View that provides data about "Cost Center Hierarchy Node" in SAP S/4HANA. It reads from 1 data source (hrrp_node_n) and exposes 10 fields with key fields UniversalHierHierarchyID, ControllingArea, HierarchyNode, ParentNode, ValidityEndDate. It has 2 associations to related views.

Data Sources (1)

SourceAliasJoin Type
hrrp_node_n hrrp_node_n from

Associations (2)

CardinalityTargetAliasCondition
[0..*] I_CostCenterText _CostCtrText $projection.ControllingArea = _CostCtrText.ControllingArea and $projection.CostCenter = _CostCtrText.CostCenter
[0..1] I_ControllingArea _ControllingArea $projection.ControllingArea = _ControllingArea.ControllingArea

Annotations (10)

NameValueLevelField
AbapCatalog.sqlViewName FACCCHIERN view
AbapCatalog.compiler.compareFilter true view
AbapCatalog.preserveKey true view
AccessControl.authorizationCheck #NOT_REQUIRED view
ClientHandling.algorithm #SESSION_VARIABLE view
EndUserText.label Cost Center Hierarchy Node view
ObjectModel.usageType.dataClass #MASTER view
ObjectModel.usageType.serviceQuality #A view
ObjectModel.usageType.sizeCategory #XL view
Search.searchable true view

Fields (10)

KeyFieldSource TableSource FieldDescription
KEY UniversalHierHierarchyID hrrp_node_n hryid Hierarchy ID
KEY ControllingArea hrrp_node_n kokrs Org. Value
KEY HierarchyNode hrrp_node_n hrynode Node
KEY ParentNode hrrp_node_n parnode Par. Node
KEY ValidityEndDate
ValidityStartDate
NodeType nodetype Object Type
CostCenter
_CostCtrText _CostCtrText
_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 FAC_CostCenterHierNode.
-- 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: FACCCHIERN

CREATE VIEW FAC_CostCenterHierNode AS
SELECT
  hrrp_node_n.hryid AS UniversalHierHierarchyID,
  hrrp_node_n.kokrs AS ControllingArea,
  hrrp_node_n.hrynode AS HierarchyNode,
  hrrp_node_n.parnode AS ParentNode,
  cast(hrrp_node_n.hryvalto as fis_datbi preserving type ) AS ValidityEndDate,
  cast(hrrp_node_n.hryvalfrom as fis_datab preserving type) AS ValidityStartDate,
  NodeType,
  cast ( hrrp_node_n.kostl as fis_kostl preserving type ) AS CostCenter
FROM hrrp_node_n
LEFT OUTER JOIN I_CostCenterText AS _CostCtrText ON ControllingArea = _CostCtrText.ControllingArea AND CostCenter = _CostCtrText.CostCenter  -- association [0..*]
LEFT OUTER JOIN I_ControllingArea AS _ControllingArea ON ControllingArea = _ControllingArea.ControllingArea  -- association [0..1]
;