P_GLAccountHierNodeBySemTag_2
G/L Account Hierarchy Node By Semantic Tag
P_GLAccountHierNodeBySemTag_2 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)
| Source | Alias | Join Type |
|---|---|---|
| finsc_fagl2semta | finsc_fagl2semta | inner |
| hrrp_dir_n | hrrp_dir_n | inner |
| hrrp_node_n | hrrp_node_n | from |
Associations (2)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [0..1] | I_SemanticTag | _SemanticTag | $projection.SemanticTag = _SemanticTag.SemanticTag |
| [0..*] | I_GLAccountHierarchy | _Hierarchy | $projection.GLAccountHierarchy = _Hierarchy.GLAccountHierarchy |
Annotations (15)
| Name | Value | Level | Field |
|---|---|---|---|
| Metadata.allowExtensions | false | view | |
| AbapCatalog.sqlViewName | PFIGLHNSEMTAG2 | 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)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| 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: 'PFIGLHNSEMTAG2',
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_2
//*****************************************************************************
// Nodes for hierarchies defined with OB58
//*****************************************************************************
as select from hrrp_node_n
inner join finsc_fagl2semta on finsc_fagl2semta.ergsl = hrrp_node_n.nodevalue
and finsc_fagl2semta.versn = hrrp_node_n.hryid
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'
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_N' as HierarchySource
}
where
hrrp_node_n.hrytyp = 'FSVN'
and hrrp_node_n.nodetype = 'N'
and hrrp_node_n.hryvalfrom <= $session.system_date
and hrrp_node_n.hryvalto >= $session.system_date
Learn More
- What Is a CDS View in SAP S/4HANA?
- Types of CDS Views: Basic, Composite, Consumption, and Transactional
- SAP Tables vs CDS Views — Key Differences
- Understanding Data Lineage in SAP S/4HANA
- VDM (Virtual Data Model) in SAP S/4HANA Explained
- CDS View Annotations — A Complete Guide
- CDS View Field Mapping and Associations
- Understanding the SAP S/4HANA Data Model
- CDS View Extensions and Custom Fields in SAP S/4HANA
- Released APIs and Stability Contracts in SAP S/4HANA