P_ProjectGLAccountHierarchy
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.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| I_GLAccountHierarchyNode | _node | from |
Associations (1)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [0..1] | I_GLAccountHierarchyNodeT | _nodet | _node.ParentNode = _nodet.HierarchyNode and _nodet.GLAccountHierarchy = _node.GLAccountHierarchy and _nodet.Language = $session.system_language |
Annotations (8)
| Name | Value | Level | Field |
|---|---|---|---|
| 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)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| 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/%'
/*+[internal] {
"BASEINFO":
{
"FROM":
[
"I_GLACCOUNTHIERARCHY",
"I_GLACCOUNTHIERARCHYNODE",
"I_GLACCOUNTHIERARCHYNODET"
],
"ASSOCIATED":
[
"I_GLACCOUNTHIERARCHYNODET"
],
"BASE":
[],
"ANNO_REF":
[],
"SCALAR_FUNCTION":
[],
"VERSION":0,
"ANNOREF_EVALUATION_ERROR":""
}
}*/
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