C_GLAccountInCompanyCode

DDL: C_GLACCOUNTINCOMPANYCODE SQL: CGLACCTINCOCD Type: view CONSUMPTION Package: FINS_FIS_FICO_APPS

Gl accounts in company code

C_GLAccountInCompanyCode is a Consumption CDS View that provides data about "Gl accounts in company code" in SAP S/4HANA. It reads from 1 data source (I_GLAccount) and exposes 45 fields with key fields ChartOfAccounts, CompanyCode, GLAccount. It has 1 association to related views. Part of development package FINS_FIS_FICO_APPS.

Data Sources (1)

SourceAliasJoin Type
I_GLAccount _GLAccount from

Parameters (2)

NameTypeDefault
P_Language sylangu
P_ChartOfAccounts ktopl

Associations (1)

CardinalityTargetAliasCondition
[0..1] I_GLAccountInChartOfAccounts _AlternativeGLAccountExternal $projection.CountryChartOfAccounts = _AlternativeGLAccountExternal.ChartOfAccounts and $projection.AlternativeGLAccount = _AlternativeGLAccountExternal.GLAccount

Annotations (7)

NameValueLevelField
AbapCatalog.sqlViewName CGLACCTINCOCD view
EndUserText.label Gl accounts in company code 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 (45)

KeyFieldSource TableSource FieldDescription
KEY ChartOfAccounts ChartOfAccounts Node Class
KEY CompanyCode CompanyCode Receiver Company Code
KEY GLAccount GLAccount General Ledger
GLAccountLongName
GLAccountExternal GLAccountExternal G/L Acct External ID
AuthorizationGroup _GLAccountInCompanyCode AuthorizationGroup AuthorizGroup
AccountingClerk _GLAccountInCompanyCode AccountingClerk Clerk Abbrev.
LastInterestCalcRunDate
CreationDate
CreatedByUser CreatedByUser User Name
PersonFullName
PlanningLevel _GLAccountInCompanyCode PlanningLevel Planning Level
HouseBank _GLAccountInCompanyCode HouseBank House Bank
HouseBankAccount _GLAccountInCompanyCode HouseBankAccount House Bank Account
ExchRateDifferencesAccountDetn _GLAccountInCompanyCode ExchRateDifferencesAccountDetn E/R Diff. Key
ReconciliationAccountType ReconciliationAccountType Reconcil. ID
ReconciliationAccountTypeName
TaxCategory _GLAccountInCompanyCode TaxCategory Tax Code
TaxCategoryName
InterestCalculationCode _GLAccountInCompanyCode InterestCalculationCode Interest Indic.
GLAccountCurrency _GLAccountInCompanyCode GLAccountCurrency Currency
IsManagedExternally _GLAccountInCompanyCode IsManagedExternally Is Managed Ext.
IsAutomaticallyPosted _GLAccountInCompanyCode IsAutomaticallyPosted Auto. Posting
LineItemDisplayIsEnabled LineItemDisplayIsEnabled Line Items
SupplementIsAllowed _GLAccountInCompanyCode SupplementIsAllowed Supplement
IsOpenItemManaged IsOpenItemManaged Open Item Management
InterestCalculationDate
IntrstCalcFrequencyInMonths _GLAccountInCompanyCode IntrstCalcFrequencyInMonths Int.Calc.Freq.
AcctgDocItmDisplaySequenceRule AcctgDocItmDisplaySequenceRule Sort key
AlternativeGLAccount AlternativeGLAccount Group Account
CountryChartOfAccounts CountryChartOfAccounts Chart of Accts
AlternativeGLAccountExternal _AlternativeGLAccountExternal GLAccountExternal G/L Acct External ID
JointVentureRecoveryCode _GLAccountInCompanyCode JointVentureRecoveryCode Recovery Ind.
CommitmentItem _GLAccountInCompanyCode CommitmentItem Commitment item
TaxCodeIsRequired _GLAccountInCompanyCode TaxCodeIsRequired Pstg w/o tax allowed
BalanceHasLocalCurrency _GLAccountInCompanyCode BalanceHasLocalCurrency Balances in LC
ValuationGroup _GLAccountInCompanyCode ValuationGroup Valuation Group
APARToleranceGroup _GLAccountInCompanyCode APARToleranceGroup Tolerance Group
CashPlanningGroup _GLAccountInCompanyCode CashPlanningGroup Planning Group
IsCashFlowAccount _GLAccountInCompanyCode IsCashFlowAccount Rel.Cash Flow
AccountIsBlockedForPosting _GLAccountInCompanyCode AccountIsBlockedForPosting Posting Block
AccountIsMarkedForDeletion _GLAccountInCompanyCode AccountIsMarkedForDeletion Deletion Flag
GLAcctCoCodeImplementStatus
GLAccountCoCodIsDeliveredBySAP
_AlternativeGLAccountExternal _AlternativeGLAccountExternal

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_GLAccountInCompanyCode.
-- 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: CGLACCTINCOCD
-- Parameters: P_Language : sylangu, P_ChartOfAccounts : ktopl

