I_InspectionPlanTP

DDL: I_INSPECTIONPLANTP SQL: IINSPPLTP Type: view TRANSACTIONAL

Inspection Plan

I_InspectionPlanTP is a Transactional CDS View that provides data about "Inspection Plan" in SAP S/4HANA. It reads from 1 data source (I_InspectionPlanVersion) and exposes 52 fields with key fields InspectionPlanGroup, InspectionPlan, InspectionPlanInternalVersion, BillOfOperationsType. It has 2 associations to related views.

Data Sources (1)

SourceAliasJoin Type
I_InspectionPlanVersion _InspPlan from

Associations (2)

CardinalityTargetAliasCondition
[0..*] I_InspPlanMaterialAssgmtTP _InspPlanMaterialAssgmtTP $projection.InspectionPlanGroup = _InspPlanMaterialAssgmtTP.InspectionPlanGroup and $projection.InspectionPlan = _InspPlanMaterialAssgmtTP.InspectionPlan and $projection.InspectionPlanInternalVersion = _InspPlanMaterialAssgmtTP.InspectionPlanInternalVersion and $projection.BillOfOperationsType = _InspPlanMaterialAssgmtTP.BillOfOperationsType
[0..*] I_InspPlanOperationTP _InspPlanOp $projection.InspectionPlanGroup = _InspPlanOp.InspectionPlanGroup and $projection.InspectionPlan = _InspPlanOp.InspectionPlan and $projection.InspectionPlanInternalVersion = _InspPlanOp.InspectionPlanInternalVersion and $projection.BillOfOperationsType = _InspPlanOp.BillOfOperationsType

Annotations (21)

NameValueLevelField
AbapCatalog.sqlViewName IINSPPLTP view
ClientHandling.algorithm #SESSION_VARIABLE view
AbapCatalog.compiler.compareFilter true view
AccessControl.authorizationCheck #CHECK view
EndUserText.label Inspection Plan view
VDM.viewType #TRANSACTIONAL view
ObjectModel.usageType.serviceQuality #B view
ObjectModel.usageType.sizeCategory #M view
ObjectModel.usageType.dataClass #MASTER view
ObjectModel.draftEnabled true view
ObjectModel.compositionRoot true view
ObjectModel.createEnabled true view
ObjectModel.updateEnabled true view
ObjectModel.deleteEnabled true view
ObjectModel.transactionalProcessingEnabled true view
ObjectModel.writeDraftPersistence QINSPPL_D 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

Fields (52)

