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 Node
ValidityEndDate I_GLAccountHierarchyNode ValidityEndDate ValidTo
ValidityStartDate I_GLAccountHierarchyNode ValidityStartDate Validity Start Date
ChartOfAccounts I_GLAccountHierarchyNode ChartOfAccounts Node Class
GLAccount I_GLAccountHierarchyNode GLAccount General Ledger
ProjectCostComponent I_GLAccountHierarchyNode ParentNode Parent Node
ProjectCostComponentName _nodet HierarchyNodeText
NodeType I_GLAccountHierarchyNode NodeType Object Type

Derived SQL interpretation, reconstructed from the parsed view metadata (data sources, associations, and field mappings). SAP annotations are omitted and the structure is reformulated as SQL — this is a functional approximation, not the verbatim SAP source.

-- Derived SQL interpretation of CDS view P_ProjectGLAccountHierarchy.
-- Reconstructed from parsed metadata (data sources, associations, fields).
-- SAP annotations are omitted and the structure is reformulated as SQL;
-- this is a functional approximation, not the verbatim SAP source. Some join
-- conditions may be unavailable and a few CDS constructs are kept as-is.
-- SQL view name: PPROJGLACCTHIER

CREATE VIEW P_ProjectGLAccountHierarchy AS
SELECT
  cast( _node._Hierarchy.HierarchyShortID as hryid ) AS GLAccountHierarchy,
  _node.HierarchyNode AS HierarchyNode,
  _node.ValidityEndDate AS ValidityEndDate,
  _node.ValidityStartDate AS ValidityStartDate,
  _node.ChartOfAccounts AS ChartOfAccounts,
  _node.GLAccount AS GLAccount,
  _node.ParentNode AS ProjectCostComponent,
  _nodet.HierarchyNodeText AS ProjectCostComponentName,
  _node.NodeType AS NodeType
FROM I_GLAccountHierarchyNode AS _node
LEFT OUTER JOIN I_GLAccountHierarchyNodeT AS _nodet ON _node.ParentNode = _nodet.HierarchyNode AND _nodet.GLAccountHierarchy = _node.GLAccountHierarchy AND _nodet.Language = $session.system_language  -- association [0..1]
;