I_BudgetAccountText

DDL: I_BUDGETACCOUNTTEXT SQL: IPSMS4CBDACT Type: view BASIC

Budget Account - Text

I_BudgetAccountText is a Basic CDS View that provides data about "Budget Account - Text" in SAP S/4HANA. It reads from 2 data sources (I_GLAccountForPublicSector, skat) and exposes 8 fields with key fields ChartOfAccounts, PubSecBudgetAccount, Language. It has 3 associations to related views.

Data Sources (2)

SourceAliasJoin Type
I_GLAccountForPublicSector GLAcctX inner
skat skat from

Associations (3)

CardinalityTargetAliasCondition
[0..*] I_ChartOfAccountsText _ChartOfAccountsText $projection.ChartOfAccounts = _ChartOfAccountsText.ChartOfAccounts
[0..1] I_Language _Language $projection.Language = _Language.Language
[0..1] I_ChartOfAccounts _ChartOfAccounts $projection.ChartOfAccounts = _ChartOfAccounts.ChartOfAccounts

Annotations (14)

NameValueLevelField
AbapCatalog.sqlViewName IPSMS4CBDACT view
ClientHandling.algorithm #SESSION_VARIABLE view
AbapCatalog.compiler.compareFilter true view
AbapCatalog.preserveKey true view
AccessControl.authorizationCheck #CHECK view
EndUserText.label Budget Account - Text view
ObjectModel.dataCategory #TEXT view
VDM.viewType #BASIC view
VDM.lifecycle.contract.type #PUBLIC_LOCAL_API view
Metadata.ignorePropagatedAnnotations true view
ObjectModel.representativeKey PubSecBudgetAccount view
ObjectModel.usageType.dataClass #MASTER view
ObjectModel.usageType.serviceQuality #A view
ObjectModel.usageType.sizeCategory #S view

Fields (8)

KeyFieldSource TableSource FieldDescription
KEY ChartOfAccounts
KEY PubSecBudgetAccount
KEY Language spras
BudgetAccountName
BudgetAccountDescription
_Language _Language
_ChartOfAccounts _ChartOfAccounts
_ChartOfAccountsText _ChartOfAccountsText
@AbapCatalog.sqlViewName: 'IPSMS4CBDACT'
@ClientHandling.algorithm: #SESSION_VARIABLE
@AbapCatalog.compiler.compareFilter: true
@AbapCatalog.preserveKey: true
@AccessControl.authorizationCheck: #CHECK
@EndUserText.label: 'Budget Account - Text'

@ObjectModel.dataCategory: #TEXT
@VDM.viewType: #BASIC
@VDM.lifecycle.contract.type: #PUBLIC_LOCAL_API
@Metadata.ignorePropagatedAnnotations: true 
@ObjectModel: {
     representativeKey: 'PubSecBudgetAccount',
     usageType: {
         dataClass: #MASTER,
         serviceQuality: #A,
         sizeCategory: #S
     },
     supportedCapabilities: [ #LANGUAGE_DEPENDENT_TEXT ]     
}
@AccessControl.privilegedAssociations: ['_ChartOfAccountsText']

define view I_BudgetAccountText
  as select from skat
    inner join   I_GLAccountForPublicSector as GLAcctX on  skat.ktopl = GLAcctX.ChartOfAccounts
                                                       and skat.saknr = GLAcctX.GLAccount
  association [0..*] to I_ChartOfAccountsText as _ChartOfAccountsText on $projection.ChartOfAccounts = _ChartOfAccountsText.ChartOfAccounts
  association [0..1] to I_Language            as _Language            on $projection.Language = _Language.Language
  association [0..1] to I_ChartOfAccounts     as _ChartOfAccounts     on $projection.ChartOfAccounts = _ChartOfAccounts.ChartOfAccounts

{
      @Consumption.valueHelpDefinition: [
        { entity:  { name:    'I_ChartOfAccountsStdVH',
                     element: 'ChartOfAccounts' }
        }]
      @ObjectModel.text.association: '_ChartOfAccountsText'
      @ObjectModel.foreignKey.association: '_ChartOfAccounts'
  key cast( ktopl as fis_ktopl preserving type ) as ChartOfAccounts,
      @ObjectModel.text.element: 'BudgetAccountDescription'
  key cast( saknr as psm_bdgt_account preserving type ) as PubSecBudgetAccount,
      @Semantics.language: true
      @ObjectModel.foreignKey.association: '_Language'
  key spras           as Language,
      @Semantics.text: true
      cast( txt20 as fmis_budget_account_name ) as BudgetAccountName,
      @Semantics.text: true
      cast( txt50 as psm_budget_account_desc ) as BudgetAccountDescription,
      _Language,
      _ChartOfAccounts,
      @Consumption.hidden: true
      _ChartOfAccountsText

} where GLAcctX.PubSecBdgtAcctRevnExpnCode <> '';
/*+[internal] {
"BASEINFO":
{
"FROM":
[
"I_GLACCOUNTFORPUBLICSECTOR",
"SKAT"
],
"ASSOCIATED":
[
"I_CHARTOFACCOUNTS",
"I_CHARTOFACCOUNTSTEXT",
"I_LANGUAGE"
],
"BASE":
[],
"ANNO_REF":
[],
"SCALAR_FUNCTION":
[],
"VERSION":0,
"ANNOREF_EVALUATION_ERROR":""
}
}*/