I_CustomerGroupHierarchyNode

DDL: I_CUSTOMERGROUPHIERARCHYNODE Type: view_entity BASIC Package: FINS_FIS_FICO

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)

SourceAliasJoin Type
hrrp_node_n hrrp_node_n from

Associations (3)

CardinalityTargetAliasCondition
[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)

NameValueLevelField
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)

KeyFieldSource TableSource FieldDescription
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'