KeyFieldSource TableSource FieldDescription
KEY InspectionPlanGroup InspectionPlanGroup
KEY InspectionPlan InspectionPlan
KEY InspectionPlanInternalVersion InspectionPlanInternalVersion
KEY BillOfOperationsType BillOfOperationsType
InspectionPlanGroupForEdit InspectionPlanGroup
InspectionPlanForEdit InspectionPlan
TaskListKeyDateText
IsDeleted IsDeleted
BillOfOperationsDesc BillOfOperationsDesc
Plant Plant
BillOfOperationsUsage BillOfOperationsUsage
BillOfOperationsStatus BillOfOperationsStatus
ResponsiblePlannerGroup ResponsiblePlannerGroup
MinimumLotSizeQuantity MinimumLotSizeQuantity
MaximumLotSizeQuantity MaximumLotSizeQuantity
BillOfOperationsUnit BillOfOperationsUnit
InspSubsetFieldCombination InspSubsetFieldCombination
InspectionPartialLotAssignment InspectionPartialLotAssignment
SmplDrawingProcedure SmplDrawingProcedure
SmplDrawingProcedureVersion SmplDrawingProcedureVersion
InspectionLotDynamicLevel InspectionLotDynamicLevel
InspLotDynamicRule InspLotDynamicRule
InspExternalNumberingOfValues InspExternalNumberingOfValues
InspLotDynamicCriteria InspLotDynamicCriteria
MatlIsConsideredForDynModif MatlIsConsideredForDynModif
SuplrIsConsideredForDynModif SuplrIsConsideredForDynModif
MfrIsConsideredForDynModif MfrIsConsideredForDynModif
CustIsConsideredForDynModif CustIsConsideredForDynModif
CreationDate CreationDate
CreatedByUser CreatedByUser
LastChangeDate LastChangeDate
LastChangedByUser LastChangedByUser
ChangeNumber ChangeNumber
ValidityStartDate ValidityStartDate
ValidityEndDate ValidityEndDate
ChangedDateTime ChangedDateTime
_BillOfOperationsStatus _BillOfOperationsStatus
_BillOfOperationsUnit _BillOfOperationsUnit
_BillOfOperationsUsage _BillOfOperationsUsage
_ChangeMaster _ChangeMaster
_InspectionLotDynamicLevel _InspectionLotDynamicLevel
_InspectionPlan _InspectionPlan
_InspExtNumbering _InspExtNumbering
_InspLotDynamicRule _InspLotDynamicRule
_InspSubsetFieldCombination _InspSubsetFieldCombination
_Plant _Plant
_ResponsiblePlannerGroup _ResponsiblePlannerGroup
_SampleDrawingProcedure _SampleDrawingProcedure
_SmplDrwgProcedureVersion _SmplDrwgProcedureVersion
_InspPartialLotAssignment _InspPartialLotAssignment
_InspPlanOp _InspPlanOp
_InspPlanMaterialAssgmtTP _InspPlanMaterialAssgmtTP
@AbapCatalog.sqlViewName:  'IINSPPLTP'
@ClientHandling.algorithm: #SESSION_VARIABLE
@AbapCatalog.compiler.compareFilter: true
@AccessControl.authorizationCheck: #CHECK
@EndUserText.label: 'Inspection Plan'
@VDM.viewType: #TRANSACTIONAL
@ObjectModel.usageType: { serviceQuality: #B, sizeCategory: #M, dataClass: #MASTER }
@ObjectModel:{
 draftEnabled: true ,
    compositionRoot: true,
    createEnabled: true,
    updateEnabled: true,
    deleteEnabled: true,
    transactionalProcessingEnabled: true,
    writeDraftPersistence: 'QINSPPL_D',
    entityChangeStateId: 'ChangedDateTime',
     lifecycle.enqueue: {
        expiryBehavior: #RELATIVE_TO_LAST_CHANGE,  // Default #RELATIVE_TO_LAST_CHANGE

        expiryInterval: 'PT15M'                    // Default 'PT15M'

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

        expiryInterval: 'PT30M'                    // Default 'PT30M'

    }
}

define view I_InspectionPlanTP
  as select from I_InspectionPlanVersion as _InspPlan

  association [0..*] to I_InspPlanMaterialAssgmtTP as _InspPlanMaterialAssgmtTP on  $projection.InspectionPlanGroup           = _InspPlanMaterialAssgmtTP.InspectionPlanGroup
                                                                                and $projection.InspectionPlan                = _InspPlanMaterialAssgmtTP.InspectionPlan
                                                                                and $projection.InspectionPlanInternalVersion = _InspPlanMaterialAssgmtTP.InspectionPlanInternalVersion
                                                                                and $projection.BillOfOperationsType          = _InspPlanMaterialAssgmtTP.BillOfOperationsType

  association [0..*] to I_InspPlanOperationTP      as _InspPlanOp               on  $projection.InspectionPlanGroup           = _InspPlanOp.InspectionPlanGroup
                                                                                and $projection.InspectionPlan                = _InspPlanOp.InspectionPlan
                                                                                and $projection.InspectionPlanInternalVersion = _InspPlanOp.InspectionPlanInternalVersion
                                                                                and $projection.BillOfOperationsType          = _InspPlanOp.BillOfOperationsType

{ //I_InspectionPlanVersion

      //*-------- General Data --------------*//

     
  key InspectionPlanGroup,
   // adding annotation here as they are ignored

   @Consumption.valueHelpDefinition: [ { entity: { name: 'I_BillOfOperationsStdVH', element: 'BillOfOperationsVariant' } } ]
  key InspectionPlan,
  key InspectionPlanInternalVersion,
  key BillOfOperationsType,
  /* Adding below field as a part of POC for Revision Level Filter - Poornima*/
 // concat('Q',_InspPlan.InspectionPlanGroup) as ObjMgmtRecdObjectInternalID,

  /*end of addition - Poornima */
      InspectionPlanGroup                       as InspectionPlanGroupForEdit,
      InspectionPlan                            as InspectionPlanForEdit,
//      cast(ValidityStartDate as vdm_v_key_date) as KeyDate,

      /* Changed the type of KeyDate to Char8 */
      //cast(ValidityStartDate as abap.char( 8 )) as KeyDate,

      cast('' as qmip_keydate) as TaskListKeyDateText,
      // cast('' as abap.char( 8 )) as KeyDate,

      IsDeleted,
      //IsImplicitlyDeleted,

      BillOfOperationsDesc,
      Plant,
      BillOfOperationsUsage,
      BillOfOperationsStatus,
      ResponsiblePlannerGroup,

      MinimumLotSizeQuantity,
      MaximumLotSizeQuantity,
      BillOfOperationsUnit,
      //ReplacedBillOfOperations,

      //IsMarkedForDeletion,


      //*-------- QM Data --------------*//

      InspSubsetFieldCombination,
      // adding annotations for below fields here as they are ignored

      @ObjectModel.foreignKey.association: '_InspPartialLotAssignment'
      InspectionPartialLotAssignment,
        @ObjectModel.foreignKey.association: '_SampleDrawingProcedure'
      SmplDrawingProcedure,
      @ObjectModel.foreignKey.association: '_SmplDrwgProcedureVersion'
      SmplDrawingProcedureVersion,
        @ObjectModel.foreignKey.association: '_InspectionLotDynamicLevel'
      InspectionLotDynamicLevel,
       @Consumption.valueHelpDefinition: [ { entity: { name: 'I_InspLotDynamicRuleStdVH', element: 'InspLotDynamicRule' } } ]
      @ObjectModel.foreignKey.association: '_InspLotDynamicRule'
      InspLotDynamicRule,
      @ObjectModel.foreignKey.association: '_InspExtNumbering'
      InspExternalNumberingOfValues,
      InspLotDynamicCriteria,
      MatlIsConsideredForDynModif,
      SuplrIsConsideredForDynModif,
      MfrIsConsideredForDynModif,
      CustIsConsideredForDynModif,



      //*-------- Admin Data --------------*//

      CreationDate,
      CreatedByUser,
      LastChangeDate,
      LastChangedByUser,
      ChangeNumber,
      ValidityStartDate,
      ValidityEndDate,
      ChangedDateTime,
      //      _InspPlanMaterialAssgmtTP.Material as Material,

    


      //*-------- Associations --------------*//

      //I_InspectionPlanVersion

      _BillOfOperationsStatus,
      _BillOfOperationsUnit,
      _BillOfOperationsUsage,
      _ChangeMaster,
      _InspectionLotDynamicLevel,
      _InspectionPlan,
      _InspExtNumbering,
      _InspLotDynamicRule,
      _InspSubsetFieldCombination,
      _Plant,
      _ResponsiblePlannerGroup,
      _SampleDrawingProcedure,
      _SmplDrwgProcedureVersion,
      // adding below association for foreign key association of InspectionPartialLotAssignment

      _InspPartialLotAssignment,
      @ObjectModel.association.type: [#TO_COMPOSITION_CHILD]
      _InspPlanOp,
      @ObjectModel.association.type: [#TO_COMPOSITION_CHILD]
      _InspPlanMaterialAssgmtTP

}
where
  IsDeleted <> 'X'
/*+[internal] {
"BASEINFO":
{
"FROM":
[
"I_INSPECTIONPLANVERSION"
],
"ASSOCIATED":
[
"I_BILLOFOPERATIONSSTATUS",
"I_BILLOFOPERATIONSUSAGE",
"I_CHANGEMASTER",
"I_INSPECTIONLOTDYNAMICLEVEL",
"I_INSPECTIONPLAN",
"I_INSPEXTNUMBERINGOFVALUES",
"I_INSPLOTDYNAMICRULE",
"I_INSPPARTIALLOTASSIGNMENT",
"I_INSPPLANMATERIALASSGMTTP",
"I_INSPPLANOPERATIONTP",
"I_INSPSUBSETFIELDCOMBINATION",
"I_PLANT",
"I_RESPONSIBLEPLANNERGROUP",
"I_SAMPLEDRAWINGPROCEDURE",
"I_SMPLDRWGPROCEDUREVERSION",
"I_UNITOFMEASURE"
],
"BASE":
[
"I_INSPECTIONPLANVERSION"
],
"ANNO_REF":
[],
"SCALAR_FUNCTION":
[],
"VERSION":0,
"ANNOREF_EVALUATION_ERROR":""
}
}*/