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 16 fields with key fields AdditionalMasterDataHierarchy, HierarchyNode, ValidityEndDate. It has 4 associations to related views.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| I_CnsldtnCustGroupHierNode | _CnsldtnCustGroupHierNode | from |
Associations (4)
| 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.CustomerGroup = '' |
| [0..*] | A_CnsldtnCustomerGroupHierT | _CnsldtnCustomerGroupHierT_2 | $projection.AdditionalMasterDataHierarchy = _CnsldtnCustomerGroupHierT_2.AdditionalMasterDataHierarchy and $projection.HierarchyNode = _CnsldtnCustomerGroupHierT_2.HierarchyNode and $projection.ValidityEndDate = _CnsldtnCustomerGroupHierT_2.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 (16)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | AdditionalMasterDataHierarchy | I_CnsldtnCustGroupHierNode | AdditionalMasterDataHierarchy | |
| KEY | HierarchyNode | HierarchyNode | ||
| KEY | ValidityEndDate | I_CnsldtnCustGroupHierNode | ValidityEndDate | |
| ParentNode | ParentNode | |||
| ValidityStartDate | I_CnsldtnCustGroupHierNode | ValidityStartDate | ||
| CustomerGroup | I_CnsldtnCustGroupHierNode | CustomerGroup | ||
| SequenceNumber | ||||
| HierarchyNodeSequence | I_CnsldtnCustGroupHierNode | HierarchyNodeSequence | ||
| HierarchyNodeLevel | I_CnsldtnCustGroupHierNode | HierarchyNodeLevel | ||
| NodeType | I_CnsldtnCustGroupHierNode | NodeType | ||
| MDHierType | I_CnsldtnCustGroupHierNode | HierarchyType | ||
| HierarchyType | I_CnsldtnCustGroupHierNode | HierarchyType | ||
| _CnsldtnCustomerGroup | _CnsldtnCustomerGroup | |||
| _CnsldtnCustomerGroupHierT | _CnsldtnCustomerGroupHierT | |||
| _CnsldtnCustomerGroupHierT_2 | _CnsldtnCustomerGroupHierT_2 | |||
| _CnsldtnCustomerGroupT | _CnsldtnCustomerGroupT |
@AbapCatalog:{
sqlViewName: 'ACSCUSGROUPHIER',
compiler.compareFilter: true,
preserveKey: true
}
@AccessControl.authorizationCheck: #CHECK
@ClientHandling.algorithm: #SESSION_VARIABLE
@Metadata.ignorePropagatedAnnotations: true
@ObjectModel: {usageType: {
dataClass: #MASTER,
serviceQuality: #A,
sizeCategory: #XL}
// representativeKey: 'HierarchyNode'
}
@VDM: {
viewType: #BASIC,
lifecycle.contract.type: #PUBLIC_REMOTE_API
}
@EndUserText.label: 'Combined Customer Group Hierarchy'
@OData.entitySet.name: 'CustomerGroupHier'
define view A_CnsldtnCustomerGroupHier
as select from I_CnsldtnCustGroupHierNode as _CnsldtnCustGroupHierNode
association [0..1] to A_CnsldtnCustomerGroup as _CnsldtnCustomerGroup on $projection.CustomerGroup = _CnsldtnCustomerGroup.CustomerGroup
association [0..*] to A_CnsldtnCustomerGroupHierT as _CnsldtnCustomerGroupHierT on $projection.AdditionalMasterDataHierarchy = _CnsldtnCustomerGroupHierT.AdditionalMasterDataHierarchy
and $projection.HierarchyNode = _CnsldtnCustomerGroupHierT.HierarchyNode
and $projection.CustomerGroup = ''
association [0..*] to A_CnsldtnCustomerGroupHierT as _CnsldtnCustomerGroupHierT_2 on $projection.AdditionalMasterDataHierarchy = _CnsldtnCustomerGroupHierT_2.AdditionalMasterDataHierarchy
and $projection.HierarchyNode = _CnsldtnCustomerGroupHierT_2.HierarchyNode
and $projection.ValidityEndDate = _CnsldtnCustomerGroupHierT_2.ValidityEndDate
and $projection.CustomerGroup = ''
association [0..*] to A_CnsldtnCustomerGroupT as _CnsldtnCustomerGroupT on $projection.CustomerGroup = _CnsldtnCustomerGroupT.CustomerGroup
// association [0..1] to A_CnsldtnCustomerGrpHierDir as _CnsldtnCustomerGrpHierDir on $projection.AdditionalMasterDataHierarchy = _CnsldtnCustomerGrpHierDir.AdditionalMasterDataHierarchy
// and $projection.ValidityEndDate = _CnsldtnCustomerGrpHierDir.ValidityEndDate
{
// @ObjectModel.foreignKey.association: '_CnsldtnCustomerGrpHierDir'
key _CnsldtnCustGroupHierNode.AdditionalMasterDataHierarchy,
@ObjectModel.text.association: '_CnsldtnCustomerGroupHierT_2'
key HierarchyNode,
@Semantics.businessDate.to: true
key _CnsldtnCustGroupHierNode.ValidityEndDate,
ParentNode,
@Semantics.businessDate.from: true
_CnsldtnCustGroupHierNode.ValidityStartDate,
@ObjectModel.text.association: '_CnsldtnCustomerGroupT'
_CnsldtnCustGroupHierNode.CustomerGroup,
// STS - compatible ATC cleanup change - to be removed
cast(_CnsldtnCustGroupHierNode.HierarchyNodeSequence as abap.char( 56 ) ) as SequenceNumber,
// STS - compatible ATC cleanup change - to be removed
// STS - compatible ATC cleanup change
_CnsldtnCustGroupHierNode.HierarchyNodeSequence,
// STS - compatible ATC cleanup change
_CnsldtnCustGroupHierNode.HierarchyNodeLevel,
_CnsldtnCustGroupHierNode.NodeType,
@Consumption.hidden: true
_CnsldtnCustGroupHierNode.HierarchyType as MDHierType,
@Consumption.hidden: true
_CnsldtnCustGroupHierNode.HierarchyType,
// @Consumption.hidden: true
// _CnsldtnCustomerGrpHierDir,
_CnsldtnCustomerGroup,
_CnsldtnCustomerGroupHierT,
_CnsldtnCustomerGroupHierT_2,
_CnsldtnCustomerGroupT
}
/*+[internal] {
"BASEINFO":
{
"FROM":
[
"I_CNSLDTNCUSTGROUPHIERNODE"
],
"ASSOCIATED":
[
"A_CNSLDTNCUSTOMERGROUP",
"A_CNSLDTNCUSTOMERGROUPHIERT",
"A_CNSLDTNCUSTOMERGROUPT"
],
"BASE":
[],
"ANNO_REF":
[],
"SCALAR_FUNCTION":
[],
"VERSION":0,
"ANNOREF_EVALUATION_ERROR":""
}
}*/
Learn More
- What Is a CDS View in SAP S/4HANA?
- Types of CDS Views: Basic, Composite, Consumption, and Transactional
- SAP Tables vs CDS Views — Key Differences
- Understanding Data Lineage in SAP S/4HANA
- VDM (Virtual Data Model) in SAP S/4HANA Explained
- CDS View Annotations — A Complete Guide
- 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