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. Part of development package FIN_CS_MD_API.
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 | ||
| 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 | ||||
| HierarchyType | ||||
| _CnsldtnCustomerGroup | _CnsldtnCustomerGroup | |||
| _CnsldtnCustomerGroupHierT | _CnsldtnCustomerGroupHierT | |||
| _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}
}
@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.ValidityEndDate = _CnsldtnCustomerGroupHierT.ValidityEndDate
and $projection.CustomerGroup = ''
association [0..*] to A_CnsldtnCustomerGroupT as _CnsldtnCustomerGroupT on $projection.CustomerGroup = _CnsldtnCustomerGroupT.CustomerGroup
{
key _CnsldtnCustGroupHierNode.CnsldtnCustomerGroupHierarchy as AdditionalMasterDataHierarchy,
@ObjectModel.text.association: '_CnsldtnCustomerGroupHierT'
key HierarchyNode,
@Semantics.businessDate.to: true
key _CnsldtnCustGroupHierNode.ValidityEndDate,
ParentNode,
@Semantics.businessDate.from: true
_CnsldtnCustGroupHierNode.ValidityStartDate,
@ObjectModel.text.association: '_CnsldtnCustomerGroupT'
_CnsldtnCustGroupHierNode.CustomerGroup,
cast(_CnsldtnCustGroupHierNode.HierarchyNodeSequence as abap.char( 56 ) ) as SequenceNumber, // obsolete
_CnsldtnCustGroupHierNode.HierarchyNodeSequence,
_CnsldtnCustGroupHierNode.HierarchyNodeLevel,
_CnsldtnCustGroupHierNode.NodeType,
@Consumption.hidden: true
cast('CS13' as hrytype preserving type ) as MDHierType,
@Consumption.hidden: true
cast('CS13' as hrytype preserving type ) as HierarchyType,
_CnsldtnCustomerGroup,
_CnsldtnCustomerGroupHierT,
_CnsldtnCustomerGroupT
}
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