I_BillingDocTypeHierNode

DDL: I_BILLINGDOCTYPEHIERNODE Type: view_entity BASIC Package: FINS_FIS_FICO

Billing Document Type Hierarchy Node

I_BillingDocTypeHierNode is a Basic CDS View that provides data about "Billing Document Type Hierarchy Node" in SAP S/4HANA. It reads from 1 data source (hrrp_node_n) and exposes 13 fields with key fields BillingDocumentTypeHierarchy, 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
[0..*] I_BillingDocTypeHierNodeTxt _Text $projection.BillingDocumentTypeHierarchy = _Text.BillingDocumentTypeHierarchy and $projection.HierarchyNode = _Text.HierarchyNode and $projection.BillingDocumentType = ''
[0..1] I_BillingDocumentType _BillingDocumentType $projection.BillingDocumentType = _BillingDocumentType.BillingDocumentType
[1..1] I_BillingDocumentTypeHier _Hierarchy $projection.BillingDocumentTypeHierarchy = _Hierarchy.BillingDocumentTypeHierarchy and $projection.ValidityEndDate = _Hierarchy.ValidityEndDate

Annotations (12)

NameValueLevelField
AccessControl.authorizationCheck #MANDATORY view
EndUserText.label Billing Document Type 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
VDM.viewType #BASIC view
Analytics.dataExtraction.enabled true view
ObjectModel.representativeKey HierarchyNode view
ObjectModel.sapObjectNodeType.name BillingDocTypeHierarchyNode view
ObjectModel.modelingPattern #ANALYTICAL_PARENT_CHILD_HIERARCHY_NODE view

Fields (13)

KeyFieldSource TableSource FieldDescription
KEY BillingDocumentTypeHierarchy
KEY HierarchyNode hrrp_node_n hrynode
KEY ValidityEndDate
ValidityStartDate
ParentNode hrrp_node_n parnode
BillingDocumentType hrrp_node_n fkart
HierarchyNodeSequence hrrp_node_n hryseqnbr
HierarchyNodeLevel hrrp_node_n hrylevel
NodeType hrrp_node_n nodetype
HierarchyNodeVal hrrp_node_n nodevalue
_Text _Text
_BillingDocumentType _BillingDocumentType
_Hierarchy _Hierarchy
@AbapCatalog.viewEnhancementCategory: [#NONE]
@AccessControl.authorizationCheck: #MANDATORY
@EndUserText.label: 'Billing Document Type Hierarchy Node'
@Metadata.ignorePropagatedAnnotations: true
@ObjectModel: {usageType: {
  dataClass: #MASTER,
  serviceQuality: #A,
  sizeCategory: #L},
  dataCategory: #HIERARCHY
}
@VDM.viewType: #BASIC
@Hierarchy.parentChild:
[{ recurse:          {   parent: ['ParentNode'],   child:  ['HierarchyNode']  },
  siblingsOrder:    [{   by: 'HierarchyNodeSequence' }],
  directory:        '_Hierarchy'
  }]
@Analytics.dataExtraction.enabled: true
@ObjectModel.representativeKey: 'HierarchyNode'
@ObjectModel.sapObjectNodeType.name:'BillingDocTypeHierarchyNode'
@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 ]

define view entity I_BillingDocTypeHierNode
  as select from hrrp_node_n
  association [0..*] to I_BillingDocTypeHierNodeTxt as _Text                on  $projection.BillingDocumentTypeHierarchy = _Text.BillingDocumentTypeHierarchy
                                                                            and $projection.HierarchyNode                = _Text.HierarchyNode
                                                                            and $projection.BillingDocumentType          = '' // just to show that this association is only to be followed if BillingDocumentType is blank


  association [0..1] to I_BillingDocumentType       as _BillingDocumentType on  $projection.BillingDocumentType = _BillingDocumentType.BillingDocumentType

  association [1..1] to I_BillingDocumentTypeHier   as _Hierarchy           on  $projection.BillingDocumentTypeHierarchy = _Hierarchy.BillingDocumentTypeHierarchy
                                                                            and $projection.ValidityEndDate              = _Hierarchy.ValidityEndDate
{
      @Consumption.filter: {mandatory : true, selectionType : #SINGLE, multipleSelections : false }
      @ObjectModel.foreignKey.association: '_Hierarchy'
  key cast(hrrp_node_n.hryid as fis_hryid_billingdoctype preserving type ) as BillingDocumentTypeHierarchy,
      @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,

      //--[ GENERATED:012:29JlHNUf7jY4ioM8lnJMdG

      @Consumption.valueHelpDefinition: [
        { entity:  { name:    'I_BillingDocumentTypeStdVH',
                     element: 'BillingDocumentType' }
        }]
      // ]--GENERATED

      @ObjectModel.foreignKey.association: '_BillingDocumentType'
      hrrp_node_n.fkart                                                    as BillingDocumentType,

      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,
      _BillingDocumentType,
      _Hierarchy
}
where
      hrrp_node_n.nodetype <> 'D'
  and hrrp_node_n.hrytyp   =  'U504';