I_InspectionResultAttribute is a Basic CDS View (Dimension) that provides data about "Inspection Result Attributes" in SAP S/4HANA. It reads from 1 data source (tq77) and exposes 3 fields with key field InspectionResultAttribute. It has 1 association to related views.
@AbapCatalog.sqlViewName: 'IINSPRESATTR'
@AbapCatalog.preserveKey: true@EndUserText.label: 'Inspection Result Attributes' //same as DDL description
@Analytics.dataCategory:#DIMENSION@VDM: {
viewType: #BASIC,
lifecycle.contract.type: #PUBLIC_LOCAL_API
}@AccessControl.authorizationCheck: #NOT_REQUIRED//or #CHECK
@ClientHandling.algorithm: #SESSION_VARIABLE@ObjectModel.supportedCapabilities:
[ #SQL_DATA_SOURCE, #CDS_MODELING_DATA_SOURCE, #CDS_MODELING_ASSOCIATION_TARGET ]@ObjectModel.representativeKey: 'InspectionResultAttribute'
@ObjectModel.usageType: {
dataClass: #CUSTOMIZING,
sizeCategory: #M,
serviceQuality: #A
}@Metadata.ignorePropagatedAnnotations: truedefineview I_InspectionResultAttribute
asselectfrom tq77
association [0..*] to I_Inspresultattributetext as _Text
on $projection.InspectionResultAttribute = _Text.InspectionResultAttribute
{
@ObjectModel.text.association: '_Text'
key tq77.attribut as InspectionResultAttribute,
tq77.sortnr as InspResultAttributeSortNmbr,
case tq77.attribut
when ' ' thencast( 'X' as vdm_qattributeisvalid preserving type )
when '<' thencast( 'X' as vdm_qattributeisvalid preserving type )
when '>' thencast( 'X' as vdm_qattributeisvalid preserving type )
when '≤' thencast( 'X' as vdm_qattributeisvalid preserving type )
when '≥' thencast( 'X' as vdm_qattributeisvalid preserving type )
when '?' thencast( 'X' as vdm_qattributeisvalid preserving type )
when '(' thencast( 'X' as vdm_qattributeisvalid preserving type )
when '[' thencast( 'X' as vdm_qattributeisvalid preserving type )
when '{' thencast( 'X' as vdm_qattributeisvalid preserving type )
when '~' thencast( 'X' as vdm_qattributeisvalid preserving type )
when '#' thencast( 'X' as vdm_qattributeisvalid preserving type )
when 'U' thencast( 'X' as vdm_qattributeisvalid preserving type )
when 'V' thencast( 'X' as vdm_qattributeisvalid preserving type )
when 'W' thencast( 'X' as vdm_qattributeisvalid preserving type )
elsecast( ' ' as vdm_qattributeisvalid preserving type )
endas InspResultAttributeIsValid,
// Associations
_Text
}
/*+[internal] {
"BASEINFO":
{
"FROM":
[
"TQ77"
],
"ASSOCIATED":
[
"I_INSPRESULTATTRIBUTETEXT"
],
"BASE":
[],
"ANNO_REF":
[],
"VERSION":0,
"ANNOREF_EVALUATION_ERROR":""
}
}*/