P_GLAccountHierNodeBySemTag_3

DDL: P_GLACCOUNTHIERNODEBYSEMTAG_3 Type: view BASIC Package: FINS_FI_SEM_TAG

G/L Account Hierarchy Node By Semantic Tag

P_GLAccountHierNodeBySemTag_3 is a Basic CDS View that provides data about "G/L Account Hierarchy Node By Semantic Tag" in SAP S/4HANA. It reads from 3 data sources (finsc_fagl2semta, hrrp_dir_n, hrrp_node_n) and exposes 6 fields with key fields GLAccountHierarchy, HierarchyNode, SemanticTag. It has 2 associations to related views. Part of development package FINS_FI_SEM_TAG.

Data Sources (3)

SourceAliasJoin Type
finsc_fagl2semta finsc_fagl2semta inner
hrrp_dir_n hrrp_dir_n inner
hrrp_node_n hrrp_node_n from

Associations (2)

CardinalityTargetAliasCondition
[0..1] I_SemanticTag _SemanticTag $projection.SemanticTag = _SemanticTag.SemanticTag
[0..*] I_GLAccountHierarchy _Hierarchy $projection.GLAccountHierarchy = _Hierarchy.GLAccountHierarchy

Annotations (15)

NameValueLevelField
Metadata.allowExtensions false view
AbapCatalog.sqlViewName PFIGLHNSEMTAG3 view
AbapCatalog.compiler.compareFilter true view
AbapCatalog.preserveKey true view
AccessControl.authorizationCheck #NOT_REQUIRED view
ObjectModel.representativeKey HierarchyNode view
ClientHandling.algorithm #SESSION_VARIABLE view
Metadata.ignorePropagatedAnnotations true view
ObjectModel.usageType.dataClass #CUSTOMIZING view
ObjectModel.usageType.serviceQuality #A view
ObjectModel.usageType.sizeCategory #S view
AbapCatalog.buffering.status #ACTIVE view
AbapCatalog.buffering.type #FULL view
VDM.private true view
VDM.viewType #BASIC view

Fields (6)

KeyFieldSource TableSource FieldDescription
KEY GLAccountHierarchy hrrp_node_n hryid_42
KEY HierarchyNode hrrp_node_n hrynode
KEY SemanticTag finsc_fagl2semta fins_sem_tag
HierarchyNodeType
_SemanticTag _SemanticTag
_Hierarchy _Hierarchy
@Metadata.allowExtensions: false
@AbapCatalog: {
  sqlViewName: 'PFIGLHNSEMTAG3',
  compiler.compareFilter: true,
  preserveKey:true
}
@AccessControl.authorizationCheck: #NOT_REQUIRED
@ObjectModel.representativeKey: 'HierarchyNode'
@ClientHandling.algorithm: #SESSION_VARIABLE
@Metadata.ignorePropagatedAnnotations: true
@ObjectModel.usageType: {
  dataClass: #CUSTOMIZING,
  serviceQuality: #A,
  sizeCategory: #S
}
@AbapCatalog.buffering:{
  status: #ACTIVE,
  type: #FULL
}
@VDM.private:true
@VDM.viewType: #BASIC


define view P_GLAccountHierNodeBySemTag_3

  //*****************************************************************************

  // Leafnodes for hierarchies defined with OB58

  //*****************************************************************************


  as select from hrrp_node_n
    inner join   hrrp_dir_n       on  hrrp_dir_n.hryid     =  hrrp_node_n.hryid
                                  and hrrp_dir_n.hryvalto  =  hrrp_node_n.hryvalto
                                  and hrrp_dir_n.hrysource <> 'UH'
    inner join   finsc_fagl2semta on  (
        (
          hrrp_node_n.nodevalue                              between finsc_fagl2semta.vonkt and finsc_fagl2semta.biskt
          and finsc_fagl2semta.vonfb                         =       ''
        )
        or(
          hrrp_node_n.nodevalue                              between finsc_fagl2semta.vonfb and finsc_fagl2semta.bisfb
          and finsc_fagl2semta.vonkt                         =       ''
        )
      )
                                  and finsc_fagl2semta.versn =       hrrp_node_n.hryid

  association [0..1] to I_SemanticTag        as _SemanticTag on $projection.SemanticTag = _SemanticTag.SemanticTag
  association [0..*] to I_GLAccountHierarchy as _Hierarchy   on $projection.GLAccountHierarchy = _Hierarchy.GLAccountHierarchy

{

      @ObjectModel.foreignKey.association: '_Hierarchy'
  key hrrp_node_n.hryid_42                as GLAccountHierarchy,
  key hrrp_node_n.hrynode                 as HierarchyNode,
      @ObjectModel.foreignKey.association: '_SemanticTag'
  key finsc_fagl2semta.fins_sem_tag       as SemanticTag,
      cast('HierarchyNode' as fieldname ) as HierarchyNodeType,
      _SemanticTag,
      _Hierarchy
      //      'OB_L'                        as HierarchySource


}
where
      hrrp_node_n.hrytyp     =  'FSVN'
  and hrrp_node_n.nodetype   =  'L'
  and hrrp_node_n.parnode    <> '00NOTASSGND'
  and finsc_fagl2semta.ergsl =  ''
  and hrrp_node_n.hryvalfrom <= $session.system_date
  and hrrp_node_n.hryvalto   >= $session.system_date