I_CustomerGroupHierarchyNode
Customer Group Hierarchy Node
I_CustomerGroupHierarchyNode is a Basic CDS View that provides data about "Customer Group Hierarchy Node" in SAP S/4HANA. It reads from 1 data source (hrrp_node_n) and exposes 13 fields with key fields CustomerGroupHierarchy, HierarchyNode, ValidityEndDate. It has 3 associations to related views. Part of development package FINS_FIS_FICO.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| hrrp_node_n | hrrp_node_n | from |
Associations (3)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [1..1] | I_CustomerGroupHierarchy | _Hierarchy | $projection.CustomerGroupHierarchy = _Hierarchy.CustomerGroupHierarchy and $projection.ValidityEndDate = _Hierarchy.ValidityEndDate |
| [0..1] | I_CustomerGroup | _CustomerGroup | $projection.CustomerGroup = _CustomerGroup.CustomerGroup |
| [0..*] | I_CustomerGroupHierNodeText | _Text | $projection.CustomerGroupHierarchy = _Text.CustomerGroupHierarchy and $projection.HierarchyNode = _Text.HierarchyNode and $projection.CustomerGroup = '' |
Annotations (12)
| Name | Value | Level | Field |
|---|---|---|---|
| AccessControl.authorizationCheck | #MANDATORY | view | |
| EndUserText.label | Customer Group Hierarchy Node | view | |
| Metadata.ignorePropagatedAnnotations | true | view | |
| ObjectModel.usageType.dataClass | #MASTER | view | |
| ObjectModel.usageType.serviceQuality | #A | view | |
| ObjectModel.usageType.sizeCategory | #L | view | |
| ObjectModel.dataCategory | #HIERARCHY | view | |
| Analytics.dataExtraction.enabled | true | view | |
| ObjectModel.representativeKey | HierarchyNode | view | |
| ObjectModel.sapObjectNodeType.name | CustomerGroupHierarchyNode | view | |
| ObjectModel.modelingPattern | #ANALYTICAL_PARENT_CHILD_HIERARCHY_NODE | view | |
| VDM.viewType | #BASIC | view |
Fields (13)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | CustomerGroupHierarchy | |||
| KEY | HierarchyNode | hrrp_node_n | hrynode | |
| KEY | ValidityEndDate | |||
| ValidityStartDate | ||||
| ParentNode | hrrp_node_n | parnode | ||
| CustomerGroup | hrrp_node_n | kdgrp | ||
| HierarchyNodeSequence | hrrp_node_n | hryseqnbr | ||
| HierarchyNodeLevel | hrrp_node_n | hrylevel | ||
| NodeType | hrrp_node_n | nodetype | ||
| HierarchyNodeVal | hrrp_node_n | nodevalue | ||
| _Text | _Text | |||
| _CustomerGroup | _CustomerGroup | |||
| _Hierarchy | _Hierarchy |
@AbapCatalog.viewEnhancementCategory: [#NONE]
@AccessControl.authorizationCheck: #MANDATORY
@EndUserText.label: 'Customer Group Hierarchy Node'
@Metadata.ignorePropagatedAnnotations: true
@ObjectModel: {usageType: {
dataClass: #MASTER,
serviceQuality: #A,
sizeCategory: #L},
dataCategory: #HIERARCHY
}
@Hierarchy.parentChild:
[{ recurse: { parent: ['ParentNode'], child: ['HierarchyNode'] },
siblingsOrder: [{ by: 'HierarchyNodeSequence' }],
directory: '_Hierarchy'
}]
@Analytics.dataExtraction.enabled: true
@ObjectModel.representativeKey: 'HierarchyNode'
@ObjectModel.sapObjectNodeType.name:'CustomerGroupHierarchyNode'
@ObjectModel.modelingPattern: #ANALYTICAL_PARENT_CHILD_HIERARCHY_NODE
@ObjectModel.supportedCapabilities: [ #CDS_MODELING_DATA_SOURCE, #CDS_MODELING_ASSOCIATION_TARGET,#ANALYTICAL_PARENT_CHILD_HIERARCHY_NODE , #EXTRACTION_DATA_SOURCE ]
@VDM.viewType: #BASIC
define view entity I_CustomerGroupHierarchyNode
as select from hrrp_node_n
association [1..1] to I_CustomerGroupHierarchy as _Hierarchy on $projection.CustomerGroupHierarchy = _Hierarchy.CustomerGroupHierarchy
and $projection.ValidityEndDate = _Hierarchy.ValidityEndDate
association [0..1] to I_CustomerGroup as _CustomerGroup on $projection.CustomerGroup = _CustomerGroup.CustomerGroup
association [0..*] to I_CustomerGroupHierNodeText as _Text on $projection.CustomerGroupHierarchy = _Text.CustomerGroupHierarchy
and $projection.HierarchyNode = _Text.HierarchyNode
and $projection.CustomerGroup = '' // just to show that this association is only to be followed if BillingDocumentType is blank
{
@Consumption.filter: {mandatory : true, selectionType : #SINGLE, multipleSelections : false }
@ObjectModel.foreignKey.association: '_Hierarchy'
key cast(hrrp_node_n.hryid as fis_hryid_customergroup preserving type ) as CustomerGroupHierarchy,
@ObjectModel.text.association: '_Text'
key hrrp_node_n.hrynode as HierarchyNode,
@Semantics.businessDate.to: true
@Consumption.filter: {mandatory : true, selectionType : #SINGLE, multipleSelections : false }
key cast(hrrp_node_n.hryvalto as fis_datbi preserving type ) as ValidityEndDate,
@Semantics.businessDate.from: true
cast(hrrp_node_n.hryvalfrom as fis_datab preserving type ) as ValidityStartDate,
hrrp_node_n.parnode as ParentNode,
@ObjectModel.foreignKey.association: '_CustomerGroup'
hrrp_node_n.kdgrp as CustomerGroup,
hrrp_node_n.hryseqnbr as HierarchyNodeSequence,
hrrp_node_n.hrylevel as HierarchyNodeLevel,
hrrp_node_n.nodetype as NodeType,
hrrp_node_n.nodevalue as HierarchyNodeVal,
_Text,
_CustomerGroup,
_Hierarchy
}
where
hrrp_node_n.nodetype <> 'D'
and hrrp_node_n.hrytyp = 'U506'
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