I_InspSubsetResultValueTP

DDL: I_INSPSUBSETRESULTVALUETP SQL: IINSUBRESVALTP Type: view TRANSACTIONAL

Single Value of an Inspection Charc Rslt

I_InspSubsetResultValueTP is a Transactional CDS View that provides data about "Single Value of an Inspection Charc Rslt" in SAP S/4HANA. It reads from 1 data source (I_InspectionResultValue) and exposes 44 fields with key fields InspectionLot, InspPlanOperationInternalID, InspectionSubsetInternalID, InspectionCharacteristic, InspResultValueInternalID. It has 2 associations to related views.

Data Sources (1)

SourceAliasJoin Type
I_InspectionResultValue I_InspectionResultValue from

Associations (2)

CardinalityTargetAliasCondition
[1..1] I_InspectionSubsetTP _InspectionSubset $projection.InspectionLot = _InspectionSubset.InspectionLot and $projection.InspPlanOperationInternalID = _InspectionSubset.InspPlanOperationInternalID and $projection.InspectionSubsetInternalID = _InspectionSubset.InspectionSubsetInternalID
[1..1] I_InspSubsetCharcResultTP _InspSubsetCharacteristic $projection.InspectionLot = _InspSubsetCharacteristic.InspectionLot and $projection.InspPlanOperationInternalID = _InspSubsetCharacteristic.InspPlanOperationInternalID and $projection.InspectionSubsetInternalID = _InspSubsetCharacteristic.InspectionSubsetInternalID and $projection.InspectionCharacteristic = _InspSubsetCharacteristic.InspectionCharacteristic

Annotations (13)

NameValueLevelField
AbapCatalog.sqlViewName IINSUBRESVALTP view
ClientHandling.algorithm #SESSION_VARIABLE view
AbapCatalog.compiler.compareFilter true view
AccessControl.authorizationCheck #CHECK view
EndUserText.label Single Value of an Inspection Charc Rslt view
VDM.viewType #TRANSACTIONAL view
ObjectModel.createEnabled true view
ObjectModel.updateEnabled true view
ObjectModel.deleteEnabled true view
ObjectModel.writeDraftPersistence QINSPRSLTVAL_D view
ObjectModel.usageType.dataClass #TRANSACTIONAL view
ObjectModel.usageType.sizeCategory #L view
ObjectModel.usageType.serviceQuality #A view

Fields (44)

KeyFieldSource TableSource FieldDescription
KEY InspectionLot InspectionLot
KEY InspPlanOperationInternalID InspPlanOperationInternalID
KEY InspectionSubsetInternalID InspectionSubsetInternalID
KEY InspectionCharacteristic InspectionCharacteristic
KEY InspResultValueInternalID InspResultValueInternalID
InspectionResultAttribute InspectionResultAttribute
CreationDate CreationDate
InspResultItemInternalID InspResultItemInternalID
InspectionResultMeasuredValue InspectionResultMeasuredValue
InspResultHasMeasuredValue InspResultHasMeasuredValue
InspectionResultOriginalValue InspectionResultOriginalValue
InspectionResultText InspectionResultText
InspLotSingleUnitNumber InspLotSingleUnitNumber
InspectionResultItem InspectionResultItem
InspRsltFreeDefinedTestEquip InspRsltFreeDefinedTestEquip
InspectionValuationResult InspectionValuationResult
CharacteristicAttributeCodeGrp CharacteristicAttributeCodeGrp
InspectionResultCodeGroup2 InspectionResultCodeGroup2
InspectionResultCodeGroup3 InspectionResultCodeGroup3
InspectionResultCodeGroup4 InspectionResultCodeGroup4
InspectionResultCodeGroup5 InspectionResultCodeGroup5
CharacteristicAttributeCode CharacteristicAttributeCode
InspectionResultCode2 InspectionResultCode2
InspectionResultCode3 InspectionResultCode3
InspectionResultCode4 InspectionResultCode4
InspectionResultCode5 InspectionResultCode5
CharacteristicAttributeCatalog CharacteristicAttributeCatalog
InspectionResultCatalog2 InspectionResultCatalog2
InspectionResultCatalog3 InspectionResultCatalog3
InspectionResultCatalog4 InspectionResultCatalog4
InspectionResultCatalog5 InspectionResultCatalog5
InspectionStartDate InspectionStartDate
InspectionStartTime InspectionStartTime
InspectionEndDate InspectionEndDate
InspectionEndTime InspectionEndTime
_InspectionLot _InspectionLot
_InspectionOperation _InspectionOperation
_InspectionCharacteristic _InspectionCharacteristic
_CharcAttributeCodeGrp _CharcAttributeCodeGrp
_CharcAttributeCode _CharcAttributeCode
_InspectionResultAttribute _InspectionResultAttribute
_InspectionValuationResult _InspectionValuationResult
_InspectionSubset _InspectionSubset
_InspSubsetCharacteristic _InspSubsetCharacteristic
@AbapCatalog.sqlViewName: 'IINSUBRESVALTP'
@ClientHandling.algorithm: #SESSION_VARIABLE
@AbapCatalog.compiler.compareFilter: true
@AccessControl.authorizationCheck: #CHECK
@EndUserText.label: 'Single Value of an Inspection Charc Rslt'
@AccessControl.privilegedAssociations:  [ '_InspectionCharacteristic' ]
@VDM.viewType: #TRANSACTIONAL

