FAC_DART_Z3_CHARTOFACCOUNTS

DDL: FAC_DART_Z3_CHARTOFACCOUNTS SQL: FAC_DZCHOFACC Type: view Package: FINS_FI_DART_Z3

Chart Of Accounts Master

FAC_DART_Z3_CHARTOFACCOUNTS is a CDS View that provides data about "Chart Of Accounts Master" in SAP S/4HANA. It reads from 3 data sources (I_CompanyCode, I_GLAccountInChartOfAccounts, I_GLAccountInCompanyCode) and exposes 50 fields with key fields GLAccount, CompanyCode. It has 4 associations to related views. Part of development package FINS_FI_DART_Z3.

Data Sources (3)

SourceAliasJoin Type
I_CompanyCode I_CompanyCode from
I_GLAccountInChartOfAccounts I_GLAccountInChartOfAccounts inner
I_GLAccountInCompanyCode I_GLAccountInCompanyCode inner

Parameters (1)

NameTypeDefault
P_Language sylangu

Associations (4)

CardinalityTargetAliasCondition
[0..1] I_ChartOfAccounts _ChartOfAccounts $projection.ChartOfAccounts = _ChartOfAccounts.ChartOfAccounts
[0..*] I_GLAccountText _GLAccountText $projection.ChartOfAccounts = _GLAccountText.ChartOfAccounts and $projection.GLAccount = _GLAccountText.GLAccount
[0..*] I_GLAccountText _CountryGLAccountText $projection.CountryChartOfAccounts = _CountryGLAccountText.ChartOfAccounts and $projection.AlternativeGLAccount = _CountryGLAccountText.GLAccount
[0..1] I_CostElement _CostElement $projection.ControllingArea = _CostElement.ControllingArea and $projection.GLAccount = _CostElement.CostElement

Annotations (8)

NameValueLevelField
AbapCatalog.sqlViewName FAC_DZCHOFACC view
AbapCatalog.compiler.compareFilter true view
AbapCatalog.preserveKey true view
AccessControl.authorizationCheck #CHECK view
EndUserText.label Chart Of Accounts Master view
ObjectModel.usageType.sizeCategory #L view
ObjectModel.usageType.dataClass #MIXED view
ObjectModel.usageType.serviceQuality #D view

Fields (50)

