A_CnsldtnCostCenterHier

DDL: A_CNSLDTNCOSTCENTERHIER Type: view COMPOSITE

Combined Cost Center Hierarchy Node

A_CnsldtnCostCenterHier is a Composite CDS View that provides data about "Combined Cost Center Hierarchy Node" in SAP S/4HANA. It reads from 1 data source (I_CnsldtnCostCenterHierNode) and exposes 19 fields with key fields ControllingArea, AdditionalMasterDataHierarchy, HierarchyNode, ValidityEndDate. It has 5 associations to related views.

Data Sources (1)

SourceAliasJoin Type
I_CnsldtnCostCenterHierNode I_CnsldtnCostCenterHierNode from

Associations (5)

CardinalityTargetAliasCondition
[0..*] A_CnsldtnCostCenterHierT _CnsldtnCostCenterHierT $projection.ControllingArea = _CnsldtnCostCenterHierT.ControllingArea and $projection.AdditionalMasterDataHierarchy = _CnsldtnCostCenterHierT.AdditionalMasterDataHierarchy and $projection.HierarchyNode = _CnsldtnCostCenterHierT.HierarchyNode and $projection.ValidityEndDate = _CnsldtnCostCenterHierT.ValidityEndDate and $projection.CostCenter = ''
[0..1] A_CnsldtnCostCenter _CnsldtnCostCenter $projection.ControllingArea = _CnsldtnCostCenter.ControllingArea and $projection.CostCenter = _CnsldtnCostCenter.CostCenter
[0..1] A_CnsldtnControllingArea _CnsldtnControllingArea $projection.ControllingArea = _CnsldtnControllingArea.ControllingArea
[0..*] A_CnsldtnCostCenterT _CnsldtnCostCenterT $projection.CostCenter = _CnsldtnCostCenterT.CostCenter and $projection.ControllingArea = _CnsldtnCostCenterT.ControllingArea
[1..1] A_CnsldtnCostCenterHierDir _Hierarchy $projection.AdditionalMasterDataHierarchy = _Hierarchy.AdditionalMasterDataHierarchy and $projection.ValidityEndDate = _Hierarchy.ValidityEndDate

Annotations (14)

NameValueLevelField
AbapCatalog.sqlViewName ACSCOSTCTRHIER view
AbapCatalog.compiler.compareFilter true view
AbapCatalog.preserveKey true view
AccessControl.authorizationCheck #MANDATORY 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.representativeKey HierarchyNode view
VDM.viewType #COMPOSITE view
VDM.lifecycle.contract.type #PUBLIC_REMOTE_API view
EndUserText.label Combined Cost Center Hierarchy Node view
OData.entitySet.name CostCenterHier view

Fields (19)

KeyFieldSource TableSource FieldDescription
KEY ControllingArea ControllingArea Controlling Area
KEY AdditionalMasterDataHierarchy
KEY HierarchyNode HierarchyNode Node
KEY ValidityEndDate ValidityEndDate ValidTo
ParentNode ParentNode Parent Node
HierarchyVersion HierarchyVersion Version
ValidityStartDate ValidityStartDate Validity Start Date
CostCenter CostCenter Cost Center
SequenceNumber
HierarchyNodeSequence HierarchyNodeSequence
HierarchyNodeLevel HierarchyNodeLevel Hierarchy Node Level
NodeType NodeType Object Type
MDHierType
HierarchyType
_Hierarchy _Hierarchy
_CnsldtnControllingArea _CnsldtnControllingArea
_CnsldtnCostCenter _CnsldtnCostCenter
_CnsldtnCostCenterT _CnsldtnCostCenterT
_CnsldtnCostCenterHierT _CnsldtnCostCenterHierT

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 A_CnsldtnCostCenterHier.
-- 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 A_CnsldtnCostCenterHier AS
SELECT
  ControllingArea,
  cast(left(CnsldtnCostCenterHierarchy, 40) as fincs_hryid_costcenter preserving type ) AS AdditionalMasterDataHierarchy,
  HierarchyNode,
  ValidityEndDate,
  ParentNode,
  HierarchyVersion,
  ValidityStartDate,
  CostCenter,
  cast(HierarchyNodeSequence as abap.char( 56 ) ) AS SequenceNumber,
  HierarchyNodeSequence,
  HierarchyNodeLevel,
  NodeType,
  cast('CS03' as fincs_hierarchytype ) AS MDHierType,
  cast('CS03' as fincs_hierarchytype) AS HierarchyType
FROM I_CnsldtnCostCenterHierNode
LEFT OUTER JOIN A_CnsldtnCostCenterHierT AS _CnsldtnCostCenterHierT ON ControllingArea = _CnsldtnCostCenterHierT.ControllingArea AND AdditionalMasterDataHierarchy = _CnsldtnCostCenterHierT.AdditionalMasterDataHierarchy AND HierarchyNode = _CnsldtnCostCenterHierT.HierarchyNode AND ValidityEndDate = _CnsldtnCostCenterHierT.ValidityEndDate AND CostCenter = ''  -- association [0..*]
LEFT OUTER JOIN A_CnsldtnCostCenter AS _CnsldtnCostCenter ON ControllingArea = _CnsldtnCostCenter.ControllingArea AND CostCenter = _CnsldtnCostCenter.CostCenter  -- association [0..1]
LEFT OUTER JOIN A_CnsldtnControllingArea AS _CnsldtnControllingArea ON ControllingArea = _CnsldtnControllingArea.ControllingArea  -- association [0..1]
LEFT OUTER JOIN A_CnsldtnCostCenterT AS _CnsldtnCostCenterT ON CostCenter = _CnsldtnCostCenterT.CostCenter AND ControllingArea = _CnsldtnCostCenterT.ControllingArea  -- association [0..*]
LEFT OUTER JOIN A_CnsldtnCostCenterHierDir AS _Hierarchy ON AdditionalMasterDataHierarchy = _Hierarchy.AdditionalMasterDataHierarchy AND ValidityEndDate = _Hierarchy.ValidityEndDate  -- association [1..1]
;