// Draft 2.0 Annotations

@ObjectModel.semanticKey:  [ 'InspectionLot' , 'InspPlanOperationInternalID' , 'InspectionCharacteristic' , 'InspResultValueInternalID'  ] 
@ObjectModel:{
    createEnabled: true,
    updateEnabled: true,
    deleteEnabled: true,
//    transactionalProcessingEnabled: true,

//    draftEnabled: true,

    writeDraftPersistence: 'QINSPRSLTVAL_D' 
    }
@ObjectModel.usageType: {
    dataClass: #TRANSACTIONAL,
    sizeCategory: #L,
    serviceQuality: #A
}

define view I_InspSubsetResultValueTP as select from I_InspectionResultValue 
association [1..1] to I_InspectionSubsetTP         as _InspectionSubset         on  $projection.InspectionLot               = _InspectionSubset.InspectionLot
                                                                                and $projection.InspPlanOperationInternalID = _InspectionSubset.InspPlanOperationInternalID
                                                                                and $projection.InspectionSubsetInternalID  = _InspectionSubset.InspectionSubsetInternalID
association [1..1] to I_InspSubsetCharcResultTP  as _InspSubsetCharacteristic  on  $projection.InspectionLot               = _InspSubsetCharacteristic.InspectionLot
                                                                                  and $projection.InspPlanOperationInternalID = _InspSubsetCharacteristic.InspPlanOperationInternalID
                                                                                  and $projection.InspectionSubsetInternalID  = _InspSubsetCharacteristic.InspectionSubsetInternalID
                                                                                  and $projection.InspectionCharacteristic    = _InspSubsetCharacteristic.InspectionCharacteristic
{
      @ObjectModel.foreignKey.association: '_InspectionLot'
  key InspectionLot,
      @ObjectModel.foreignKey.association: '_InspectionOperation'
  key InspPlanOperationInternalID,
      @ObjectModel.foreignKey.association: '_InspectionSubset'
  key InspectionSubsetInternalID,  
      @ObjectModel.foreignKey.association: '_InspectionCharacteristic'
  key InspectionCharacteristic,
  key InspResultValueInternalID,
      @ObjectModel.foreignKey.association: '_InspectionResultAttribute'
      InspectionResultAttribute,
      CreationDate,
      InspResultItemInternalID,
      InspectionResultMeasuredValue,
      InspResultHasMeasuredValue,
      InspectionResultOriginalValue,
      InspectionResultText,
      InspLotSingleUnitNumber,
      InspectionResultItem,
      InspRsltFreeDefinedTestEquip,
      @ObjectModel.foreignKey.association: '_InspectionValuationResult'
      InspectionValuationResult,
      @ObjectModel.foreignKey.association: '_CharcAttributeCodeGrp'
      CharacteristicAttributeCodeGrp,
      InspectionResultCodeGroup2,
      InspectionResultCodeGroup3,
      InspectionResultCodeGroup4,
      InspectionResultCodeGroup5,
      @ObjectModel.foreignKey.association: '_CharcAttributeCode'
      CharacteristicAttributeCode,
      InspectionResultCode2,
      InspectionResultCode3,
      InspectionResultCode4,
      InspectionResultCode5,
      CharacteristicAttributeCatalog,
      InspectionResultCatalog2,
      InspectionResultCatalog3,
      InspectionResultCatalog4,
      InspectionResultCatalog5,
      InspectionStartDate,
      InspectionStartTime,
      InspectionEndDate,
      InspectionEndTime,
      
      // Association

      _InspectionLot,
      _InspectionOperation,
      _InspectionCharacteristic,
      _CharcAttributeCodeGrp,
      _CharcAttributeCode,
      _InspectionResultAttribute,
      _InspectionValuationResult,
      
      // Association to Draft

      @ObjectModel.association.type:  [ #TO_COMPOSITION_ROOT ]
       _InspectionSubset,
      @ObjectModel.association.type:  [ #TO_COMPOSITION_PARENT ] 
       _InspSubsetCharacteristic 
}
where 
InspectionResultAttribute <> '/'                 // Exclude Deleted Single Result value

    
/*+[internal] {
"BASEINFO":
{
"FROM":
[
"I_INSPECTIONRESULTVALUE"
],
"ASSOCIATED":
[
"I_CHARCATTRIBUTECODE",
"I_CHARCATTRIBUTECODEGRP",
"I_INSPECTIONCHARACTERISTIC",
"I_INSPECTIONLOT",
"I_INSPECTIONOPERATION",
"I_INSPECTIONRESULTATTRIBUTE",
"I_INSPECTIONSUBSETTP",
"I_INSPECTIONVALUATIONRESULT",
"I_INSPSUBSETCHARCRESULTTP"
],
"BASE":
[
"I_INSPECTIONRESULTVALUE"
],
"ANNO_REF":
[],
"SCALAR_FUNCTION":
[],
"VERSION":0,
"ANNOREF_EVALUATION_ERROR":""
}
}*/