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
KEY CompanyCode CompanyCode
KEY GLAccount GLAccount
GLAccountLongName
GLAccountExternal GLAccountExternal
AuthorizationGroup _GLAccountInCompanyCode AuthorizationGroup
AccountingClerk _GLAccountInCompanyCode AccountingClerk
LastInterestCalcRunDate
CreationDate
CreatedByUser CreatedByUser
PersonFullName
PlanningLevel _GLAccountInCompanyCode PlanningLevel
HouseBank _GLAccountInCompanyCode HouseBank
HouseBankAccount _GLAccountInCompanyCode HouseBankAccount
ExchRateDifferencesAccountDetn _GLAccountInCompanyCode ExchRateDifferencesAccountDetn
ReconciliationAccountType ReconciliationAccountType
ReconciliationAccountTypeName
TaxCategory _GLAccountInCompanyCode TaxCategory
TaxCategoryName
InterestCalculationCode _GLAccountInCompanyCode InterestCalculationCode
GLAccountCurrency _GLAccountInCompanyCode GLAccountCurrency
IsManagedExternally _GLAccountInCompanyCode IsManagedExternally
IsAutomaticallyPosted _GLAccountInCompanyCode IsAutomaticallyPosted
LineItemDisplayIsEnabled LineItemDisplayIsEnabled
SupplementIsAllowed _GLAccountInCompanyCode SupplementIsAllowed
IsOpenItemManaged IsOpenItemManaged
InterestCalculationDate
IntrstCalcFrequencyInMonths _GLAccountInCompanyCode IntrstCalcFrequencyInMonths
AcctgDocItmDisplaySequenceRule AcctgDocItmDisplaySequenceRule
AlternativeGLAccount AlternativeGLAccount
CountryChartOfAccounts CountryChartOfAccounts
AlternativeGLAccountExternal _AlternativeGLAccountExternal GLAccountExternal
JointVentureRecoveryCode _GLAccountInCompanyCode JointVentureRecoveryCode
CommitmentItem _GLAccountInCompanyCode CommitmentItem
TaxCodeIsRequired _GLAccountInCompanyCode TaxCodeIsRequired
BalanceHasLocalCurrency _GLAccountInCompanyCode BalanceHasLocalCurrency
ValuationGroup _GLAccountInCompanyCode ValuationGroup
APARToleranceGroup _GLAccountInCompanyCode APARToleranceGroup
CashPlanningGroup _GLAccountInCompanyCode CashPlanningGroup
IsCashFlowAccount _GLAccountInCompanyCode IsCashFlowAccount
AccountIsBlockedForPosting _GLAccountInCompanyCode AccountIsBlockedForPosting
AccountIsMarkedForDeletion _GLAccountInCompanyCode AccountIsMarkedForDeletion
GLAcctCoCodeImplementStatus
GLAccountCoCodIsDeliveredBySAP
_AlternativeGLAccountExternal _AlternativeGLAccountExternal
@AbapCatalog.sqlViewName: 'CGLACCTINCOCD'
@EndUserText.label: 'Gl accounts in company code'
@VDM.viewType: #CONSUMPTION
//@AccessControl.authorizationCheck: #NOT_ALLOWED

@AccessControl.authorizationCheck: #CHECK

@ObjectModel.usageType.sizeCategory: #L
@ObjectModel.usageType.serviceQuality: #C
@ObjectModel.usageType.dataClass: #MIXED

define view C_GLAccountInCompanyCode
  with parameters
    @Consumption.hidden: true
    @Environment.systemField: #SYSTEM_LANGUAGE
    P_Language        : sylangu,
    P_ChartOfAccounts : ktopl
  as select from    I_GLAccount as _GLAccount
  left outer to one join I_GLAcctImplementStatusActive on GLAccountIsImplementStatusAct is not null
  association [0..1] to I_GLAccountInChartOfAccounts as _AlternativeGLAccountExternal on  $projection.CountryChartOfAccounts = _AlternativeGLAccountExternal.ChartOfAccounts
                                                                                      and $projection.AlternativeGLAccount   = _AlternativeGLAccountExternal.GLAccount
{
  key ChartOfAccounts,
  key CompanyCode,
  key GLAccount,
      _Text[1: Language = $parameters.P_Language].GLAccountLongName,
      GLAccountExternal,
      _GLAccountInCompanyCode.AuthorizationGroup,
      _GLAccountInCompanyCode.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,
      _GLAccountInCompanyCode.HouseBank,
      _GLAccountInCompanyCode.HouseBankAccount,
      _GLAccountInCompanyCode.ExchRateDifferencesAccountDetn,
      ReconciliationAccountType,
      _GLAccountInCompanyCode._Reconciliationaccttype._Text[1: Language = $parameters.P_Language].ReconciliationAccountTypeName,
      _GLAccountInCompanyCode.TaxCategory,
      _GLAccountInCompanyCode._TaxCategory._Text[1: Language = $parameters.P_Language].TaxCategoryName,
      _GLAccountInCompanyCode.InterestCalculationCode,
      _GLAccountInCompanyCode.GLAccountCurrency,
      _GLAccountInCompanyCode.IsManagedExternally,
      _GLAccountInCompanyCode.IsAutomaticallyPosted,
      LineItemDisplayIsEnabled,
      _GLAccountInCompanyCode.SupplementIsAllowed,
      IsOpenItemManaged,
      cast ( _GLAccountInCompanyCode.InterestCalculationDate as abap.char(8) )                                                as InterestCalculationDate,
      _GLAccountInCompanyCode.IntrstCalcFrequencyInMonths,
      AcctgDocItmDisplaySequenceRule,
      AlternativeGLAccount,
      CountryChartOfAccounts,
      _AlternativeGLAccountExternal.GLAccountExternal                                                                         as AlternativeGLAccountExternal,
      _GLAccountInCompanyCode.JointVentureRecoveryCode,
      _GLAccountInCompanyCode.CommitmentItem,
      _GLAccountInCompanyCode.TaxCodeIsRequired,
      _GLAccountInCompanyCode.BalanceHasLocalCurrency,
      _GLAccountInCompanyCode.ValuationGroup,
      _GLAccountInCompanyCode.APARToleranceGroup,
      _GLAccountInCompanyCode.CashPlanningGroup,
      _GLAccountInCompanyCode.IsCashFlowAccount,
      _GLAccountInCompanyCode.AccountIsBlockedForPosting,
      _GLAccountInCompanyCode.AccountIsMarkedForDeletion,
      _GLAccountInCompanyCode._GLAcctInCoCodeStatus.GLAcctCoCodeImplementStatus, 
      _GLAccountInCompanyCode._GLAcctInCoCodeStatus.GLAccountCoCodIsDeliveredBySAP,
      _AlternativeGLAccountExternal
}
where
      _CompanyCode.ChartOfAccounts     =  :P_ChartOfAccounts
      /*
  and ( 
        ( ( 
          _GLAccountInChartOfAccounts._GLAcctInChartOfAcctsProdn.GLAccountIsNotProdnRelevant <> 'X' or 
          _GLAccountInChartOfAccounts._GLAcctInChartOfAcctsProdn.GLAccountIsNotProdnRelevant is null ) and 
          I_GLAcctImplementStatusActive.GLAccountIsImplementStatusAct is null
        ) or
        (  I_GLAcctImplementStatusActive.GLAccountIsImplementStatusAct = 'X' and 
           _GLAccountInChartOfAccounts._GLAcctInChartOfAcctsStatus.GLAcctCOAImplementStatus = 'P'
        )  
  )
  */