I_InspectionResultValueTP

DDL: I_INSPECTIONRESULTVALUETP SQL: IINSPRSLTVALTP Type: view TRANSACTIONAL

Inspection Result Single Value

I_InspectionResultValueTP is a Transactional CDS View that provides data about "Inspection Result Single Value" in SAP S/4HANA. It reads from 5 data sources (I_InspResultValueFrmtdValues, I_InspectionResultTP, I_InspectionLot, I_InspectionOperation, I_InspectionResultValue) and exposes 56 fields with key fields InspectionLot, InspPlanOperationInternalID, InspectionCharacteristic, InspResultValueInternalID. It has 2 associations to related views.

Data Sources (5)

SourceAliasJoin Type
I_InspResultValueFrmtdValues _FrmtdVal inner
I_InspectionResultTP _InspectionResult inner
I_InspectionLot _InspLot inner
I_InspectionOperation _InspOper inner
I_InspectionResultValue _InspResultValue from

Associations (2)

CardinalityTargetAliasCondition
[1..1] I_InspCharacteristicTP _InspCharc $projection.InspectionLot = _InspCharc.InspectionLot and $projection.InspPlanOperationInternalID = _InspCharc.InspPlanOperationInternalID and $projection.InspectionCharacteristic = _InspCharc.InspectionCharacteristic
[1..1] E_InspectionResultValue _Extension $projection.InspectionLot = _Extension.InspectionLot and $projection.InspPlanOperationInternalID = _Extension.InspPlanOperationInternalID and $projection.InspectionCharacteristic = _Extension.InspectionCharacteristic and $projection.InspResultValueInternalID = _Extension.InspResultValueInternalID

Annotations (22)

NameValueLevelField
AbapCatalog.sqlViewName IINSPRSLTVALTP view
AbapCatalog.compiler.compareFilter true view
AccessControl.authorizationCheck #CHECK view
EndUserText.label Inspection Result Single Value view
Metadata.ignorePropagatedAnnotations true view
ClientHandling.algorithm #SESSION_VARIABLE view
VDM.viewType #TRANSACTIONAL view
VDM.lifecycle.contract.type #SAP_INTERNAL_API view
ObjectModel.compositionRoot false view
ObjectModel.createEnabled true view
ObjectModel.updateEnabled true view
ObjectModel.deleteEnabled false view
ObjectModel.transactionalProcessingEnabled true view
ObjectModel.writeActivePersistence VQASE_ACTIV view
ObjectModel.entityChangeStateId ChangedDateTime view
ObjectModel.lifecycle.enqueue.expiryBehavior #RELATIVE_TO_LAST_CHANGE view
ObjectModel.lifecycle.enqueue.expiryInterval PT15M view
ObjectModel.lifecycle.processing.expiryBehavior #RELATIVE_TO_LAST_CHANGE view
ObjectModel.lifecycle.processing.expiryInterval PT30M view
ObjectModel.usageType.dataClass #TRANSACTIONAL view
ObjectModel.usageType.sizeCategory #L view
ObjectModel.usageType.serviceQuality #C view

Fields (56)