KeyFieldSource TableSource FieldDescription
KEY GLAccount I_GLAccountInChartOfAccounts GLAccount
KEY CompanyCode I_GLAccountInCompanyCode CompanyCode
ChartOfAccounts I_GLAccountInChartOfAccounts ChartOfAccounts
ChartOfAccountsName
GLAccountName
GLAccountLongName
GLAccountGroup I_GLAccountInChartOfAccounts GLAccountGroup
AccountGroupName
PartnerCompany I_GLAccountInChartOfAccounts PartnerCompany
AccountIsMarkedForDeletion I_GLAccountInChartOfAccounts AccountIsMarkedForDeletion
AccountIsBlockedForPlanning I_GLAccountInChartOfAccounts AccountIsBlockedForPlanning
FunctionalArea I_GLAccountInChartOfAccounts FunctionalArea
HouseBank I_GLAccountInCompanyCode HouseBank
HouseBankAccount I_GLAccountInCompanyCode HouseBankAccount
ExchRateDifferencesAccountDetn I_GLAccountInCompanyCode ExchRateDifferencesAccountDetn
ReconciliationAccountType I_GLAccountInCompanyCode ReconciliationAccountType
ReconciliationAccountTypeName Reconciliation Account Type Name
TaxCategory I_GLAccountInCompanyCode TaxCategory
TaxCategoryName
InterestCalculationCode I_GLAccountInCompanyCode InterestCalculationCode
GLAccountCurrency I_GLAccountInCompanyCode GLAccountCurrency
SupplementIsAllowed I_GLAccountInCompanyCode SupplementIsAllowed
IsOpenItemManaged I_GLAccountInCompanyCode IsOpenItemManaged
InterestCalculationDate I_GLAccountInCompanyCode InterestCalculationDate
IntrstCalcFrequencyInMonths I_GLAccountInCompanyCode IntrstCalcFrequencyInMonths
AlternativeGLAccount I_GLAccountInCompanyCode AlternativeGLAccount
TaxCodeIsRequired I_GLAccountInCompanyCode TaxCodeIsRequired
BalanceHasLocalCurrency I_GLAccountInCompanyCode BalanceHasLocalCurrency
ClearingIsLedgerGroupSpecific I_GLAccountInCompanyCode ClearingIsLedgerGroupSpecific
CreationDate I_GLAccountInCompanyCode CreationDate
CreatedByUser I_GLAccountInCompanyCode CreatedByUser
CountryChartOfAccounts I_CompanyCode CountryChartOfAccounts
AlternativeGLAccountName CS G/L account short text (country/region specific)
AlternativeGLAccountLongName CS G/L account long text (country/region specific)
SystemClient System Client
IsBalanceSheetAccount I_GLAccountInChartOfAccounts IsBalanceSheetAccount
GLAccountType I_GLAccountInChartOfAccounts GLAccountType
ControllingArea I_CompanyCode ControllingArea
CostElementCategory _CostElement CostElementCategory
UnitOfMeasure _CostElement UnitOfMeasure
ConsumptionQtyIsRecorded _CostElement ConsumptionQtyIsRecorded
_ChartOfAccounts _ChartOfAccounts
_GLAccountGroup _GLAccountGroup
_GlobalCompany I_GLAccountInChartOfAccounts _GlobalCompany
_FunctionalArea _FunctionalArea
_GLAccountText _GLAccountText
_CountryGLAccountText _CountryGLAccountText
_CompanyCode _CompanyCode
_Reconciliationaccttype _Reconciliationaccttype
_TaxCategory _TaxCategory
@AbapCatalog.sqlViewName: 'FAC_DZCHOFACC'
@AbapCatalog.compiler.compareFilter: true
@AbapCatalog.preserveKey: true
@AccessControl.authorizationCheck: #CHECK
@EndUserText.label: 'Chart Of Accounts Master'
@ObjectModel.usageType.sizeCategory: #L
@ObjectModel.usageType.dataClass:  #MIXED
@ObjectModel.usageType.serviceQuality: #D

define view FAC_DART_Z3_CHARTOFACCOUNTS
  with parameters
    @Consumption.hidden: true
    @Environment.systemField: #SYSTEM_LANGUAGE
    P_Language : sylangu
  as select from I_CompanyCode
    inner join   I_GLAccountInChartOfAccounts on I_CompanyCode.ChartOfAccounts = I_GLAccountInChartOfAccounts.ChartOfAccounts
    inner join   I_GLAccountInCompanyCode     on  I_GLAccountInChartOfAccounts.GLAccount = I_GLAccountInCompanyCode.GLAccount
                                              and I_CompanyCode.CompanyCode              = I_GLAccountInCompanyCode.CompanyCode
  association [0..1] to I_ChartOfAccounts as _ChartOfAccounts      on  $projection.ChartOfAccounts = _ChartOfAccounts.ChartOfAccounts
  association [0..*] to I_GLAccountText   as _GLAccountText        on  $projection.ChartOfAccounts = _GLAccountText.ChartOfAccounts
                                                                   and $projection.GLAccount       = _GLAccountText.GLAccount
  association [0..*] to I_GLAccountText   as _CountryGLAccountText on  $projection.CountryChartOfAccounts = _CountryGLAccountText.ChartOfAccounts
                                                                   and $projection.AlternativeGLAccount   = _CountryGLAccountText.GLAccount
  association [0..1] to I_CostElement     as _CostElement          on  $projection.ControllingArea = _CostElement.ControllingArea
                                                                   and $projection.GLAccount       = _CostElement.CostElement

