I_ASSGMTINSPMETHINSPSPEC

CDS View

Assgnmt. - Insp. Meth./Insp. Spec.

I_ASSGMTINSPMETHINSPSPEC is a CDS View in S/4HANA. Assgnmt. - Insp. Meth./Insp. Spec.. It contains 28 fields. 7 CDS views read from this table.

CDS Views using this table (7)

ViewTypeJoinVDMDescription
A_AssgmtInspMethInspSpec view from BASIC Assignmt Inspection Specification-Method
C_Qm_Mic_Methods view left_outer CONSUMPTION Methods assigned to Master Inspection Characteristics
I_InspMethForInspSpecVH view from COMPOSITE Insp Meth Value Help for Insp Spec
I_InspMethInspSpec view inner COMPOSITE Master Charcs. of Inspection Method
I_InspSpecCatalog view from COMPOSITE Assignment of Catalogs to Master Charc
I_InspSpecCatalog view union COMPOSITE Assignment of Catalogs to Master Charc
I_InspSpecInspMeth view inner COMPOSITE Insp. Methods of Master Characteristic

Fields (28)

KeyField CDS FieldsUsed in Views
KEY InspectionMethod InspectionMethod 3
KEY InspectionMethodPlant InspectionMethodPlant 3
KEY InspectionMethodVersion InspectionMethodVersion 3
KEY InspectionSpecification InspectionCharacteristic,InspectionSpecification 4
KEY InspectionSpecificationPlant InspectionSpecificationPlant 3
KEY InspectionSpecificationVersion InspectionSpecificationVersion 3
_InspectionMethodVersion _InspectionMethodVersion 2
_InspSpecificationVersion _InspSpecificationVersion 1
InspSpecAdditionalCatalog2 InspSpecAdditionalCatalog 1
InspSpecAdditionalCatalog3 InspSpecAdditionalCatalog 1
InspSpecAdditionalCatalog4 InspSpecAdditionalCatalog 1
InspSpecAdditionalCatalog5 InspSpecAdditionalCatalog 1
InspSpecAdditionalCodeGroup2 InspSpecAdditionalCodeGroup 1
InspSpecAdditionalCodeGroup3 InspSpecAdditionalCodeGroup 1
InspSpecAdditionalCodeGroup4 InspSpecAdditionalCodeGroup 1
InspSpecAdditionalCodeGroup5 InspSpecAdditionalCodeGroup 1
InspSpecAdditionalSelectedSet2 InspSpecAdditionalSelectedSet 1
InspSpecAdditionalSelectedSet3 InspSpecAdditionalSelectedSet 1
InspSpecAdditionalSelectedSet4 InspSpecAdditionalSelectedSet 1
InspSpecAdditionalSelectedSet5 InspSpecAdditionalSelectedSet 1
InspSpecAddlSeldCodeSetPlant2 InspSpecAddlSeldCodeSetPlant 1
InspSpecAddlSeldCodeSetPlant3 InspSpecAddlSeldCodeSetPlant 1
InspSpecAddlSeldCodeSetPlant4 InspSpecAddlSeldCodeSetPlant 1
InspSpecAddlSeldCodeSetPlant5 InspSpecAddlSeldCodeSetPlant 1
Plant Plant 1
SelectedCodeSet InspSpecAdditionalSelectedSet,SelectedCodeSet 2
SelectedCodeSetPlant InspSpecAddlSeldCodeSetPlant,SelectedCodeSetPlant 2
ValidityStartDate ValidityStartDate 1
@AbapCatalog.sqlViewName: 'IASSGMTIMETHSPEC'
@ClientHandling.algorithm: #SESSION_VARIABLE
@EndUserText.label: 'Assgnmt. - Insp. Meth./Insp. Spec.' //same as DDL description

