C_GLAccountInchartOfAccount

DDL: C_GLACCOUNTINCHARTOFACCOUNT SQL: CGLACCINCOA Type: view CONSUMPTION

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)

SourceAliasJoin Type
I_GLAcctWithGrpChartOfAccounts _GLAccount from

Parameters (2)

NameTypeDefault
P_Language sylangu
P_ChartOfAccounts ktopl

Associations (1)

CardinalityTargetAliasCondition
[0..1] I_GLAccountInChartOfAccounts _GroupGLAccountExternal $projection.CorporateGroupChartOfAccounts = _GroupGLAccountExternal.ChartOfAccounts and _GLAccount.CorporateGroupAccount = _GroupGLAccountExternal.GLAccount

Annotations (7)

NameValueLevelField
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)

KeyFieldSource TableSource FieldDescription
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]
;