KeyFieldSource TableSource FieldDescription
KEY InspectionLot I_InspectionResultValue InspectionLot
KEY InspPlanOperationInternalID I_InspectionResultValue InspPlanOperationInternalID
KEY InspectionCharacteristic I_InspectionResultValue InspectionCharacteristic
KEY InspResultValueInternalID I_InspectionResultValue InspResultValueInternalID
InspectionResultAttribute I_InspectionResultValue InspectionResultAttribute
InspectionResultMeasuredValue I_InspectionResultValue InspectionResultMeasuredValue
InspResultFrmtdMeasuredValue I_InspResultValueFrmtdValues InspResultFrmtdMeasuredValue
InspResultHasMeasuredValue I_InspectionResultValue InspResultHasMeasuredValue
InspectionResultOriginalValue I_InspectionResultValue InspectionResultOriginalValue
InspectionNumberOfDefects I_InspectionResultValue InspectionNumberOfDefects
DefectClass I_InspectionResultValue DefectClass
InspResultItemInternalID I_InspectionResultValue InspResultItemInternalID
InspectionSubsetInternalID I_InspectionResultValue InspectionSubsetInternalID
InspectionResultText I_InspectionResultValue InspectionResultText
InspLotSingleUnitNumber I_InspectionResultValue InspLotSingleUnitNumber
InspectionResultItem I_InspectionResultValue InspectionResultItem
InspRsltFreeDefinedTestEquip I_InspectionResultValue InspRsltFreeDefinedTestEquip
InspectionValuationResult I_InspectionResultValue InspectionValuationResult
CharacteristicAttributeCodeGrp I_InspectionResultValue CharacteristicAttributeCodeGrp
InspectionResultCodeGroup2 I_InspectionResultValue InspectionResultCodeGroup2
InspectionResultCodeGroup3 I_InspectionResultValue InspectionResultCodeGroup3
InspectionResultCodeGroup4 I_InspectionResultValue InspectionResultCodeGroup4
InspectionResultCodeGroup5 I_InspectionResultValue InspectionResultCodeGroup5
CharacteristicAttributeCode I_InspectionResultValue CharacteristicAttributeCode
InspectionResultCode2 I_InspectionResultValue InspectionResultCode2
InspectionResultCode3 I_InspectionResultValue InspectionResultCode3
InspectionResultCode4 I_InspectionResultValue InspectionResultCode4
InspectionResultCode5 I_InspectionResultValue InspectionResultCode5
CharcAttributeCodeVers I_InspectionResultValue CharcAttributeCodeVers
InspectionResultCode2Vers I_InspectionResultValue InspectionResultCode2Vers
InspectionResultCode3Vers I_InspectionResultValue InspectionResultCode3Vers
InspectionResultCode4Vers I_InspectionResultValue InspectionResultCode4Vers
InspectionResultCode5Vers I_InspectionResultValue InspectionResultCode5Vers
CharacteristicAttributeCatalog I_InspectionResultValue CharacteristicAttributeCatalog
InspectionResultCatalog2 I_InspectionResultValue InspectionResultCatalog2
InspectionResultCatalog3 I_InspectionResultValue InspectionResultCatalog3
InspectionResultCatalog4 I_InspectionResultValue InspectionResultCatalog4
InspectionResultCatalog5 I_InspectionResultValue InspectionResultCatalog5
Inspector I_InspectionResultValue Inspector
InspectionStartDate I_InspectionResultValue InspectionStartDate
InspectionStartTime I_InspectionResultValue InspectionStartTime
InspectionEndDate I_InspectionResultValue InspectionEndDate
InspectionEndTime I_InspectionResultValue InspectionEndTime
ChangedDateTime I_InspectionResultTP ChangedDateTime
CreationDate I_InspectionResultValue CreationDate
CreatedByUser I_InspectionResultValue CreatedByUser
LastChangedByUser I_InspectionResultValue LastChangedByUser
LastChangeDate I_InspectionResultValue LastChangeDate
ChangedTime I_InspectionResultValue ChangedTime
CreationTime I_InspectionResultValue CreationTime
Plant I_InspectionLot Plant
IsBusinessPurposeCompleted I_InspectionLot IsBusinessPurposeCompleted
WorkCenter
InspectionLotType I_InspectionLot InspectionLotType
MatlQualityAuthorizationGroup I_InspectionLot MatlQualityAuthorizationGroup
_InspCharc _InspCharc
@AbapCatalog.sqlViewName: 'IINSPRSLTVALTP'
@AbapCatalog.compiler.compareFilter: true
@AccessControl.authorizationCheck: #CHECK
@EndUserText.label: 'Inspection Result Single Value'
@Metadata.ignorePropagatedAnnotations: true
@ClientHandling.algorithm: #SESSION_VARIABLE
@VDM: {
    viewType: #TRANSACTIONAL,
    lifecycle.contract.type: #SAP_INTERNAL_API  // Shall be set for #TRANSACTIONAL views

}
 
