C_GLAccountInchartOfAccount
GL Accounts in Chart of Account
C_GLAccountInchartOfAccount is a Consumption CDS View that provides data about "GL Accounts in Chart of Account" in SAP S/4HANA. It reads from 1 data source (I_GLAcctWithGrpChartOfAccounts) and exposes 34 fields with key fields ChartOfAccounts, GLAccount. It has 1 association to related views.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| I_GLAcctWithGrpChartOfAccounts | _GLAccount | from |
Parameters (2)
| Name | Type | Default |
|---|---|---|
| P_Language | sylangu | |
| P_ChartOfAccounts | ktopl |
Associations (1)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [0..1] | I_GLAccountInChartOfAccounts | _GroupGLAccountExternal | $projection.CorporateGroupChartOfAccounts = _GroupGLAccountExternal.ChartOfAccounts and _GLAccount.CorporateGroupAccount = _GroupGLAccountExternal.GLAccount |
Annotations (7)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | CGLACCINCOA | view | |
| EndUserText.label | GL Accounts in Chart of Account | view | |
| VDM.viewType | #CONSUMPTION | view | |
| AccessControl.authorizationCheck | #CHECK | view | |
| ObjectModel.usageType.sizeCategory | #L | view | |
| ObjectModel.usageType.serviceQuality | #C | view | |
| ObjectModel.usageType.dataClass | #MIXED | view |
Fields (34)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | ChartOfAccounts | ChartOfAccounts | Node Class | |
| KEY | GLAccount | GLAccount | General Ledger | |
| GLAccountName | ||||
| GLAccountLongName | ||||
| GLAccountExternal | GLAccountExternal | G/L Acct External ID | ||
| IsBalanceSheetAccount | IsBalanceSheetAccount | Is Balance Sheet Account | ||
| CorporateGroupAccountExternal | _GroupGLAccountExternal | GLAccountExternal | G/L Acct External ID | |
| CorporateGroupAccount | CorporateGroupAccount | Group Account Number | ||
| CorporateGroupAccountLongName | ||||
| ProfitLossAccountType | ProfitLossAccountType | Profit Loss Account Type | ||
| SampleGLAccount | SampleGLAccount | Sample Account | ||
| AccountIsMarkedForDeletion | AccountIsMarkedForDeletion | Deletion Flag | ||
| AccountIsBlockedForCreation | AccountIsBlockedForCreation | Creation Block | ||
| AccountIsBlockedForPosting | AccountIsBlockedForPosting | Posting Block | ||
| AccountIsBlockedForPlanning | AccountIsBlockedForPlanning | Planning Block | ||
| CorporateGroupChartOfAccounts | CorporateGroupChartOfAccounts | Group ChtAccts | ||
| PartnerCompany | PartnerCompany | Trading Partner | ||
| CompanyName | _GlobalCompany | CompanyName | Text | |
| FunctionalArea | FunctionalArea | Sendr Fctl Area | ||
| FunctionalAreaName | ||||
| CreationDate | Time Stamp | |||
| CreatedByUser | CreatedByUser | User Name | ||
| GLAccountType | GLAccountType | G/L Account Type | ||
| GLAccountTypeName | ||||
| GLAccountGroup | GLAccountGroup | Account Group | ||
| AccountGroupName | ||||
| RetainedEarningsGLAccount | _RetainedEarningsGLAccount | RetainedEarningsGLAccount | ||
| IsProfitLossAccount | IsProfitLossAccount | |||
| GLAccountDetermination | ||||
| CreatedByUserName | _User | UserDescription | Full Name | |
| GLAccountIsNotProdnRelevant | GLAccountIsNotProdnRelevant | G/L Account Not Used | ||
| GLAcctCOAImplementStatus | ||||
| GLAccountCOAIsDeliveredBySAP | ||||
| _GroupGLAccountExternal | _GroupGLAccountExternal |
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 C_GLAccountInchartOfAccount.
-- 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: CGLACCINCOA
-- Parameters: P_Language : sylangu, P_ChartOfAccounts : ktopl
CREATE VIEW C_GLAccountInchartOfAccount AS
SELECT
ChartOfAccounts,
GLAccount,
_Text[1: Language = $parameters.P_Language].GLAccountName AS GLAccountName,
_Text[1: Language = $parameters.P_Language].GLAccountLongName AS GLAccountLongName,
GLAccountExternal,
IsBalanceSheetAccount,
_GroupGLAccountExternal.GLAccountExternal AS CorporateGroupAccountExternal,
CorporateGroupAccount,
_CorporateGroupAccountText[1: Language = $parameters.P_Language].GLAccountLongName AS CorporateGroupAccountLongName,
ProfitLossAccountType,
SampleGLAccount,
AccountIsMarkedForDeletion,
AccountIsBlockedForCreation,
AccountIsBlockedForPosting,
AccountIsBlockedForPlanning,
CorporateGroupChartOfAccounts,
PartnerCompany,
_GlobalCompany.CompanyName AS CompanyName,
FunctionalArea,
_FunctionalArea._Text[1: Language = $parameters.P_Language].FunctionalAreaName AS FunctionalAreaName,
cast ( CreationDate as abap.char(8) ) AS CreationDate,
CreatedByUser,
GLAccountType,
_GLAccountType._GLAccountTypeText[1: Language = $parameters.P_Language].GLAccountTypeName AS GLAccountTypeName,
GLAccountGroup,
_GLAccountGroup._GLAccountGroupText[1: Language = $parameters.P_Language].AccountGroupName AS AccountGroupName,
_RetainedEarningsGLAccount.RetainedEarningsGLAccount AS RetainedEarningsGLAccount,
IsProfitLossAccount,
cast ( '' as abap.char(30)) AS GLAccountDetermination,
_User.UserDescription AS CreatedByUserName,
GLAccountIsNotProdnRelevant,
_GLAccount._GLAcctInChartOfAcctsStatus.GLAcctCOAImplementStatus AS GLAcctCOAImplementStatus,
_GLAccount._GLAcctInChartOfAcctsStatus.GLAccountCOAIsDeliveredBySAP AS GLAccountCOAIsDeliveredBySAP
FROM I_GLAcctWithGrpChartOfAccounts AS _GLAccount
LEFT OUTER JOIN I_GLAccountInChartOfAccounts AS _GroupGLAccountExternal ON CorporateGroupChartOfAccounts = _GroupGLAccountExternal.ChartOfAccounts AND _GLAccount.CorporateGroupAccount = _GroupGLAccountExternal.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