A_CnsldtnCustomerGroupHier
Combined Customer Group Hierarchy
A_CnsldtnCustomerGroupHier is a Basic CDS View that provides data about "Combined Customer Group Hierarchy" in SAP S/4HANA. It reads from 1 data source (I_CnsldtnCustGroupHierNode) and exposes 15 fields with key fields AdditionalMasterDataHierarchy, HierarchyNode, ValidityEndDate. It has 3 associations to related views.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| I_CnsldtnCustGroupHierNode | _CnsldtnCustGroupHierNode | from |
Associations (3)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [0..1] | A_CnsldtnCustomerGroup | _CnsldtnCustomerGroup | $projection.CustomerGroup = _CnsldtnCustomerGroup.CustomerGroup |
| [0..*] | A_CnsldtnCustomerGroupHierT | _CnsldtnCustomerGroupHierT | $projection.AdditionalMasterDataHierarchy = _CnsldtnCustomerGroupHierT.AdditionalMasterDataHierarchy and $projection.HierarchyNode = _CnsldtnCustomerGroupHierT.HierarchyNode and $projection.ValidityEndDate = _CnsldtnCustomerGroupHierT.ValidityEndDate and $projection.CustomerGroup = '' |
| [0..*] | A_CnsldtnCustomerGroupT | _CnsldtnCustomerGroupT | $projection.CustomerGroup = _CnsldtnCustomerGroupT.CustomerGroup |
Annotations (13)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | ACSCUSGROUPHIER | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| AbapCatalog.preserveKey | true | view | |
| AccessControl.authorizationCheck | #CHECK | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| Metadata.ignorePropagatedAnnotations | true | view | |
| ObjectModel.usageType.dataClass | #MASTER | view | |
| ObjectModel.usageType.serviceQuality | #A | view | |
| ObjectModel.usageType.sizeCategory | #XL | view | |
| VDM.viewType | #BASIC | view | |
| VDM.lifecycle.contract.type | #PUBLIC_REMOTE_API | view | |
| EndUserText.label | Combined Customer Group Hierarchy | view | |
| OData.entitySet.name | CustomerGroupHier | view |
Fields (15)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | AdditionalMasterDataHierarchy | I_CnsldtnCustGroupHierNode | CnsldtnCustomerGroupHierarchy | |
| KEY | HierarchyNode | HierarchyNode | Node | |
| KEY | ValidityEndDate | I_CnsldtnCustGroupHierNode | ValidityEndDate | ValidTo |
| ParentNode | ParentNode | Parent Node | ||
| ValidityStartDate | I_CnsldtnCustGroupHierNode | ValidityStartDate | Validity Start Date | |
| CustomerGroup | I_CnsldtnCustGroupHierNode | CustomerGroup | Customer Group | |
| SequenceNumber | ||||
| HierarchyNodeSequence | I_CnsldtnCustGroupHierNode | HierarchyNodeSequence | ||
| HierarchyNodeLevel | I_CnsldtnCustGroupHierNode | HierarchyNodeLevel | Hierarchy Node Level | |
| NodeType | I_CnsldtnCustGroupHierNode | NodeType | Object Type | |
| MDHierType | ||||
| HierarchyType | ||||
| _CnsldtnCustomerGroup | _CnsldtnCustomerGroup | |||
| _CnsldtnCustomerGroupHierT | _CnsldtnCustomerGroupHierT | |||
| _CnsldtnCustomerGroupT | _CnsldtnCustomerGroupT |
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_CnsldtnCustomerGroupHier.
-- 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_CnsldtnCustomerGroupHier AS
SELECT
_CnsldtnCustGroupHierNode.CnsldtnCustomerGroupHierarchy AS AdditionalMasterDataHierarchy,
HierarchyNode,
_CnsldtnCustGroupHierNode.ValidityEndDate AS ValidityEndDate,
ParentNode,
_CnsldtnCustGroupHierNode.ValidityStartDate AS ValidityStartDate,
_CnsldtnCustGroupHierNode.CustomerGroup AS CustomerGroup,
cast(_CnsldtnCustGroupHierNode.HierarchyNodeSequence as abap.char( 56 ) ) AS SequenceNumber,
_CnsldtnCustGroupHierNode.HierarchyNodeSequence AS HierarchyNodeSequence,
_CnsldtnCustGroupHierNode.HierarchyNodeLevel AS HierarchyNodeLevel,
_CnsldtnCustGroupHierNode.NodeType AS NodeType,
cast('CS13' as hrytype preserving type ) AS MDHierType,
cast('CS13' as hrytype preserving type ) AS HierarchyType
FROM I_CnsldtnCustGroupHierNode AS _CnsldtnCustGroupHierNode
LEFT OUTER JOIN A_CnsldtnCustomerGroup AS _CnsldtnCustomerGroup ON CustomerGroup = _CnsldtnCustomerGroup.CustomerGroup -- association [0..1]
LEFT OUTER JOIN A_CnsldtnCustomerGroupHierT AS _CnsldtnCustomerGroupHierT ON AdditionalMasterDataHierarchy = _CnsldtnCustomerGroupHierT.AdditionalMasterDataHierarchy AND HierarchyNode = _CnsldtnCustomerGroupHierT.HierarchyNode AND ValidityEndDate = _CnsldtnCustomerGroupHierT.ValidityEndDate AND CustomerGroup = '' -- association [0..*]
LEFT OUTER JOIN A_CnsldtnCustomerGroupT AS _CnsldtnCustomerGroupT ON CustomerGroup = _CnsldtnCustomerGroupT.CustomerGroup -- association [0..*]
;
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