@AbapCatalog.sqlViewName : 'CINSSBSTSNGLRSLT'
@ClientHandling.algorithm: #SESSION_VARIABLE
@AbapCatalog.compiler.compareFilter: true
@VDM.viewType: #CONSUMPTION
@EndUserText.label : 'Inspection Characteristic Single Result for Insp. Points'
@AccessControl.authorizationCheck: #CHECK
@ObjectModel.usageType: {
dataClass: #MIXED,
sizeCategory: #L, //expected number of rows < 10.000.000
serviceQuality: #D
}
define view C_InspSubsetCharSingleRslt
as select from I_InspSubsetCharacteristic as _InspSubsetChar
left outer join I_InspectionResultValue as _InspectionResultValue
on _InspSubsetChar.InspectionLot = _InspectionResultValue.InspectionLot
and _InspSubsetChar.InspPlanOperationInternalID = _InspectionResultValue.InspPlanOperationInternalID
and _InspSubsetChar.InspectionSubsetInternalID = _InspectionResultValue.InspectionSubsetInternalID
and _InspSubsetChar.InspectionCharacteristic = _InspectionResultValue.InspectionCharacteristic
{
key _InspSubsetChar.InspectionLot,
key _InspSubsetChar.InspPlanOperationInternalID,
key _InspSubsetChar.InspectionCharacteristic,
key _InspSubsetChar.InspectionSubsetInternalID,
key _InspSubsetChar._InspectionCharacteristic._InspectionOperation.InspectionOperation,
_InspSubsetChar._InspectionCharacteristic.InspSpecIsQuantitative,
_InspSubsetChar._InspectionCharacteristic.InspSpecRecordingType,
_InspSubsetChar._InspectionCharacteristic.InspSpecDecimalPlaces,
_InspSubsetChar._InspectionCharacteristic.InspSpecIsMeasuredValueRqd,
_InspSubsetChar._InspectionCharacteristic._InspectionSpecificationUnit._Text[1:Language=$session.system_language].UnitOfMeasureTechnicalName as InspectionSpecificationUnit,
_InspectionResultValue.CharacteristicAttributeCodeGrp,
_InspectionResultValue.InspResultHasMeasuredValue,
case _InspSubsetChar._InspectionCharacteristic.InspSpecIsQuantitative
when 'X' then case _InspSubsetChar._InspectionCharacteristic.InspSpecRecordingType //Quantitative
when '+' then _InspectionResultValue.InspectionValuationResult //'+' is Single
else ''
end
else case _InspSubsetChar._InspectionCharacteristic.InspSpecRecordingType
when '+' then _InspectionResultValue.InspectionValuationResult //'+' is Single
else ''
end
end as InspectionValuationResult,
case _InspSubsetChar._InspectionCharacteristic.InspSpecIsQuantitative
when 'X' then case _InspSubsetChar._InspectionCharacteristic.InspSpecRecordingType //Quantitative
when '+' then _InspectionResultValue.InspectionResultMeasuredValue //'+' is Single
else cast (0 as abap.fltp )
end
else cast (0 as abap.fltp )
end as InspectionResultMeasuredValue,
case _InspSubsetChar._InspectionCharacteristic.InspSpecIsQuantitative
when 'X' then '' //Quantitative
else case _InspSubsetChar._InspectionCharacteristic.InspSpecRecordingType //Qualitive
when '+' then _InspectionResultValue._CharcAttributeCode.CharacteristicAttributeCodeTxt //Single
else '' //Summary
end
end as CharacteristicAttributeCodeTxt,
case _InspSubsetChar._InspectionCharacteristic.InspSpecIsQuantitative
when 'X' then '' //Quantitative
else case _InspSubsetChar._InspectionCharacteristic.InspSpecRecordingType //Qualitive
when '+' then _InspectionResultValue._CharcAttributeCode.CharacteristicAttributeCode //Single
else '' //Summary
end
end as CharacteristicAttributeCode,
// only for auth check
@Consumption.hidden: true
_InspSubsetChar._InspectionLot.Plant as InspectionLotPlant,
@Consumption.hidden: true
_InspSubsetChar._InspectionLot.InspectionLotType,
@Consumption.hidden: true
_InspSubsetChar._InspectionLot.InspectionSubsetType,
@Consumption.hidden: true
_InspSubsetChar._InspectionLot.MatlQualityAuthorizationGroup,
@Consumption.hidden: true
_InspSubsetChar._InspectionOperation._WorkCenter.WorkCenter
}
where _InspSubsetChar.InspectionSubsetInternalID <> '000000'
and _InspectionResultValue.InspectionResultAttribute <> '/'
/*+[internal] {
"BASEINFO":
{
"FROM ":
[
"I_CHARCATTRIBUTECODE",
"I_INSPECTIONCHARACTERISTIC",
"I_INSPECTIONLOT",
"I_INSPECTIONOPERATION",
"I_INSPECTIONRESULTVALUE",
"I_INSPSUBSETCHARACTERISTIC",
"I_UNITOFMEASURE",
"I_UNITOFMEASURETEXT",
"I_WORKCENTER"
],
"ASSOCIATED":
[],
"BASE":
[],
"ANNO_REF":
[],
"SCALAR_FUNCTION":
[],
"VERSION":0,
"ANNOREF_EVALUATION_ERROR":""
}
}*/
Depth:
1
2
3
4
5
All
Reload
C_InspSubsetCharSingleRslt view