P_ProjectGLAccountHierarchy

DDL: P_PROJECTGLACCOUNTHIERARCHY SQL: PPROJGLACCTHIER Type: view COMPOSITE Package: VDM_PS_COST_PROJ_OVERVIEW

GL Account for Global Account Hierarchy

P_ProjectGLAccountHierarchy is a Composite CDS View that provides data about "GL Account for Global Account Hierarchy" in SAP S/4HANA. It reads from 1 data source (I_GLAccountHierarchyNode) and exposes 9 fields with key field GLAccountHierarchy. It has 1 association to related views. Part of development package VDM_PS_COST_PROJ_OVERVIEW.

Data Sources (1)

SourceAliasJoin Type
I_GLAccountHierarchyNode _node from

Associations (1)

CardinalityTargetAliasCondition
[0..1] I_GLAccountHierarchyNodeT _nodet _node.ParentNode = _nodet.HierarchyNode and _nodet.GLAccountHierarchy = _node.GLAccountHierarchy and _nodet.Language = $session.system_language

Annotations (8)

NameValueLevelField
AbapCatalog.sqlViewName PPROJGLACCTHIER view
AbapCatalog.compiler.compareFilter true view
AbapCatalog.preserveKey true view
AccessControl.authorizationCheck #NOT_REQUIRED view
EndUserText.label GL Account for Global Account Hierarchy view
VDM.viewType #COMPOSITE view
VDM.private true view
ClientHandling.algorithm #SESSION_VARIABLE view

Fields (9)

KeyFieldSource TableSource FieldDescription
KEY GLAccountHierarchy
HierarchyNode I_GLAccountHierarchyNode HierarchyNode
ValidityEndDate I_GLAccountHierarchyNode ValidityEndDate
ValidityStartDate I_GLAccountHierarchyNode ValidityStartDate
ChartOfAccounts I_GLAccountHierarchyNode ChartOfAccounts
GLAccount I_GLAccountHierarchyNode GLAccount
ProjectCostComponent I_GLAccountHierarchyNode ParentNode
ProjectCostComponentName _nodet HierarchyNodeText
NodeType I_GLAccountHierarchyNode NodeType
@AbapCatalog.sqlViewName: 'PPROJGLACCTHIER'
@AbapCatalog.compiler.compareFilter: true
@AbapCatalog.preserveKey: true
@AccessControl.authorizationCheck: #NOT_REQUIRED
@EndUserText.label: 'GL Account for Global Account Hierarchy'
@VDM.viewType: #COMPOSITE
@VDM.private:true
@ClientHandling.algorithm: #SESSION_VARIABLE
define view P_ProjectGLAccountHierarchy
  as select from I_GLAccountHierarchyNode         as _node
  association [0..1] to I_GLAccountHierarchyNodeT as _nodet on  _node.ParentNode = _nodet.HierarchyNode
                                                            and _nodet.GLAccountHierarchy = _node.GLAccountHierarchy
                                                            and _nodet.Language  = $session.system_language
{
  key cast( _node._Hierarchy.HierarchyShortID as hryid ) as GLAccountHierarchy,
      _node.HierarchyNode               as HierarchyNode,
      @Semantics.businessDate.to: true
      _node.ValidityEndDate             as ValidityEndDate,
      @Semantics.businessDate.from: true
      _node.ValidityStartDate           as ValidityStartDate,
      _node.ChartOfAccounts             as ChartOfAccounts,
      _node.GLAccount                   as GLAccount,
      _node.ParentNode                  as ProjectCostComponent,
      _nodet.HierarchyNodeText          as ProjectCostComponentName,
      _node.NodeType
}
where
      _node.NodeType           =    'L'
  and _node.GLAccountHierarchy like 'H109/%'