I_CO_GLAccountHierSubtree
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)
| Source | Alias | Join Type |
|---|---|---|
| I_GLAccountHierSubTree | GLAccount | from |
| I_CO_FinStmntHierSubtree | I_CO_FinStmntHierSubtree | inner |
Parameters (1)
| Name | Type | Default |
|---|---|---|
| P_FinancialStatementVersion | versn_011 |
Associations (4)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [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)
| Name | Value | Level | Field |
|---|---|---|---|
| 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)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| 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]
;
Learn More
- VDM (Virtual Data Model) in SAP S/4HANA Explained
- Types of CDS Views: Basic, Composite, Consumption, and Transactional
- CDS View Annotations — A Complete Guide
- What Is a CDS View in SAP S/4HANA?
- SAP Tables vs CDS Views — Key Differences
- Understanding Data Lineage in SAP S/4HANA
- 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
- BSEG to ACDOCA: The Universal Journal Migration
- Business Partner Migration: KNA1/LFA1 to BUT000
- Material Document Migration: MSEG/MKPF to MATDOC
- How to Find the Right CDS View for an SAP Table
- BW Extractor to CDS View Migration Guide
- S/4HANA CDS View Deprecation: What You Need to Know
- ABAP CDS View Tutorial — From Basics to Real-World Examples
- RAP and CDS Views — Building Transactional Apps in SAP S/4HANA
- Sales Document Status Migration: VBUP/VBUK Removal in S/4HANA
- CO Tables in S/4HANA: COEP, COBK, COSS, COSP to ACDOCA