I_GLAcctWithGrpChartOfAccounts
gl account with group chart of account
I_GLAcctWithGrpChartOfAccounts is a Basic CDS View (Dimension) that provides data about "gl account with group chart of account" in SAP S/4HANA. It reads from 1 data source (t004) and exposes 35 fields with key fields ChartOfAccounts, GLAccount. It has 13 associations to related views.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| t004 | t004 | left_outer |
Associations (13)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [0..1] | I_ChartOfAccounts | _GroupChartOfAccounts | $projection.CorporateGroupChartOfAccounts = _GroupChartOfAccounts.ChartOfAccounts |
| [0..*] | I_GLAccountText | _CorporateGroupAccountText | $projection.CorporateGroupChartOfAccounts = _CorporateGroupAccountText.ChartOfAccounts and $projection.CorporateGroupAccount = _CorporateGroupAccountText.GLAccount |
| [0..1] | I_ChartOfAccounts | _ChartOfAccounts | $projection.ChartOfAccounts = _ChartOfAccounts.ChartOfAccounts |
| [0..*] | I_GLAccountText | _Text | $projection.ChartOfAccounts = _Text.ChartOfAccounts and $projection.GLAccount = _Text.GLAccount |
| [0..1] | I_GLAccountType | _GLAccountType | $projection.GLAccountType = _GLAccountType.GLAccountType |
| [0..1] | I_RetainedEarningsGLAccount | _RetainedEarningsGLAccount | $projection.ChartOfAccounts = _RetainedEarningsGLAccount.ChartOfAccounts and $projection.ProfitLossAccountType = _RetainedEarningsGLAccount.ProfitLossAccountType |
| [0..*] | I_GLAccountHierarchyNode | _GLAccountHierarchyNode | $projection.GLAccount = _GLAccountHierarchyNode.GLAccount and $projection.ChartOfAccounts = _GLAccountHierarchyNode.ChartOfAccounts |
| [0..1] | I_FunctionalArea | _FunctionalArea | $projection.FunctionalArea = _FunctionalArea.FunctionalArea |
| [1..1] | I_User | _User | $projection.CreatedByUser = _User.UserID |
| [1..1] | I_Globalcompany | _GlobalCompany | $projection.PartnerCompany = _GlobalCompany.Company |
| [0..1] | I_GLAccountGroup | _GLAccountGroup | $projection.GLAccountGroup = _GLAccountGroup.GLAccountGroup and $projection.ChartOfAccounts = _GLAccountGroup.ChartOfAccounts |
| [0..1] | I_GLAcctInChartOfAcctsProdn | _GLAcctInChartOfAcctsProdn | $projection.ChartOfAccounts = _GLAcctInChartOfAcctsProdn.ChartOfAccounts and $projection.GLAccount = _GLAcctInChartOfAcctsProdn.GLAccount |
| [0..1] | I_GLAcctInCOAImplementStat | _GLAcctInChartOfAcctsStatus | $projection.ChartOfAccounts = _GLAcctInChartOfAcctsStatus.ChartOfAccounts and $projection.GLAccount = _GLAcctInChartOfAcctsStatus.GLAccount |
Annotations (14)
| Name | Value | Level | Field |
|---|---|---|---|
| Analytics.dataCategory | #DIMENSION | view | |
| Analytics.dataExtraction.enabled | true | view | |
| VDM.viewType | #BASIC | view | |
| AbapCatalog.sqlViewName | IFIGLGRPCOA | view | |
| ObjectModel.representativeKey | GLAccount | view | |
| AbapCatalog.buffering.status | #NOT_ALLOWED | view | |
| ObjectModel.usageType.sizeCategory | #M | view | |
| ObjectModel.usageType.dataClass | #MASTER | view | |
| ObjectModel.usageType.serviceQuality | #B | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| Metadata.ignorePropagatedAnnotations | true | view | |
| AccessControl.authorizationCheck | #CHECK | view | |
| Metadata.allowExtensions | true | view | |
| EndUserText.label | gl account with group chart of account | view |
Fields (35)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | ChartOfAccounts | ska1 | ktopl | G/L Chart of Accounts |
| KEY | GLAccount | ska1 | saknr | G/L Account |
| IsBalanceSheetAccount | ska1 | xbilk | Checkbox | |
| GLAccountGroup | ska1 | ktoks | GL Grp | |
| CorporateGroupAccount | ska1 | bilkt | Group Account Number | |
| ProfitLossAccountType | ska1 | gvtyp | P&L state. acct | |
| SampleGLAccount | ska1 | mustr | Sample table | |
| AccountIsMarkedForDeletion | ska1 | xloev | Deletion Flag | |
| AccountIsBlockedForCreation | ska1 | xspea | Creation Block | |
| AccountIsBlockedForPosting | ska1 | xspeb | Posting Block | |
| AccountIsBlockedForPlanning | ska1 | xspep | Planning Block | |
| PartnerCompany | ska1 | vbund | Trading Partner | |
| FunctionalArea | ska1 | func_area | Receiving Func. Area | |
| CreationDate | ska1 | erdat | Entered On | |
| CreatedByUser | ska1 | ernam | User Name | |
| LastChangeDateTime | ska1 | last_changed_ts | Time Stamp | |
| GLAccountType | ska1 | glaccount_type | G/L Account Type | |
| GLAccountExternal | ska1 | sakan | G/L Account | |
| BankReconciliationAccount | ska1 | main_saknr | Reconciliation Acct | |
| xbilkXthenelseXendasIsProfitLossAccount | Profit Loss Account | |||
| CorporateGroupChartOfAccounts | t004 | kktpl | Group ChtAccts | |
| GLAccountIsNotProdnRelevant | _GLAcctInChartOfAcctsProdn | GLAccountIsNotProdnRelevant | G/L Account Not Used | |
| _CorporateGroupAccountText | _CorporateGroupAccountText | |||
| _GroupChartOfAccounts | _GroupChartOfAccounts | |||
| _User | _User | |||
| _ChartOfAccounts | _ChartOfAccounts | |||
| _Text | _Text | |||
| _GLAccountHierarchyNode | _GLAccountHierarchyNode | |||
| _FunctionalArea | _FunctionalArea | |||
| _RetainedEarningsGLAccount | _RetainedEarningsGLAccount | |||
| _GLAccountType | _GLAccountType | |||
| _GLAccountGroup | _GLAccountGroup | |||
| _GlobalCompany | _GlobalCompany | |||
| _GLAcctInChartOfAcctsProdn | _GLAcctInChartOfAcctsProdn | |||
| _GLAcctInChartOfAcctsStatus | _GLAcctInChartOfAcctsStatus |
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_GLAcctWithGrpChartOfAccounts.
-- 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: IFIGLGRPCOA
CREATE VIEW I_GLAcctWithGrpChartOfAccounts AS
SELECT
ska1.ktopl AS ChartOfAccounts,
ska1.saknr AS GLAccount,
ska1.xbilk AS IsBalanceSheetAccount,
ska1.ktoks AS GLAccountGroup,
ska1.bilkt AS CorporateGroupAccount,
ska1.gvtyp AS ProfitLossAccountType,
ska1.mustr AS SampleGLAccount,
ska1.xloev AS AccountIsMarkedForDeletion,
ska1.xspea AS AccountIsBlockedForCreation,
ska1.xspeb AS AccountIsBlockedForPosting,
ska1.xspep AS AccountIsBlockedForPlanning,
ska1.vbund AS PartnerCompany,
ska1.func_area AS FunctionalArea,
ska1.erdat AS CreationDate,
ska1.ernam AS CreatedByUser,
ska1.last_changed_ts AS LastChangeDateTime,
ska1.glaccount_type AS GLAccountType,
ska1.sakan AS GLAccountExternal,
ska1.main_saknr AS BankReconciliationAccount,
case when ska1.xbilk = 'X' then ' ' else 'X' end as IsProfitLossAccount AS xbilkXthenelseXendasIsProfitLossAccount,
t004.kktpl AS CorporateGroupChartOfAccounts,
_GLAcctInChartOfAcctsProdn.GLAccountIsNotProdnRelevant AS GLAccountIsNotProdnRelevant
LEFT OUTER JOIN t004 ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN I_ChartOfAccounts AS _GroupChartOfAccounts ON CorporateGroupChartOfAccounts = _GroupChartOfAccounts.ChartOfAccounts -- association [0..1]
LEFT OUTER JOIN I_GLAccountText AS _CorporateGroupAccountText ON CorporateGroupChartOfAccounts = _CorporateGroupAccountText.ChartOfAccounts AND CorporateGroupAccount = _CorporateGroupAccountText.GLAccount -- association [0..*]
LEFT OUTER JOIN I_ChartOfAccounts AS _ChartOfAccounts ON ChartOfAccounts = _ChartOfAccounts.ChartOfAccounts -- association [0..1]
LEFT OUTER JOIN I_GLAccountText AS _Text ON ChartOfAccounts = _Text.ChartOfAccounts AND GLAccount = _Text.GLAccount -- association [0..*]
LEFT OUTER JOIN I_GLAccountType AS _GLAccountType ON GLAccountType = _GLAccountType.GLAccountType -- association [0..1]
LEFT OUTER JOIN I_RetainedEarningsGLAccount AS _RetainedEarningsGLAccount ON ChartOfAccounts = _RetainedEarningsGLAccount.ChartOfAccounts AND ProfitLossAccountType = _RetainedEarningsGLAccount.ProfitLossAccountType -- association [0..1]
LEFT OUTER JOIN I_GLAccountHierarchyNode AS _GLAccountHierarchyNode ON GLAccount = _GLAccountHierarchyNode.GLAccount AND ChartOfAccounts = _GLAccountHierarchyNode.ChartOfAccounts -- association [0..*]
LEFT OUTER JOIN I_FunctionalArea AS _FunctionalArea ON FunctionalArea = _FunctionalArea.FunctionalArea -- association [0..1]
LEFT OUTER JOIN I_User AS _User ON CreatedByUser = _User.UserID -- association [1..1]
LEFT OUTER JOIN I_Globalcompany AS _GlobalCompany ON PartnerCompany = _GlobalCompany.Company -- association [1..1]
LEFT OUTER JOIN I_GLAccountGroup AS _GLAccountGroup ON GLAccountGroup = _GLAccountGroup.GLAccountGroup AND ChartOfAccounts = _GLAccountGroup.ChartOfAccounts -- association [0..1]
LEFT OUTER JOIN I_GLAcctInChartOfAcctsProdn AS _GLAcctInChartOfAcctsProdn ON ChartOfAccounts = _GLAcctInChartOfAcctsProdn.ChartOfAccounts AND GLAccount = _GLAcctInChartOfAcctsProdn.GLAccount -- association [0..1]
LEFT OUTER JOIN I_GLAcctInCOAImplementStat AS _GLAcctInChartOfAcctsStatus ON ChartOfAccounts = _GLAcctInChartOfAcctsStatus.ChartOfAccounts AND GLAccount = _GLAcctInChartOfAcctsStatus.GLAccount -- 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