P_GLAccountHierNodeBySemTag_1

DDL: P_GLACCOUNTHIERNODEBYSEMTAG_1 Type: view BASIC

P_GLAccountHierNodeBySemTag_1 is a Basic CDS View in SAP S/4HANA. It reads from 2 data sources (hrrp_node_n, uhdt_smtg) and exposes 6 fields with key fields GLAccountHierarchy, HierarchyNode, SemanticTag. It has 2 associations to related views.

Data Sources (2)

SourceAliasJoin Type
hrrp_node_n hrrp_node_n from
uhdt_smtg uhdt_smtg inner

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 PFIGLHNSEMTAG1 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 uhdt_smtg sem_tag
HierarchyNodeType
_SemanticTag _SemanticTag
_Hierarchy _Hierarchy
@Metadata.allowExtensions: false
@AbapCatalog: {
  sqlViewName: 'PFIGLHNSEMTAG1',
  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_1
  as select from hrrp_node_n
    inner join   uhdt_smtg on uhdt_smtg.node_id = hrrp_node_n.uhnodeid
  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 uhdt_smtg.sem_tag                   as SemanticTag,
      cast('HierarchyNode' as fieldname ) as HierarchyNodeType,
      _SemanticTag,
      _Hierarchy
}

where
      hrrp_node_n.hryvalfrom <= $session.system_date
  and hrrp_node_n.hryvalto   >= $session.system_date
  and hrrp_node_n.hrytyp     =  'FSVN'
  and hrrp_node_n.parnode    <> '00NOTASSGND'
/*+[internal] {
"BASEINFO":
{
"FROM":
[
"HRRP_NODE_N",
"UHDT_SMTG"
],
"ASSOCIATED":
[
"I_GLACCOUNTHIERARCHY",
"I_SEMANTICTAG"
],
"BASE":
[],
"ANNO_REF":
[],
"SCALAR_FUNCTION":
[],
"VERSION":0,
"ANNOREF_EVALUATION_ERROR":""
}
}*/