I_GlAccountTextInCompanycode is a Basic CDS View that provides data about "G/L Account in Company Code - Text" in SAP S/4HANA. It reads from 2 data sources (P_Glacct_In_Cc, I_GLAccountText) and exposes 9 fields with key fields GLAccount, CompanyCode, Language.
@AbapCatalog.sqlViewName: 'IFIGLACCINCOCDT'
//@ClientDependent: true@AbapCatalog.compiler.compareFilter: true@EndUserText.label: 'G/L Account in Company Code - Text'
@ObjectModel.dataCategory: #TEXT@VDM.viewType: #BASIC//@AccessControl.authorizationCheck: #NOT_REQUIRED@AccessControl.authorizationCheck: #CHECK@ObjectModel.representativeKey: 'GLAccount'
@AbapCatalog.buffering.status: #NOT_ALLOWED@ObjectModel.usageType.sizeCategory: #L@ObjectModel.usageType.dataClass: #MASTER@ObjectModel.usageType.serviceQuality: #C@ClientHandling.algorithm: #SESSION_VARIABLE@Metadata.ignorePropagatedAnnotations: true@Search.searchable: true@AbapCatalog.preserveKey:true@ObjectModel.supportedCapabilities:[#CDS_MODELING_DATA_SOURCE,#LANGUAGE_DEPENDENT_TEXT,#SEARCHABLE_ENTITY]defineview I_GlAccountTextInCompanycode
asselectfrom I_GLAccountText innerjoin P_Glacct_In_Cc as I_GLAccountInCompanyCode
on I_GLAccountText.ChartOfAccounts = I_GLAccountInCompanyCode.ChartOfAccounts
and I_GLAccountText.GLAccount = I_GLAccountInCompanyCode.GLAccount
association[0..1] to I_Language as _Language
on $projection.Language = _Language.Language
association[0..1] to I_CompanyCode as _CompanyCode
on $projection.CompanyCode = _CompanyCode.CompanyCode
association[0..1] to I_ChartOfAccounts as _ChartOfAccounts
on $projection.ChartOfAccounts = _ChartOfAccounts.ChartOfAccounts
{
@Search.defaultSearchElement:true@Search.fuzzinessThreshold:0.8
@Search.ranking:#HIGH@ObjectModel.text.element: ['GLAccountName','GLAccountLongName']key I_GLAccountText.GLAccount,
@ObjectModel.foreignKey.association: '_CompanyCode' //Inserted by VDM CDS Suite Plugin
key I_GLAccountInCompanyCode.CompanyCode,
@Semantics.language@ObjectModel.foreignKey.association: '_Language' //Inserted by VDM CDS Suite Plugin
key I_GLAccountText.Language,
@ObjectModel.foreignKey.association: '_ChartOfAccounts' //Inserted by VDM CDS Suite Plugin
I_GLAccountText.ChartOfAccounts,
@Semantics.text: true@Search.defaultSearchElement:true@Search.fuzzinessThreshold:0.8
@Search.ranking:#HIGHcast(I_GLAccountText.GLAccountName as fin_glaccount_name preserving type ) as GLAccountName,
@Semantics.text: true@Search.defaultSearchElement:true@Search.fuzzinessThreshold:0.8
@Search.ranking:#HIGHcast(I_GLAccountText.GLAccountLongName as fis_txt50_skat preserving type ) as GLAccountLongName,
_Language,
_CompanyCode,
_ChartOfAccounts
}