{
  key I_GLAccountInChartOfAccounts.GLAccount,
      @ObjectModel.foreignKey.association: '_CompanyCode'
  key I_GLAccountInCompanyCode.CompanyCode,
      @ObjectModel.foreignKey.association: '_ChartOfAccounts'
      I_GLAccountInChartOfAccounts.ChartOfAccounts,
      _ChartOfAccounts._Text[1:Language = $parameters.P_Language].ChartOfAccountsName,

      _GLAccountText[1:Language = $parameters.P_Language].GLAccountName,
      _GLAccountText[1:Language = $parameters.P_Language].GLAccountLongName,


      @ObjectModel.foreignKey.association: '_GLAccountGroup'
      I_GLAccountInChartOfAccounts.GLAccountGroup,
      _GLAccountGroup._GLAccountGroupText[1:Language = $parameters.P_Language].AccountGroupName,
      @ObjectModel.foreignKey.association: '_GlobalCompany'
      I_GLAccountInChartOfAccounts.PartnerCompany,
      I_GLAccountInChartOfAccounts.AccountIsMarkedForDeletion,
      I_GLAccountInChartOfAccounts.AccountIsBlockedForPlanning,
      @ObjectModel.foreignKey.association: '_FunctionalArea'
      I_GLAccountInChartOfAccounts.FunctionalArea,


      I_GLAccountInCompanyCode.HouseBank,
      I_GLAccountInCompanyCode.HouseBankAccount,
      I_GLAccountInCompanyCode.ExchRateDifferencesAccountDetn,
      @ObjectModel.foreignKey.association: '_Reconciliationaccttype'
      I_GLAccountInCompanyCode.ReconciliationAccountType,
      @EndUserText.label: 'Reconciliation Account Type Name'
      _Reconciliationaccttype._Text[1:Language = $parameters.P_Language].ReconciliationAccountTypeName,
      @ObjectModel.foreignKey.association: '_TaxCategory'
      I_GLAccountInCompanyCode.TaxCategory,
      _TaxCategory._Text[1:Language = $parameters.P_Language].TaxCategoryName,
      I_GLAccountInCompanyCode.InterestCalculationCode,
      I_GLAccountInCompanyCode.GLAccountCurrency,
      I_GLAccountInCompanyCode.SupplementIsAllowed,
      I_GLAccountInCompanyCode.IsOpenItemManaged,
      I_GLAccountInCompanyCode.InterestCalculationDate,
      I_GLAccountInCompanyCode.IntrstCalcFrequencyInMonths,

      @ObjectModel.foreignKey.association: '_CountryGLAccountText'
      I_GLAccountInCompanyCode.AlternativeGLAccount,
      I_GLAccountInCompanyCode.TaxCodeIsRequired,
      I_GLAccountInCompanyCode.BalanceHasLocalCurrency,
      I_GLAccountInCompanyCode.ClearingIsLedgerGroupSpecific,
      I_GLAccountInCompanyCode.CreationDate,
      I_GLAccountInCompanyCode.CreatedByUser,

      I_CompanyCode.CountryChartOfAccounts,
      @EndUserText.label: 'CS G/L account short text (country/region specific)'
      _CountryGLAccountText[1:Language = $parameters.P_Language].GLAccountName     as AlternativeGLAccountName,
      @EndUserText.label: 'CS G/L account long text (country/region specific)'
      _CountryGLAccountText[1:Language = $parameters.P_Language].GLAccountLongName as AlternativeGLAccountLongName,


      @EndUserText.label: 'System Client'
      $session.client                                                              as SystemClient,
      I_GLAccountInChartOfAccounts.IsBalanceSheetAccount,
      I_GLAccountInChartOfAccounts.GLAccountType,


      I_CompanyCode.ControllingArea,
      _CostElement.CostElementCategory,
      _CostElement.UnitOfMeasure,
      _CostElement.ConsumptionQtyIsRecorded,

      _ChartOfAccounts,
      _GLAccountGroup,
      I_GLAccountInChartOfAccounts._GlobalCompany,
      _FunctionalArea,
      _GLAccountText,
      _CountryGLAccountText,
      _CompanyCode,
      _Reconciliationaccttype,
      _TaxCategory
}