I_CO_GLAccountHierSubtree

DDL: I_CO_GLACCOUNTHIERSUBTREE Type: view COMPOSITE Package: GLO_FIN_IS_CO_GEN_FSV

Colombia G/L Account Hierarchy Sub Tree

I_CO_GLAccountHierSubtree is a Composite CDS View that provides data about "Colombia G/L Account Hierarchy Sub Tree" in SAP S/4HANA. It reads from 2 data sources (I_GLAccountHierSubTree, I_CO_FinStmntHierSubtree) and exposes 11 fields with key fields GLAccountHierarchy, HierarchyNode, GLAccount. It has 4 associations to related views. Part of development package GLO_FIN_IS_CO_GEN_FSV.

Data Sources (2)

SourceAliasJoin Type
I_GLAccountHierSubTree GLAccount from
I_CO_FinStmntHierSubtree I_CO_FinStmntHierSubtree inner

Parameters (1)

NameTypeDefault
P_FinancialStatementVersion versn_011

Associations (4)

CardinalityTargetAliasCondition
[0..1] I_GLAccountHierarchy _GLAccountHierarchy $projection.GLAccountHierarchy = _GLAccountHierarchy.GLAccountHierarchy and $projection.ValidityEndDate = _GLAccountHierarchy.ValidityEndDate
[0..1] I_GLAccountHierarchyNode _GLAccountHierarchyNode $projection.GLAccountHierarchy = _GLAccountHierarchyNode.GLAccountHierarchy and $projection.HierarchyNode = _GLAccountHierarchyNode.HierarchyNode and $projection.ValidityEndDate = _GLAccountHierarchyNode.ValidityEndDate
[0..1] I_GLAccountInChartOfAccounts _GLAccountInChartOfAccounts $projection.ChartOfAccounts = _GLAccountInChartOfAccounts.ChartOfAccounts and $projection.GLAccount = _GLAccountInChartOfAccounts.GLAccount
[0..1] I_ChartOfAccounts _ChartOfAccounts $projection.ChartOfAccounts = _ChartOfAccounts.ChartOfAccounts

Annotations (11)

NameValueLevelField
AbapCatalog.compiler.compareFilter true view
AbapCatalog.sqlViewName ICOFIGLACCHST view
AccessControl.authorizationCheck #NOT_REQUIRED view
ClientHandling.algorithm #SESSION_VARIABLE view
EndUserText.label Colombia G/L Account Hierarchy Sub Tree view
Metadata.ignorePropagatedAnnotations true view
ObjectModel.representativeKey GLAccountHierarchy view
ObjectModel.usageType.dataClass #MIXED view
ObjectModel.usageType.serviceQuality #D view
ObjectModel.usageType.sizeCategory #M view
VDM.viewType #COMPOSITE view

Fields (11)

KeyFieldSource TableSource FieldDescription
KEY GLAccountHierarchy I_GLAccountHierSubTree GLAccountHierarchy
KEY HierarchyNode I_GLAccountHierSubTree HierarchyNode Node
KEY GLAccount
ChartOfAccounts
ValidityEndDate I_GLAccountHierSubTree ValidityEndDate ValidTo
GLAcctHierarchyNodeCategory Hierarchy GLAcctHierarchyNodeCategory
NodeType Hierarchy NodeType Object Type
_GLAccountHierarchy _GLAccountHierarchy
_GLAccountHierarchyNode _GLAccountHierarchyNode
_GLAccountInChartOfAccounts _GLAccountInChartOfAccounts
_ChartOfAccounts _ChartOfAccounts

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 I_CO_GLAccountHierSubtree.
-- 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.
-- Parameters: P_FinancialStatementVersion : versn_011

CREATE VIEW I_CO_GLAccountHierSubtree AS
SELECT
  GLAccount.GLAccountHierarchy AS GLAccountHierarchy,
  GLAccount.HierarchyNode AS HierarchyNode,
  cast( left( GLAccount.GLAccount, 10 ) as fis_racct preserving type ) AS GLAccount,
  cast( left( GLAccount.ChartOfAccounts, 4 ) as fis_ktopl preserving type ) AS ChartOfAccounts,
  GLAccount.ValidityEndDate AS ValidityEndDate,
  Hierarchy.GLAcctHierarchyNodeCategory AS GLAcctHierarchyNodeCategory,
  Hierarchy.NodeType AS NodeType
FROM I_GLAccountHierSubTree AS GLAccount
INNER JOIN I_CO_FinStmntHierSubtree ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN I_GLAccountHierarchy AS _GLAccountHierarchy ON GLAccountHierarchy = _GLAccountHierarchy.GLAccountHierarchy AND ValidityEndDate = _GLAccountHierarchy.ValidityEndDate  -- association [0..1]
LEFT OUTER JOIN I_GLAccountHierarchyNode AS _GLAccountHierarchyNode ON GLAccountHierarchy = _GLAccountHierarchyNode.GLAccountHierarchy AND HierarchyNode = _GLAccountHierarchyNode.HierarchyNode AND ValidityEndDate = _GLAccountHierarchyNode.ValidityEndDate  -- association [0..1]
LEFT OUTER JOIN I_GLAccountInChartOfAccounts AS _GLAccountInChartOfAccounts ON ChartOfAccounts = _GLAccountInChartOfAccounts.ChartOfAccounts AND GLAccount = _GLAccountInChartOfAccounts.GLAccount  -- association [0..1]
LEFT OUTER JOIN I_ChartOfAccounts AS _ChartOfAccounts ON ChartOfAccounts = _ChartOfAccounts.ChartOfAccounts  -- association [0..1]
;