I_StstclKeyFigureHierNode

DDL: I_STSTCLKEYFIGUREHIERNODE SQL: IFISTCLKEYFIGHN Type: view BASIC Package: FINS_FIS_FICO

Statistical Key Figure Hierarchy Node

I_StstclKeyFigureHierNode is a Basic CDS View that provides data about "Statistical Key Figure Hierarchy Node" in SAP S/4HANA. It reads from 1 data source (hrrp_node_n) and exposes 18 fields with key fields ControllingArea, StatisticalKeyFigureHierarchy, HierarchyNode, ValidityEndDate. It has 5 associations to related views. Part of development package FINS_FIS_FICO.

Data Sources (1)

SourceAliasJoin Type
hrrp_node_n hrrp_node_n from

Associations (5)

CardinalityTargetAliasCondition
[0..1] I_ControllingArea _ControllingAreaText $projection.ControllingArea = _ControllingAreaText.ControllingArea
[0..*] I_StstclKeyFigureHierNodeT _Text $projection.StatisticalKeyFigureHierarchy = _Text.StatisticalKeyFigureHierarchy and $projection.HierarchyNode = _Text.HierarchyNode and $projection.ControllingArea = _Text.ControllingArea and $projection.StatisticalKeyFigure = ''
[0..1] I_StatisticalKeyFigure _StatisticalKeyFigure $projection.StatisticalKeyFigure = _StatisticalKeyFigure.StatisticalKeyFigure and $projection.ControllingArea = _StatisticalKeyFigure.ControllingArea
[1..1] I_StstclKeyFigureHierarchy _Hierarchy $projection.StatisticalKeyFigureHierarchy = _Hierarchy.StatisticalKeyFigureHierarchy and $projection.ControllingArea = _Hierarchy.ControllingArea and $projection.ValidityEndDate = _Hierarchy.ValidityEndDate
[0..1] I_ControllingArea _ControllingArea $projection.ControllingArea = _ControllingArea.ControllingArea

Annotations (16)

NameValueLevelField
AbapCatalog.sqlViewName IFISTCLKEYFIGHN view
AbapCatalog.preserveKey true view
AbapCatalog.compiler.compareFilter true view
EndUserText.label Statistical Key Figure Hierarchy Node view
VDM.viewType #BASIC 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
ObjectModel.dataCategory #HIERARCHY view
Analytics.dataExtraction.enabled true view
ObjectModel.representativeKey HierarchyNode view
ObjectModel.modelingPattern #ANALYTICAL_PARENT_CHILD_HIERARCHY_NODE view
ObjectModel.sapObjectNodeType.name StstclKeyFigureHierarchyNode view

Fields (18)

KeyFieldSource TableSource FieldDescription
KEY ControllingArea
KEY StatisticalKeyFigureHierarchy hrrp_node_n hryid_42
KEY HierarchyNode hrrp_node_n hrynode
KEY ValidityEndDate
ParentNode hrrp_node_n parnode
HierarchyVersion
ValidityStartDate
StatisticalKeyFigure
SequenceNumber
HierarchyNodeSequence hrrp_node_n hryseqnbr
HierarchyNodeLevel hrrp_node_n hrylevel
NodeType hrrp_node_n nodetype
HierarchyNodeVal hrrp_node_n nodevalue
_Text _Text
_StatisticalKeyFigure _StatisticalKeyFigure
_Hierarchy _Hierarchy
_ControllingArea _ControllingArea
_ControllingAreaText _ControllingAreaText
@AbapCatalog.sqlViewName: 'IFISTCLKEYFIGHN'
@AbapCatalog.preserveKey:true
@AbapCatalog.compiler.compareFilter:true
@EndUserText.label: 'Statistical Key Figure Hierarchy Node'
@VDM.viewType: #BASIC
@Hierarchy.parentChild:
[{ recurse:          {   parent: ['ParentNode'],   child:  ['HierarchyNode']  },
  siblingsOrder:    [{   by: 'HierarchyNodeSequence',    direction: 'ASC'   }],
  directory:        '_Hierarchy'
  }]
@AccessControl.authorizationCheck: #CHECK
@ClientHandling.algorithm: #SESSION_VARIABLE
@Metadata.ignorePropagatedAnnotations: true
@ObjectModel: {usageType: {
  dataClass: #MASTER,
  serviceQuality: #A,
  sizeCategory: #XL},
  dataCategory: #HIERARCHY
}
@Analytics.dataExtraction: {enabled:true}
@ObjectModel.representativeKey: 'HierarchyNode'
@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 ]
@AccessControl.privilegedAssociations: ['_ControllingAreaText']
@ObjectModel.sapObjectNodeType.name:'StstclKeyFigureHierarchyNode'
//