@VDM.viewType: #BASIC
@AccessControl.authorizationCheck: #CHECK
@ObjectModel.usageType: {
    dataClass: #MASTER,
    sizeCategory: #M, //expected number of rows < 100.000

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

}
define view I_AssgmtInspMethInspSpec as select from qpmz

   association [1..1] to I_Plant as _Plant
      on $projection.Plant = _Plant.Plant

   association [0..1] to I_InspSpecificationVersion as _InspSpecificationVersion
      on     $projection.InspectionSpecificationPlant   = _InspSpecificationVersion.InspectionSpecificationPlant
         and $projection.InspectionSpecification        = _InspSpecificationVersion.InspectionSpecification
         and $projection.InspectionSpecificationVersion = _InspSpecificationVersion.InspectionSpecificationVersion

   association [0..1] to I_InspectionMethodVersion as _InspectionMethodVersion
      on     $projection.InspectionMethodPlant   = _InspectionMethodVersion.InspectionMethodPlant
         and $projection.InspectionMethod        = _InspectionMethodVersion.InspectionMethod
         and $projection.InspectionMethodVersion = _InspectionMethodVersion.InspectionMethodVersion

    association [1..1] to E_AssgmtInspMethInspSpec as _Extension         
        on $projection.InspectionSpecificationPlant   = _Extension.InspectionSpecificationPlant and
           $projection.InspectionSpecification        = _Extension.InspectionSpecification and
           $projection.InspectionSpecificationVersion = _Extension.InspectionSpecificationVersion and
           $projection.InspectionMethodPlant          = _Extension.InspectionMethodPlant and
           $projection.InspectionMethod               = _Extension.InspectionMethod and
           $projection.InspectionMethodVersion        = _Extension.InspectionMethodVersion       
                     
{
   key qpmz.zaehler     as InspectionSpecificationPlant, 
   @EndUserText.label: 'Master Inspection Characteristic'
   key qpmz.mkmnr       as InspectionSpecification, 
   key qpmz.version     as InspectionSpecificationVersion, 
   key qpmz.werkpm      as InspectionMethodPlant, 
   key qpmz.pmethode    as InspectionMethod, 
   key qpmz.verspm      as InspectionMethodVersion, 
   
   @ObjectModel.foreignKey.association: '_Plant'
   qpmz.werkmk          as Plant, 
   
   @Semantics.businessDate.from: true
   qpmz.gueltigab       as ValidityStartDate, 
//   qpmz.anonr, 

   /* In this context the following holds:      */
   /*  - katab1 = 'X' for each DB entry         */
   /*  - katalgart1 = '1' for each DB entry     */
   /*  - auswmenge1 is always a SelectedCodeSet */
   /*  - auswmgwrk1 is always filled            */
//   qpmz.katab1, 

//   qpmz.katalgart1, 

   qpmz.auswmenge1      as SelectedCodeSet,
//   qpmz.version1, 

   qpmz.auswmgwrk1      as SelectedCodeSetPlant, 
//   qpmz.katab2,

   qpmz.katalgart2      as InspSpecAdditionalCatalog2,
   case qpmz.katab2
     when 'X' then qpmz.auswmenge2 else ' '
   end as InspSpecAdditionalSelectedSet2,
   case qpmz.katab2
     when ' ' then qpmz.auswmenge2 else ' '
   end as InspSpecAdditionalCodeGroup2,
//   qpmz.version2, 

   qpmz.auswmgwrk2      as InspSpecAddlSeldCodeSetPlant2, 
//   qpmz.katab3, 

   qpmz.katalgart3      as InspSpecAdditionalCatalog3, 
   case qpmz.katab3
     when 'X' then qpmz.auswmenge3 else ' '
   end as InspSpecAdditionalSelectedSet3,
   case qpmz.katab3
     when ' ' then qpmz.auswmenge3 else ' '
   end as InspSpecAdditionalCodeGroup3,
//   qpmz.version3, 

   qpmz.auswmgwrk3      as InspSpecAddlSeldCodeSetPlant3, 
//   qpmz.katab4, 

   qpmz.katalgart4      as InspSpecAdditionalCatalog4, 
   case qpmz.katab4
     when 'X' then qpmz.auswmenge4 else ' '
   end as InspSpecAdditionalSelectedSet4,
   case qpmz.katab4
     when ' ' then qpmz.auswmenge4 else ' '
   end as InspSpecAdditionalCodeGroup4, 
//   qpmz.version4, 

   qpmz.auswmgwrk4      as InspSpecAddlSeldCodeSetPlant4, 
//   qpmz.katab5, 

   qpmz.katalgart5      as InspSpecAdditionalCatalog5, 
   case qpmz.katab5
     when 'X' then qpmz.auswmenge5 else ' '
   end as InspSpecAdditionalSelectedSet5,
   case qpmz.katab5
     when ' ' then qpmz.auswmenge5 else ' '
   end as InspSpecAdditionalCodeGroup5,
//   qpmz.version5, 

   qpmz.auswmgwrk5      as InspSpecAddlSeldCodeSetPlant5, 
   @Semantics.booleanIndicator: true
   qpmz.geloescht       as InspMethIsAssgmtToSpecInactive,
   
   /* Associations */
   _Plant,
   _InspSpecificationVersion,
   _InspectionMethodVersion
   
}