@ObjectModel: {
//    representativeKey: 'InspResultValueInternalID',

    semanticKey: ['InspectionLot','InspPlanOperationInternalID','InspectionCharacteristic','InspResultValueInternalID'],
    compositionRoot: false,
    createEnabled: true,
    updateEnabled: true,
    deleteEnabled: false,                    // Assume: Inspection Results shall never be deleted!?

    transactionalProcessingEnabled: true,
//    draftEnabled: true,                     // No draft, only 'active persistence'

//    writeDraftPersistence: 'QINSPRSLTVAL_D',         // Not necessary so far

    writeActivePersistence: 'VQASE_ACTIV',
    entityChangeStateId: 'ChangedDateTime',
    lifecycle.enqueue: {
        expiryBehavior: #RELATIVE_TO_LAST_CHANGE,  // Default #RELATIVE_TO_LAST_CHANGE

        expiryInterval: 'PT15M'                   // Default 'PT15M'

      //  notificationBeforeExpiryInterval: 'PT1M'   // Default 'PT5M'

    },
    lifecycle.processing: {
        expiryBehavior: #RELATIVE_TO_LAST_CHANGE,  // Default #RELATIVE_TO_LAST_CHANGE

        expiryInterval: 'PT30M'                        // Default 'PT30M'

      //  notificationBeforeExpiryInterval: 'PT3M'       // Default 'PT10M'

    },
    
    usageType: { dataClass: #TRANSACTIONAL, sizeCategory: #L, serviceQuality: #C }
}

define view I_InspectionResultValueTP  as select from I_InspectionResultValue as _InspResultValue  
    inner join  I_InspectionResultTP   as _InspectionResult         on  _InspResultValue.InspectionLot               = _InspectionResult.InspectionLot
                                                                    and _InspResultValue.InspPlanOperationInternalID = _InspectionResult.InspPlanOperationInternalID
                                                                    and _InspResultValue.InspectionCharacteristic    = _InspectionResult.InspectionCharacteristic
                                                                     
    inner join I_InspectionLot as _InspLot                          on  _InspResultValue.InspectionLot               = _InspLot.InspectionLot
    
    inner join I_InspectionOperation as _InspOper                   on  _InspResultValue.InspectionLot               = _InspOper.InspectionLot 
                                                                    and _InspResultValue.InspPlanOperationInternalID = _InspOper.InspPlanOperationInternalID            

    inner join I_InspResultValueFrmtdValues as _FrmtdVal            on  _InspResultValue.InspectionLot               = _FrmtdVal.InspectionLot
                                                                    and _InspResultValue.InspPlanOperationInternalID = _FrmtdVal.InspPlanOperationInternalID
                                                                    and _InspResultValue.InspectionCharacteristic    = _FrmtdVal.InspectionCharacteristic
                                                                    and _InspResultValue.InspResultValueInternalID   = _FrmtdVal.InspResultValueInternalID

    association [1..1] to I_InspCharacteristicTP as _InspCharc      on  $projection.InspectionLot                    = _InspCharc.InspectionLot
                                                                    and $projection.InspPlanOperationInternalID      = _InspCharc.InspPlanOperationInternalID
                                                                    and $projection.InspectionCharacteristic         = _InspCharc.InspectionCharacteristic

    association [1..1] to E_InspectionResultValue  as _Extension // "_Extension is only defined, but not exposed because of Guideline !

                                                                    on  $projection.InspectionLot                    = _Extension.InspectionLot
                                                                    and $projection.InspPlanOperationInternalID      = _Extension.InspPlanOperationInternalID
                                                                    and $projection.InspectionCharacteristic         = _Extension.InspectionCharacteristic
                                                                    and $projection.InspResultValueInternalID        = _Extension.InspResultValueInternalID                                                                                  
{  
  key _InspResultValue.InspectionLot,
  key _InspResultValue.InspPlanOperationInternalID,
  key _InspResultValue.InspectionCharacteristic,
  key _InspResultValue.InspResultValueInternalID,
   
      _InspResultValue.InspectionResultAttribute,
      @ObjectModel.readOnly: true
      _InspResultValue.InspectionResultMeasuredValue,   
      _FrmtdVal.InspResultFrmtdMeasuredValue,
      @ObjectModel.readOnly: true
      _InspResultValue.InspResultHasMeasuredValue,
      _InspResultValue.InspectionResultOriginalValue,
      _InspResultValue.InspectionNumberOfDefects, 
      @ObjectModel.readOnly: true    
      _InspResultValue.DefectClass,
      @ObjectModel.readOnly: true      
      _InspResultValue.InspResultItemInternalID,
      _InspResultValue.InspectionSubsetInternalID,
      _InspResultValue.InspectionResultText,
      _InspResultValue.InspLotSingleUnitNumber,
      _InspResultValue.InspectionResultItem,
      _InspResultValue.InspRsltFreeDefinedTestEquip,
      _InspResultValue.InspectionValuationResult,
      _InspResultValue.CharacteristicAttributeCodeGrp,
      _InspResultValue.InspectionResultCodeGroup2,
      _InspResultValue.InspectionResultCodeGroup3,
      _InspResultValue.InspectionResultCodeGroup4,
      _InspResultValue.InspectionResultCodeGroup5,
      _InspResultValue.CharacteristicAttributeCode,
      _InspResultValue.InspectionResultCode2,
      _InspResultValue.InspectionResultCode3,
      _InspResultValue.InspectionResultCode4,
      _InspResultValue.InspectionResultCode5,
      @ObjectModel.readOnly: true
      _InspResultValue.CharcAttributeCodeVers,      
      @ObjectModel.readOnly: true
      _InspResultValue.InspectionResultCode2Vers,      
      @ObjectModel.readOnly: true
      _InspResultValue.InspectionResultCode3Vers,      
      @ObjectModel.readOnly: true
      _InspResultValue.InspectionResultCode4Vers,      
      @ObjectModel.readOnly: true
      _InspResultValue.InspectionResultCode5Vers,      
      @ObjectModel.readOnly: true
      _InspResultValue.CharacteristicAttributeCatalog,
      @ObjectModel.readOnly: true
      _InspResultValue.InspectionResultCatalog2,
      @ObjectModel.readOnly: true
      _InspResultValue.InspectionResultCatalog3,
      @ObjectModel.readOnly: true
      _InspResultValue.InspectionResultCatalog4,
      @ObjectModel.readOnly: true
      _InspResultValue.InspectionResultCatalog5,   
      _InspResultValue.Inspector,
      _InspResultValue.InspectionStartDate,
      _InspResultValue.InspectionStartTime,
      _InspResultValue.InspectionEndDate,
      _InspResultValue.InspectionEndTime,
      
//      // eTag - taken from summarized inspection result

      @ObjectModel.readOnly: true
      _InspectionResult.ChangedDateTime,

      @ObjectModel.readOnly: true
      _InspResultValue.CreationDate,
      @ObjectModel.readOnly: true
      _InspResultValue.CreatedByUser,
      @ObjectModel.readOnly: true
      _InspResultValue.LastChangedByUser,
      @ObjectModel.readOnly: true
      _InspResultValue.LastChangeDate,
      @ObjectModel.readOnly: true
      _InspResultValue.ChangedTime,
      @ObjectModel.readOnly: true
      _InspResultValue.CreationTime,

      // for Auth Check only

      @Consumption.hidden: true
      _InspLot.Plant,
      @Consumption.hidden: true
      _InspLot.IsBusinessPurposeCompleted,
      @Consumption.hidden: true
      _InspOper._WorkCenter.WorkCenter,
      @Consumption.hidden: true
      _InspLot.InspectionLotType,
      @Consumption.hidden: true
      _InspLot.MatlQualityAuthorizationGroup,   
          
      /* Object model relations */
      @ObjectModel.association.type: [ #TO_COMPOSITION_ROOT,#TO_COMPOSITION_PARENT ]
      _InspCharc
}
/*+[internal] {
"BASEINFO":
{
"FROM":
[
"I_INSPECTIONLOT",
"I_INSPECTIONOPERATION",
"I_INSPECTIONRESULTTP",
"I_INSPECTIONRESULTVALUE",
"I_INSPRESULTVALUEFRMTDVALUES",
"I_WORKCENTER"
],
"ASSOCIATED":
[
"E_INSPECTIONRESULTVALUE",
"I_INSPCHARACTERISTICTP"
],
"BASE":
[],
"ANNO_REF":
[],
"SCALAR_FUNCTION":
[],
"VERSION":0,
"ANNOREF_EVALUATION_ERROR":""
}
}*/