I_GLRecordTypeText is a Basic CDS View that provides data about "General Ledger Record Type - Text" in SAP S/4HANA. It reads from 1 data source (dd07t) and exposes 4 fields with key fields Language, GLRecordType.
@VDM.lifecycle.contract.type: #PUBLIC_LOCAL_API@AbapCatalog.preserveKey: true@AbapCatalog.compiler.compareFilter: true@EndUserText.label: 'General Ledger Record Type - Text'
//@Analytics: { dataExtraction.enabled: true }@VDM.viewType: #BASIC@ObjectModel.dataCategory: #TEXT@AbapCatalog.sqlViewName: 'IFIGLRECORDTYPET'
@AccessControl.authorizationCheck: #NOT_REQUIRED@ObjectModel.representativeKey: 'GLRecordType'
@ObjectModel.usageType.sizeCategory: #S@ObjectModel.usageType.dataClass: #MASTER@ObjectModel.usageType.serviceQuality: #A@ClientHandling.algorithm: #SESSION_VARIABLE//@AbapCatalog.buffering.status: #ACTIVE (in moment not possible to activate because of ClientHandling.algorithm: #SESSION_VARIABLE
//@AbapCatalog.buffering.type: #GENERIC//@AbapCatalog.buffering.numberOfKeyFields: 2
@Metadata.ignorePropagatedAnnotations: true//@Search.searchable: true // not possible if field iscast to the correct data element. Viewisnot CONTAINS compatible
@ObjectModel.modelingPattern: #LANGUAGE_DEPENDENT_TEXT@ObjectModel.supportedCapabilities: [#LANGUAGE_DEPENDENT_TEXT,
#CDS_MODELING_ASSOCIATION_TARGET,
#SQL_DATA_SOURCE,
#CDS_MODELING_DATA_SOURCE]defineview I_GLRecordTypeText
asselectfrom dd07t
association[0..1] to I_Language as _Language on $projection.Language = _Language.Language
{
@Semantics.languagekeycast( ddlanguage as spras ) as Language,
keycast( substring(domvalue_l, 1, 1) as rrcty ) as GLRecordType,
@Semantics.text// @Search.defaultSearchElement: true// @Search.fuzzinessThreshold: 0.8
cast( ddtext as fis_glrecordtypename preserving type ) as GLRecordTypeName,
_Language
}
where dd07t.domname = 'RRCTY' and dd07t.as4local = 'A';
/*+[internal] {
"BASEINFO":
{
"FROM":
[
"DD07T"
],
"ASSOCIATED":
[
"I_LANGUAGE"
],
"BASE":
[],
"ANNO_REF":
[],
"SCALAR_FUNCTION":
[],
"VERSION":0,
"ANNOREF_EVALUATION_ERROR":""
}
}*/