A_CnsldtnCostCenterHier
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)
| Source | Alias | Join Type |
|---|---|---|
| I_CnsldtnCostCenterHierNode | I_CnsldtnCostCenterHierNode | from |
Associations (5)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [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)
| Name | Value | Level | Field |
|---|---|---|---|
| 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)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| 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]
;
Learn More
- VDM (Virtual Data Model) in SAP S/4HANA Explained
- Types of CDS Views: Basic, Composite, Consumption, and Transactional
- CDS View Annotations — A Complete Guide
- What Is a CDS View in SAP S/4HANA?
- SAP Tables vs CDS Views — Key Differences
- Understanding Data Lineage in SAP S/4HANA
- CDS View Field Mapping and Associations
- Understanding the SAP S/4HANA Data Model
- CDS View Extensions and Custom Fields in SAP S/4HANA
- Released APIs and Stability Contracts in SAP S/4HANA
- BSEG to ACDOCA: The Universal Journal Migration
- Business Partner Migration: KNA1/LFA1 to BUT000
- Material Document Migration: MSEG/MKPF to MATDOC
- How to Find the Right CDS View for an SAP Table
- BW Extractor to CDS View Migration Guide
- S/4HANA CDS View Deprecation: What You Need to Know
- ABAP CDS View Tutorial — From Basics to Real-World Examples
- RAP and CDS Views — Building Transactional Apps in SAP S/4HANA
- Sales Document Status Migration: VBUP/VBUK Removal in S/4HANA
- CO Tables in S/4HANA: COEP, COBK, COSS, COSP to ACDOCA