define view I_StstclKeyFigureHierNode
  as select from hrrp_node_n

  association [0..1] to I_ControllingArea          as _ControllingAreaText  on  $projection.ControllingArea = _ControllingAreaText.ControllingArea
  //

  association [0..*] to I_StstclKeyFigureHierNodeT as _Text                 on  $projection.StatisticalKeyFigureHierarchy = _Text.StatisticalKeyFigureHierarchy
                                                                            and $projection.HierarchyNode                 = _Text.HierarchyNode
                                                                            and $projection.ControllingArea               = _Text.ControllingArea
                                                                            and $projection.StatisticalKeyFigure          = '' // just to show that this association is only to be followed if StatisticalKeyFigure is blank


  association [0..1] to I_StatisticalKeyFigure     as _StatisticalKeyFigure on  $projection.StatisticalKeyFigure = _StatisticalKeyFigure.StatisticalKeyFigure
                                                                            and $projection.ControllingArea      = _StatisticalKeyFigure.ControllingArea

  association [1..1] to I_StstclKeyFigureHierarchy as _Hierarchy            on  $projection.StatisticalKeyFigureHierarchy = _Hierarchy.StatisticalKeyFigureHierarchy
                                                                            and $projection.ControllingArea               = _Hierarchy.ControllingArea
                                                                            and $projection.ValidityEndDate               = _Hierarchy.ValidityEndDate

  association [0..1] to I_ControllingArea          as _ControllingArea      on  $projection.ControllingArea = _ControllingArea.ControllingArea

{
      @Consumption.valueHelpDefinition: [
        { entity:  { name:    'I_ControllingAreaStdVH',
                     element: 'ControllingArea' }
        }]
      @ObjectModel.text.association: '_ControllingAreaText'
      @Consumption.filter: {mandatory : true, selectionType : #SINGLE, multipleSelections : false }
      @ObjectModel.foreignKey.association: '_ControllingArea' //Inserted by VDM CDS Suite Plugin

  key cast( hrrp_node_n.kokrs as fis_kokrs preserving type )     as ControllingArea,
      @Consumption.filter: {mandatory : true, selectionType : #SINGLE, multipleSelections : false }
      @ObjectModel.foreignKey.association: '_Hierarchy'
  key hrrp_node_n.hryid_42                                       as StatisticalKeyFigureHierarchy,
      @ObjectModel.text.association: '_Text'
  key hrrp_node_n.hrynode                                        as HierarchyNode,
      @Consumption.filter: {mandatory : true, selectionType : #SINGLE, multipleSelections : false }
      @Semantics.businessDate.to: true
  key cast(hrrp_node_n.hryvalto as fis_datbi preserving type )   as ValidityEndDate,
      hrrp_node_n.parnode                                        as ParentNode,
      @VDM.lifecycle.status:    #DEPRECATED
      cast( '000000000000001' as hryversn )                      as HierarchyVersion,
      @Semantics.businessDate.from: true
      cast(hrrp_node_n.hryvalfrom as fis_datab preserving type ) as ValidityStartDate,
      @Consumption.valueHelpDefinition: [
        { entity:  { name:    'I_StatisticalKeyFigureStdVH',
                     element: 'StatisticalKeyFigure' },
          additionalBinding: [{ localElement: 'ControllingArea',
                                element: 'ControllingArea' }]
        }]
      @ObjectModel.foreignKey.association: '_StatisticalKeyFigure'
      cast (  hrrp_node_n.stagr as fis_stagr preserving type )   as StatisticalKeyFigure,
      @VDM.lifecycle.status:    #DEPRECATED
      @VDM.lifecycle.successor: 'HierarchyNodeSequence'
      concat(hrrp_node_n.hryseqnbr, hrrp_node_n.hrynode)         as SequenceNumber, // do not use any longer, use HierarchyNodeSequence

      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,
      _StatisticalKeyFigure,
      _Hierarchy,
      _ControllingArea,
      @Consumption.hidden: true
      _ControllingAreaText

}
where
      hrrp_node_n.nodetype <> 'D'
  and hrrp_node_n.hrytyp   =  '0104';