I_PubSecBudgetAccountText

DDL: I_PUBSECBUDGETACCOUNTTEXT SQL: IPSMS4CBDACCTT Type: view BASIC Package: ODATA_PSM_S4C_FM_MD

Budget Account - Text

I_PubSecBudgetAccountText is a Basic CDS View that provides data about "Budget Account - Text" in SAP S/4HANA. It reads from 2 data sources (P_Glacct_In_Cc, I_BudgetAccountText) and exposes 9 fields with key fields PubSecBudgetAccount, PubSecBudgetAccountCoCode, Language. It has 3 associations to related views. Part of development package ODATA_PSM_S4C_FM_MD.

Data Sources (2)

SourceAliasJoin Type
P_Glacct_In_Cc I_GLAccountInCompanyCode inner
I_BudgetAccountText MainText from

Associations (3)

CardinalityTargetAliasCondition
[0..1] I_Language _Language $projection.Language = _Language.Language
[0..1] I_CompanyCode _PubSecBudgetAccountCoCode $projection.PubSecBudgetAccountCoCode = _PubSecBudgetAccountCoCode.CompanyCode
[0..1] I_ChartOfAccounts _ChartOfAccounts $projection.ChartOfAccounts = _ChartOfAccounts.ChartOfAccounts

Annotations (17)

NameValueLevelField
AbapCatalog.sqlViewName IPSMS4CBDACCTT 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
AbapCatalog.buffering.status #NOT_ALLOWED 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 #B view
ObjectModel.usageType.sizeCategory #S view
Search.searchable true view
Consumption.ranked true view

Fields (9)

KeyFieldSource TableSource FieldDescription
KEY PubSecBudgetAccount I_BudgetAccountText PubSecBudgetAccount
KEY PubSecBudgetAccountCoCode
KEY Language I_BudgetAccountText Language
ChartOfAccounts I_BudgetAccountText ChartOfAccounts
BudgetAccountName I_BudgetAccountText BudgetAccountName
BudgetAccountDescription I_BudgetAccountText BudgetAccountDescription
_Language _Language
_PubSecBudgetAccountCoCode _PubSecBudgetAccountCoCode
_ChartOfAccounts _ChartOfAccounts
@AbapCatalog.sqlViewName: 'IPSMS4CBDACCTT'
@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
@AbapCatalog.buffering.status: #NOT_ALLOWED
@VDM.lifecycle.contract.type: #PUBLIC_LOCAL_API
@Metadata.ignorePropagatedAnnotations: true
@ObjectModel: {
     representativeKey: 'PubSecBudgetAccount',
     usageType: {
         dataClass: #MASTER,
         serviceQuality: #B,
         sizeCategory: #S
     },
     supportedCapabilities: [ #LANGUAGE_DEPENDENT_TEXT ]          
}
@Search.searchable: true
// added to have type ahead functionality

@Consumption.ranked: true

define view I_PubSecBudgetAccountText
  as select from I_BudgetAccountText as MainText
    inner join   P_Glacct_In_Cc      as I_GLAccountInCompanyCode on  MainText.ChartOfAccounts     = I_GLAccountInCompanyCode.ChartOfAccounts
                                                                 and MainText.PubSecBudgetAccount = I_GLAccountInCompanyCode.GLAccount
  association [0..1] to I_Language        as _Language                  on $projection.Language = _Language.Language
  association [0..1] to I_CompanyCode     as _PubSecBudgetAccountCoCode on $projection.PubSecBudgetAccountCoCode = _PubSecBudgetAccountCoCode.CompanyCode
  association [0..1] to I_ChartOfAccounts as _ChartOfAccounts           on $projection.ChartOfAccounts = _ChartOfAccounts.ChartOfAccounts
{
      @Search.defaultSearchElement:true
      @Search.fuzzinessThreshold:0.8
      @Search.ranking:#LOW
      @ObjectModel.text.element: 'BudgetAccountDescription'
  key MainText.PubSecBudgetAccount,
      @ObjectModel.foreignKey.association: '_PubSecBudgetAccountCoCode' //Inserted by VDM CDS Suite Plugin

  key cast( I_GLAccountInCompanyCode.CompanyCode as psm_bdgt_account_cocode preserving type ) as PubSecBudgetAccountCoCode,
      @Semantics.language
      @ObjectModel.foreignKey.association: '_Language' //Inserted by VDM CDS Suite Plugin

  key MainText.Language,
      @ObjectModel.foreignKey.association: '_ChartOfAccounts' //Inserted by VDM CDS Suite Plugin

      MainText.ChartOfAccounts,

      @Semantics.text: true
      @Search.defaultSearchElement:true
      @Search.fuzzinessThreshold:0.8
      @Search.ranking:#LOW
      MainText.BudgetAccountName,
      @Semantics.text: true
      @Search.defaultSearchElement:true
      @Search.fuzzinessThreshold:0.8
      @Search.ranking:#LOW
      MainText.BudgetAccountDescription,
      _Language,
      _PubSecBudgetAccountCoCode,
      _ChartOfAccounts
}