I_ProdnRtgVersInspSpecVH

DDL: I_PRODNRTGVERSINSPSPECVH SQL: IRTGMICVH Type: view COMPOSITE Package: MPE_PLAN_RTG_VERS

MIC Value Help

I_ProdnRtgVersInspSpecVH is a Composite CDS View that provides data about "MIC Value Help" in SAP S/4HANA. It reads from 1 data source (I_InspSpecificationVersion) and exposes 21 fields with key fields InspectionSpecificationPlant, InspectionSpecification, InspectionSpecificationVersion. Part of development package MPE_PLAN_RTG_VERS.

Data Sources (1)

SourceAliasJoin Type
I_InspSpecificationVersion I_InspSpecificationVersion from

Annotations (12)

NameValueLevelField
AbapCatalog.sqlViewName IRTGMICVH view
VDM.viewType #COMPOSITE view
AbapCatalog.compiler.compareFilter true view
AccessControl.authorizationCheck #CHECK view
EndUserText.label MIC Value Help view
ClientHandling.algorithm #SESSION_VARIABLE view
Search.searchable true view
ObjectModel.usageType.dataClass #MASTER view
ObjectModel.usageType.sizeCategory #M view
ObjectModel.usageType.serviceQuality #C view
ObjectModel.dataCategory #VALUE_HELP view
ObjectModel.representativeKey InspectionSpecificationVersion view

Fields (21)

KeyFieldSource TableSource FieldDescription
KEY InspectionSpecificationPlant InspectionSpecificationPlant
KEY InspectionSpecification InspectionSpecification
KEY InspectionSpecificationVersion InspectionSpecificationVersion
ValidityStartDate ValidityStartDate
InspectionSpecificationSrchTxt InspectionSpecificationSrchTxt
InspectionSpecificationStatus InspectionSpecificationStatus
InspSpecTransferType InspSpecTransferType
InspSpecCharacteristicType InspSpecCharacteristicType
QltyMstrDataAuthorizationGroup QltyMstrDataAuthorizationGroup
InspSpecIsControlChartUsed InspSpecIsControlChartUsed
InspSpecIsSamplingProcedRqd InspSpecIsSamplingProcedRqd
_Text _Text
_InspSpecificationPlant _InspSpecificationPlant
_InspectionSpecification _InspectionSpecification
_InspectionSpecificationText _Text
_InspSpecTransferTypeText _InspSpecTransferTypeText
_InspSpecCharcTypeText _InspSpecCharcTypeText
_InspSpecStatus _InspSpecStatus
_InspSpecTransferType _InspSpecTransferType
_InspSpecCharcType _InspSpecCharcType
_QltyMstrDataAuthznGrp _QltyMstrDataAuthznGrp
@AbapCatalog.sqlViewName: 'IRTGMICVH'
@VDM.viewType: #COMPOSITE
@AbapCatalog.compiler.compareFilter: true
@AccessControl.authorizationCheck: #CHECK
@EndUserText.label: 'MIC Value Help'
@ClientHandling.algorithm: #SESSION_VARIABLE
@Search.searchable: true
@ObjectModel: {
    usageType: {
        dataClass: #MASTER,
        sizeCategory: #M, //expected number of rows < 100.000

        serviceQuality: #C // includes A,B as well

    },
    dataCategory:#VALUE_HELP
}
@ObjectModel.representativeKey: 'InspectionSpecificationVersion'


define view I_ProdnRtgVersInspSpecVH
  as select from I_InspSpecificationVersion
{

      @ObjectModel.foreignKey.association: '_InspSpecificationPlant'
      @Search: { defaultSearchElement: true, fuzzinessThreshold: 0.8 }
  key InspectionSpecificationPlant,
      @ObjectModel.foreignKey.association: '_InspectionSpecification'
      @Search: { defaultSearchElement: true, fuzzinessThreshold: 0.8 }
      @ObjectModel.text.association: '_InspectionSpecificationText'
  key InspectionSpecification,
  key InspectionSpecificationVersion,

      ValidityStartDate,
      @Search: { defaultSearchElement: true, fuzzinessThreshold: 0.8 }
      InspectionSpecificationSrchTxt,
      InspectionSpecificationStatus,
      @Search: { defaultSearchElement: true, fuzzinessThreshold: 0.8 }
      @ObjectModel.text.association: '_InspSpecTransferTypeText'
      InspSpecTransferType,
      @ObjectModel.text.association: '_InspSpecCharcTypeText'
      InspSpecCharacteristicType,
      QltyMstrDataAuthorizationGroup,
      InspSpecIsControlChartUsed,
      InspSpecIsSamplingProcedRqd,
      /* Associations */
      _Text,
      @Consumption.filter.hidden: true
      _InspSpecificationPlant,
      @Consumption.filter.hidden: true
      _InspectionSpecification,
      @Consumption.filter.hidden: true
      _Text as _InspectionSpecificationText,
      @Consumption.filter.hidden: true
      _InspSpecTransferTypeText,
      @Consumption.filter.hidden: true
      _InspSpecCharcTypeText,
      @Consumption.filter.hidden: true
      _InspSpecStatus,
      @Consumption.filter.hidden: true
      _InspSpecTransferType,
      @Consumption.filter.hidden: true
      _InspSpecCharcType,
      @Consumption.filter.hidden: true
      _QltyMstrDataAuthznGrp

}

where
          InspSpecRecordingType          <> '*'                 //Classed Recording

  and 
  (
          InspSpecTransferType           <> 'X'                //Defects Recoding Required

    or(
          InspSpecTransferType           =  'X'
      and InspSpecIsDefectsRecgAutomatic =  'X'                
      and InspSpecDefectCodeGrpRejection <> ' '
    )
    or(
          InspSpecTransferType           =  'X'
      and InspSpecIsDefectsRecgAutomatic <> 'X'
    )
  )
  and 
          InspectionScope                =  '='              //Fixed Scope

  and 
          InspSpecResultCalculation      =  ' '              // No formula

  and 
          InspectionSpecificationStatus  =  '2'              // Released

//  and 

//          InspSpecIsTestEquipmentRqd     =  ' '             // Test Equipment Required

  and 
          InspSpecCharcCategory          <> '+'             //Required When Previous Required Characteristic Is Accepted

  and 
          InspSpecCharcCategory          <> '-'             //Required When Previous Required Characteristic Is Rejected

  and 
          InspSpecIsLongTermInspection   <> 'X'
  and //Long-Term Inspection

          InspSpecRecordingType          <> '-'
  and //No Results Recording

          InspSpecIsSampleQtyAdditive    <> 'X'
  and //Sample Quantity Is Additive

          InspSpecIsDestructive          <> 'X'
  and //Destructive Inspection

          InspSpecIsScrapRelevant        <> 'X'
  and // Characteristic Relevant for Quality Score and Scrap Share

          InspSpecHasFixedCtrlIndicators <> 'X' // Control Indicator fixed

//    ((InspSpecTransferType <> 'X' and InspSpecIsControlChartUsed <> 'X') or (InspSpecTransferType = 'X' ) ) //SPC Characteristics in case of Reference only