CREATE VIEW C_GLAccountInCompanyCode AS
SELECT
  ChartOfAccounts,
  CompanyCode,
  GLAccount,
  _Text[1: Language = $parameters.P_Language].GLAccountLongName AS GLAccountLongName,
  GLAccountExternal,
  _GLAccountInCompanyCode.AuthorizationGroup AS AuthorizationGroup,
  _GLAccountInCompanyCode.AccountingClerk AS AccountingClerk,
  cast ( _GLAccountInCompanyCode.LastInterestCalcRunDate as abap.char(8) ) AS LastInterestCalcRunDate,
  cast ( _GLAccountInCompanyCode.CreationDate as abap.char(8) ) AS CreationDate,
  CreatedByUser,
  _GLAccountInCompanyCode._User.UserDescription AS PersonFullName,
  _GLAccountInCompanyCode.PlanningLevel AS PlanningLevel,
  _GLAccountInCompanyCode.HouseBank AS HouseBank,
  _GLAccountInCompanyCode.HouseBankAccount AS HouseBankAccount,
  _GLAccountInCompanyCode.ExchRateDifferencesAccountDetn AS ExchRateDifferencesAccountDetn,
  ReconciliationAccountType,
  _GLAccountInCompanyCode._Reconciliationaccttype._Text[1: Language = $parameters.P_Language].ReconciliationAccountTypeName AS ReconciliationAccountTypeName,
  _GLAccountInCompanyCode.TaxCategory AS TaxCategory,
  _GLAccountInCompanyCode._TaxCategory._Text[1: Language = $parameters.P_Language].TaxCategoryName AS TaxCategoryName,
  _GLAccountInCompanyCode.InterestCalculationCode AS InterestCalculationCode,
  _GLAccountInCompanyCode.GLAccountCurrency AS GLAccountCurrency,
  _GLAccountInCompanyCode.IsManagedExternally AS IsManagedExternally,
  _GLAccountInCompanyCode.IsAutomaticallyPosted AS IsAutomaticallyPosted,
  LineItemDisplayIsEnabled,
  _GLAccountInCompanyCode.SupplementIsAllowed AS SupplementIsAllowed,
  IsOpenItemManaged,
  cast ( _GLAccountInCompanyCode.InterestCalculationDate as abap.char(8) ) AS InterestCalculationDate,
  _GLAccountInCompanyCode.IntrstCalcFrequencyInMonths AS IntrstCalcFrequencyInMonths,
  AcctgDocItmDisplaySequenceRule,
  AlternativeGLAccount,
  CountryChartOfAccounts,
  _AlternativeGLAccountExternal.GLAccountExternal AS AlternativeGLAccountExternal,
  _GLAccountInCompanyCode.JointVentureRecoveryCode AS JointVentureRecoveryCode,
  _GLAccountInCompanyCode.CommitmentItem AS CommitmentItem,
  _GLAccountInCompanyCode.TaxCodeIsRequired AS TaxCodeIsRequired,
  _GLAccountInCompanyCode.BalanceHasLocalCurrency AS BalanceHasLocalCurrency,
  _GLAccountInCompanyCode.ValuationGroup AS ValuationGroup,
  _GLAccountInCompanyCode.APARToleranceGroup AS APARToleranceGroup,
  _GLAccountInCompanyCode.CashPlanningGroup AS CashPlanningGroup,
  _GLAccountInCompanyCode.IsCashFlowAccount AS IsCashFlowAccount,
  _GLAccountInCompanyCode.AccountIsBlockedForPosting AS AccountIsBlockedForPosting,
  _GLAccountInCompanyCode.AccountIsMarkedForDeletion AS AccountIsMarkedForDeletion,
  _GLAccountInCompanyCode._GLAcctInCoCodeStatus.GLAcctCoCodeImplementStatus AS GLAcctCoCodeImplementStatus,
  _GLAccountInCompanyCode._GLAcctInCoCodeStatus.GLAccountCoCodIsDeliveredBySAP AS GLAccountCoCodIsDeliveredBySAP
FROM I_GLAccount AS _GLAccount
LEFT OUTER JOIN I_GLAccountInChartOfAccounts AS _AlternativeGLAccountExternal ON CountryChartOfAccounts = _AlternativeGLAccountExternal.ChartOfAccounts AND AlternativeGLAccount = _AlternativeGLAccountExternal.GLAccount  -- association [0..1]
;