C_Insplot_Object

DDL: C_INSPLOT_OBJECT SQL: CINSPLOTOBJECT Type: view CONSUMPTION

Inspection Lot Object Page

C_Insplot_Object is a Consumption CDS View that provides data about "Inspection Lot Object Page" in SAP S/4HANA. It reads from 5 data sources (I_InspectionLotOriginText, I_InspectionLot, I_InspectionLotTypeText, I_MaintenancePlanBasic, I_MaintenanceStrategyT) and exposes 96 fields with key field InspectionLot. It has 12 associations to related views.

Data Sources (5)

SourceAliasJoin Type
I_InspectionLotOriginText _InspectionLotOriginText left_outer
I_InspectionLot _InspLot from
I_InspectionLotTypeText _InspLotText left_outer
I_MaintenancePlanBasic _MaintenancePlan left_outer
I_MaintenanceStrategyT _MaintenanceStrategyT left_outer

Associations (12)

CardinalityTargetAliasCondition
[1..*] C_Inspoperation_Object _Operation $projection.InspectionLot = _Operation.InspectionLot
[1..*] C_InspLotStatus _InspLotStatus $projection.InspectionLot = _InspLotStatus.InspectionLot
[0..1] I_Customer _Customer $projection.Customer = _Customer.Customer
[0..1] I_Supplier _Supplier $projection.Supplier = _Supplier.Supplier
[0..1] I_Supplier _Manufacturer $projection.Manufacturer = _Manufacturer.Supplier
[1..1] I_PurchasingOrganization _PurchasingOrganization $projection.PurchasingOrganization = _PurchasingOrganization.PurchasingOrganization
[1..1] I_ProductionVersion _ProductionVersion $projection.Material = _ProductionVersion.Material and $projection.Plant = _ProductionVersion.Plant and $projection.ProductionVersion = _ProductionVersion.ProductionVersion
[0..*] C_InspLotStockPosting _InspLotStockPosting $projection.InspectionLot = _InspLotStockPosting.InspectionLot
[0..1] I_UserContactCard _BusinessCardInfo $projection.InspectionLotCreatedBy = _BusinessCardInfo.ContactCardID or $projection.inspectionlotusagedecidedby = _BusinessCardInfo.ContactCardID
[0..1] I_UserContactCard _ChangedByBusinessCardInfo $projection.InspectionLotChangedBy = _ChangedByBusinessCardInfo.ContactCardID or $projection.insplotusagedecisionchangedby = _ChangedByBusinessCardInfo.ContactCardID
[1..*] C_InspLotDocument _InspLotDocument $projection.InspectionLot = _InspLotDocument.LinkedSAPObjectKey
[0..1] I_MaterialText _MaterialText _InspLot.Material = _MaterialText.Material and _MaterialText.Language = $session.system_language

Annotations (10)

NameValueLevelField
AbapCatalog.sqlViewName CINSPLOTOBJECT view
ClientHandling.algorithm #SESSION_VARIABLE view
AccessControl.authorizationCheck #CHECK view
AccessControl.personalData.blocking #REQUIRED view
VDM.viewType #CONSUMPTION view
EndUserText.label Inspection Lot Object Page view
Search.searchable true view
ObjectModel.usageType.dataClass #MIXED view
ObjectModel.usageType.sizeCategory #L view
ObjectModel.usageType.serviceQuality #D view

Fields (96)

KeyFieldSource TableSource FieldDescription
KEY InspectionLot I_InspectionLot InspectionLot
InspectionLotType I_InspectionLot InspectionLotType
InspectionLotTypeText I_InspectionLotTypeText InspectionLotTypeText
Material I_InspectionLot Material
InspectionLotObjectText I_InspectionLot InspectionLotObjectText
InspectionLotText I_InspectionLot InspectionLotText
InspectionLotQuantity I_InspectionLot InspectionLotQuantity
InspectionLotQuantityUnit
Plant I_InspectionLot Plant
PlantName
MaterialIsBatchManaged I_InspectionLot MaterialIsBatchManaged
Batch I_InspectionLot Batch
BatchBySupplier I_InspectionLot BatchBySupplier
InspectionLotStartDate I_InspectionLot InspectionLotStartDate
InspectionLotEndDate I_InspectionLot InspectionLotEndDate
MatlQualityAuthorizationGroup I_InspectionLot MatlQualityAuthorizationGroup
BillOfOperationsType I_InspectionLot BillOfOperationsType
BillOfOperationsGroup I_InspectionLot BillOfOperationsGroup
BillOfOperationsVariant I_InspectionLot BillOfOperationsVariant
BillOfOperationsChangeStateID I_InspectionLot BillOfOperationsChangeStateID
BillOfOperationsDesc
BillOfOperationsTypeName
QualityCostCollector I_InspectionLot QualityCostCollector
Equipment I_InspectionLot Equipment
EquipmentName
FunctionalLocation I_InspectionLot FunctionalLocation
FunctionalLocationName
InspLotCreatedOnLocalDate I_InspectionLot InspLotCreatedOnLocalDate
InspLotCreatedOnLocalTime I_InspectionLot InspLotCreatedOnLocalTime
InspectionLotCreatedOnTime I_InspectionLot InspectionLotCreatedOnTime
InspectionLotCreatedOn I_InspectionLot InspectionLotCreatedOn
InspectionLotCreatedBy I_InspectionLot InspectionLotCreatedBy
InspectionLotChangeDate I_InspectionLot InspectionLotChangeDate
InspectionLotChangeTime I_InspectionLot InspectionLotChangeTime
InspectionLotChangedBy I_InspectionLot InspectionLotChangedBy
InspLotUsageDecisionValuation
InspectionLotUsageDecisionCode
InspLotUsageDecisionCodeGroup
UsageDecisionCodeText
InspectionLotQualityScore
InspLotUsgeDcsnFollowUpAction
InspectionLotUsageDecidedOn
InspLotUsageDecisionTime
InspectionLotUsageDecidedBy
InspLotUsageDecisionChangedBy
InspLotUsageDecisionChangedOn
InspLotUsgeDcsnChangedTime
InspectionLotActualQuantity I_InspectionLot InspectionLotActualQuantity
InspectionLotSampleQuantity I_InspectionLot InspectionLotSampleQuantity
InspectionLotSampleUnit
InspLotQtyDestroyed I_InspectionLot InspLotQtyDestroyed
InspectionLotDefectiveQuantity I_InspectionLot InspectionLotDefectiveQuantity
InspQtyPosted I_InspectionLot InspLotQtyToBePosted
InspectionLotOrigin I_InspectionLot InspectionLotOrigin
InspectionLotOriginText I_InspectionLotOriginText InspectionLotOriginText
Customer I_InspectionLot Customer
CustomerName _Customer CustomerName
Supplier I_InspectionLot Supplier
SupplierName _Supplier SupplierName
Manufacturer I_InspectionLot Manufacturer
ManufacturerName _Manufacturer SupplierName
ManufacturerPartNmbr I_InspectionLot ManufacturerPartNmbr
MaterialName _MaterialText MaterialName
PurchasingOrganization I_InspectionLot PurchasingOrganization
PurchasingOrganizationName _PurchasingOrganization PurchasingOrganizationName
PurchasingDocument I_InspectionLot PurchasingDocument
MaterialDocument I_InspectionLot MaterialDocument
DeliveryDocument I_InspectionLot DeliveryDocument
ManufacturingOrder I_InspectionLot ManufacturingOrder
ProductionVersion I_InspectionLot ProductionVersion
ProductionVersionText _ProductionVersion ProductionVersionText
SalesOrder I_InspectionLot SalesOrder
SalesOrderItemendasSalesOrderItem
MaintenanceStrategy I_InspectionLot MaintenanceStrategy
MaintenancePlan I_InspectionLot MaintenancePlan
MaintenancePlanItemIntID I_InspectionLot MaintenancePlanItemIntID
MaintenancePlanDesc I_MaintenancePlanBasic MaintenancePlanDesc
MaintenancePlanItemDesc _MaintenanceItem MaintenanceItemDescription
MaintenanceStrategyDesc I_MaintenanceStrategyT MaintenanceStrategyDesc
IsBusinessPurposeCompleted I_InspectionLot IsBusinessPurposeCompleted
InspLotSelectionValidFromDate InspLotSelectionValidFromDate
InspLotIsSerialNmbrPossible I_InspectionLot InspLotIsSerialNmbrPossible
SerialNumberProfile I_InspectionLot SerialNumberProfile
_Operation _Operation
_InspLotStatus _InspLotStatus
_Customer _Customer
_Manufacturer _Manufacturer
_Supplier _Supplier
_PurchasingOrganization _PurchasingOrganization
_ProductionVersion _ProductionVersion
_InspLotUsageDecision _InspLotUsageDecision
_InspLotStockPosting _InspLotStockPosting
_InspLotDocument _InspLotDocument
_BusinessCardInfo _BusinessCardInfo
_ChangedByBusinessCardInfo _ChangedByBusinessCardInfo
_MaterialText _MaterialText
@AbapCatalog.sqlViewName: 'CINSPLOTOBJECT'
@ClientHandling.algorithm: #SESSION_VARIABLE
@AccessControl.authorizationCheck: #CHECK
@AccessControl.privilegedAssociations:  [ '_BusinessCardInfo'  ,  '_ChangedByBusinessCardInfo'  ]
@AccessControl.personalData.blocking: #REQUIRED
@VDM.viewType: #CONSUMPTION
@EndUserText.label: 'Inspection Lot Object Page'
@Search.searchable: true
@ObjectModel.usageType: {
    dataClass: #MIXED,
    sizeCategory: #L, //expected number of rows < 10.000.000

    serviceQuality: #D
}

define view C_Insplot_Object
  as select from    I_InspectionLot           as _InspLot
  //Get description of inspection lot type

    left outer join I_InspectionLotTypeText   as _InspLotText             on  _InspLot.InspectionLotType = _InspLotText.InspectionLotType
                                                                          and _InspLotText.Language      = $session.system_language
  //Get description of origin

    left outer join I_InspectionLotOriginText as _InspectionLotOriginText on  _InspLot.InspectionLotOrigin      = _InspectionLotOriginText.InspectionLotOrigin
                                                                          and _InspectionLotOriginText.Language = $session.system_language
  //Get description of MPN material

  // left outer join I_MaterialText            as _MaterialText                  on  _InspLot.ManufacturerPartNmbr    = _MaterialText.Material

  //                                                                            and _MaterialText.Language           = $session.system_language

  //Get maintenance plan information

    left outer join I_MaintenancePlanBasic    as _MaintenancePlan         on _InspLot.MaintenancePlan = _MaintenancePlan.MaintenancePlan
  //Get maintenance plan item information

  //  left outer join I_MaintenanceItem as _MaintenanceItem                       on _InspLot.MaintenancePlanItemIntID = _MaintenanceItem.MaintenanceItem

  //Get description of maintenance strategy

    left outer join I_MaintenanceStrategyT    as _MaintenanceStrategyT    on  _InspLot.MaintenanceStrategy   = _MaintenanceStrategyT.MaintenanceStrategy
                                                                          and _MaintenanceStrategyT.Language = $session.system_language
  //Operation tab

  association [1..*] to C_Inspoperation_Object   as _Operation                 on  $projection.InspectionLot = _Operation.InspectionLot
  //Header Status

  association [1..*] to C_InspLotStatus          as _InspLotStatus             on  $projection.InspectionLot = _InspLotStatus.InspectionLot
  //Get description of customer

  association [0..1] to I_Customer               as _Customer                  on  $projection.Customer = _Customer.Customer
  //Get description of Supplier

  association [0..1] to I_Supplier               as _Supplier                  on  $projection.Supplier = _Supplier.Supplier
  //Get description of manufacturer

  association [0..1] to I_Supplier               as _Manufacturer              on  $projection.Manufacturer = _Manufacturer.Supplier
  //Get description of purchasing organization

  association [1..1] to I_PurchasingOrganization as _PurchasingOrganization    on  $projection.PurchasingOrganization = _PurchasingOrganization.PurchasingOrganization
  //Get description of production version

  association [1..1] to I_ProductionVersion      as _ProductionVersion         on  $projection.Material          = _ProductionVersion.Material
                                                                               and $projection.Plant             = _ProductionVersion.Plant
                                                                               and $projection.ProductionVersion = _ProductionVersion.ProductionVersion
  //Stock Posting tab

  association [0..*] to C_InspLotStockPosting    as _InspLotStockPosting       on  $projection.InspectionLot = _InspLotStockPosting.InspectionLot
  //Get detail information of BusinessCard

  //  association [1..*] to C_BusinessCardInfo        as _BusinessCardInfo        on  $projection.InspectionLotCreatedBy        = _BusinessCardInfo.UserID

  //                                                                              or  $projection.InspectionLotChangedBy        = _BusinessCardInfo.UserID

  //                                                                              or  $projection.inspectionlotusagedecidedby   = _BusinessCardInfo.UserID

  //                                                                              or  $projection.insplotusagedecisionchangedby = _BusinessCardInfo.UserID


  //Retrieve all BusinessCard information for Inspection Lot

  association [0..1] to I_UserContactCard        as _BusinessCardInfo          on  $projection.InspectionLotCreatedBy      = _BusinessCardInfo.ContactCardID
                                                                               or  $projection.inspectionlotusagedecidedby = _BusinessCardInfo.ContactCardID
  association [0..1] to I_UserContactCard        as _ChangedByBusinessCardInfo on  $projection.InspectionLotChangedBy        = _ChangedByBusinessCardInfo.ContactCardID
                                                                               or  $projection.insplotusagedecisionchangedby = _ChangedByBusinessCardInfo.ContactCardID
  //Document

  association [1..*] to C_InspLotDocument        as _InspLotDocument           on  $projection.InspectionLot = _InspLotDocument.LinkedSAPObjectKey

  //changed from inner to assosication POC

  association [0..1] to I_MaterialText           as _MaterialText              on  _InspLot.Material      = _MaterialText.Material
                                                                               and _MaterialText.Language = $session.system_language

{
  key _InspLot.InspectionLot,
      _InspLot.InspectionLotType,
      _InspLotText.InspectionLotTypeText,
      _InspLot.Material,
      _InspLot.InspectionLotObjectText, //Description of material

      _InspLot.InspectionLotText,
      _InspLot.InspectionLotQuantity,
      _InspLot._InspectionLotQuantityUnit._Text[1:Language=$session.system_language].UnitOfMeasure_E as InspectionLotQuantityUnit,
      _InspLot.Plant,
      _InspLot._Plant.PlantName,
      _InspLot.MaterialIsBatchManaged,
      _InspLot.Batch,
      _InspLot.BatchBySupplier, //Vendor Batch

      _InspLot.InspectionLotStartDate,
      _InspLot.InspectionLotEndDate,
      _InspLot.MatlQualityAuthorizationGroup,

      //General information tab

      _InspLot.BillOfOperationsType,
      _InspLot.BillOfOperationsGroup,
      _InspLot.BillOfOperationsVariant,
      _InspLot.BillOfOperationsChangeStateID,
      _InspLot._BillOfOperationsChangeState.BillOfOperationsDesc,
      _InspLot._BillOfOperationsType._Text[1:Language=$session.system_language].BillOfOperationsTypeName,
      _InspLot.QualityCostCollector,
      @Feature:'SW:EAM_SFWS_CHECKLIST'
      _InspLot.Equipment,
      @Feature:'SW:EAM_SFWS_CHECKLIST'
      _InspLot._Equipment._EquipmentText[1:Language=$session.system_language].EquipmentName,
      @Feature:'SW:EAM_SFWS_CHECKLIST'
      _InspLot.FunctionalLocation,
      @Feature:'SW:EAM_SFWS_CHECKLIST'
      _InspLot._FunctionalLocation._FunctionalLocationText[1:Language=$session.system_language].FunctionalLocationName,
      
      

      //Administrative Data tab--Inspection Lot

      _InspLot.InspLotCreatedOnLocalDate,
      _InspLot.InspLotCreatedOnLocalTime,
      _InspLot.InspectionLotCreatedOnTime,
      _InspLot.InspectionLotCreatedOn,
      _InspLot.InspectionLotCreatedBy,
      _InspLot.InspectionLotChangeDate,
      _InspLot.InspectionLotChangeTime,
      _InspLot.InspectionLotChangedBy,

      //Usage Decision tab

      _InspLot._InspLotUsageDecision.InspLotUsageDecisionValuation,
      _InspLot._InspLotUsageDecision.InspectionLotUsageDecisionCode,
      _InspLot._InspLotUsageDecision.InspLotUsageDecisionCodeGroup,
      _InspLot._InspLotUsageDecision._UsageDecisionCode.UsageDecisionCodeText,
      _InspLot._InspLotUsageDecision.InspectionLotQualityScore,
      _InspLot._InspLotUsageDecision.InspLotUsgeDcsnFollowUpAction,

      //Administrative Data tab--Usage Decision

      _InspLot._InspLotUsageDecision.InspectionLotUsageDecidedOn,
      _InspLot._InspLotUsageDecision.InspLotUsageDecisionTime,
      _InspLot._InspLotUsageDecision.InspectionLotUsageDecidedBy,
      _InspLot._InspLotUsageDecision.InspLotUsageDecisionChangedBy,
      _InspLot._InspLotUsageDecision.InspLotUsageDecisionChangedOn,
      _InspLot._InspLotUsageDecision.InspLotUsgeDcsnChangedTime,

      //Origin tab---Quantities

      _InspLot.InspectionLotActualQuantity,
      _InspLot.InspectionLotSampleQuantity,
      _InspLot._InspectionLotSampleUnit._Text[1:Language=$session.system_language].UnitOfMeasure_E   as InspectionLotSampleUnit,
      _InspLot.InspLotQtyDestroyed,
      _InspLot.InspectionLotDefectiveQuantity,
      _InspLot.InspLotQtyToBePosted                                                                  as InspQtyPosted,

      //Origin tab--Origin

      _InspLot.InspectionLotOrigin,
      _InspectionLotOriginText.InspectionLotOriginText,

      //Display information of Origin type:2/6/10/11/12/15/89

      //--[ GENERATED:012:GlBfhyFV7kY4h7jYW0xcqG

      @Consumption.valueHelpDefinition: [
        { entity:  { name:    'I_Customer_VH',
                     element: 'Customer' }
        }]
      // ]--GENERATED

      @ObjectModel.readOnly:'EXTERNAL_CALCULATED'
      _InspLot.Customer,
      _Customer.CustomerName, //Customer description


      //Display information of Origin type:1/5/7/15/17/89

      //--[ GENERATED:012:GlBfhyFV7kY4h7jYW0xcqG

      @Consumption.valueHelpDefinition: [
        { entity:  { name:    'I_Supplier_VH',
                     element: 'Supplier' }
        }]
      // ]--GENERATED

      @ObjectModel.readOnly:'EXTERNAL_CALCULATED'
      _InspLot.Supplier, //Supplier

      _Supplier.SupplierName, //Vendor description


      //Display information of Origin type:1/7/15/89

      //--[ GENERATED:012:GlBfhyFV7kY4h7jYW0xcqG

      @Consumption.valueHelpDefinition: [
        { entity:  { name:    'I_Supplier_VH',
                     element: 'Supplier' }
        }]
      // ]--GENERATED

      @ObjectModel.readOnly:'EXTERNAL_CALCULATED'
      _InspLot.Manufacturer,
      _Manufacturer.SupplierName                                                                     as ManufacturerName, //Manufacturer description


      //Display information of Origin type:1

      @ObjectModel.readOnly:'EXTERNAL_CALCULATED'
      _InspLot.ManufacturerPartNmbr, //MPN material

      _MaterialText.MaterialName, //description of MPN material


      //Display information of Origin type:1/7/89

      @ObjectModel.readOnly:'EXTERNAL_CALCULATED'
      _InspLot.PurchasingOrganization,
      _PurchasingOrganization.PurchasingOrganizationName,

      //Display information of Origin type:1

      @ObjectModel.readOnly:'EXTERNAL_CALCULATED'
      _InspLot.PurchasingDocument,
      //If it has no value, set null

      case _InspLot.PurchasingDocumentItem
          when '00000' then ''
          else _InspLot.PurchasingDocumentItem
          end                                                                                        as PurchasingDocumentItem,

      //Display information of Origin type:1/2/4/5/8/9

      //If it has no value, set null

      case _InspLot.MaterialDocumentYear
          when '0000' then ''
          else _InspLot.MaterialDocumentYear
          end                                                                                        as MaterialDocumentYear,
      @ObjectModel.readOnly:'EXTERNAL_CALCULATED'
      _InspLot.MaterialDocument,
      //If it has no value, set null

      case _InspLot.MaterialDocumentItem
          when '0000' then ''
          else _InspLot.MaterialDocumentItem
          end                                                                                        as MaterialDocumentItem,

      //Display information of Origin type:11/12/17

      @ObjectModel.readOnly:'EXTERNAL_CALCULATED'
      _InspLot.DeliveryDocument,
      //If it has no value, set null

      case _InspLot.DeliveryDocumentItem
          when '000000'then''
          else _InspLot.DeliveryDocumentItem
          end                                                                                        as DeliveryDocumentItem,

      //Display information of Origin type:3/4/14/17

      @ObjectModel.readOnly:'EXTERNAL_CALCULATED'
      _InspLot.ManufacturingOrder, //Order


      //Display information of Origin type:13

      @ObjectModel.readOnly:'EXTERNAL_CALCULATED'
      _InspLot.ProductionVersion,
      _ProductionVersion.ProductionVersionText,

      //Display information of Origin type:6/10/12

      @ObjectModel.readOnly:'EXTERNAL_CALCULATED'
      _InspLot.SalesOrder,
      //If it has no value, set null

      case _InspLot.SalesOrderItem
          when '000000' then ''
          else _InspLot.SalesOrderItem end                                                           as SalesOrderItem,

      //Display information of Origin type:16

      _InspLot.MaintenanceStrategy,
      _InspLot.MaintenancePlan,
      _InspLot.MaintenancePlanItemIntID,
      _MaintenancePlan.MaintenancePlanDesc,
      _MaintenanceItem.MaintenanceItemDescription                                                    as MaintenancePlanItemDesc,
      _MaintenanceStrategyT.MaintenanceStrategyDesc,

      // Fields necessary for auth. check

      @Consumption.hidden: true
      _InspLot.IsBusinessPurposeCompleted,

      //field control for the inspection lot quantity decimals

      case
      //Follow the standard logic for the case when the vuale for the UnitOfMeasureNumberOfDecimals greater than 4

      //e.g. UnitOfMeasureNumberOfDecimals = 99

          when _InspLot._InspectionLotQuantityUnit.UnitOfMeasureNumberOfDecimals > 4
          then 4
          else _InspLot._InspectionLotQuantityUnit.UnitOfMeasureNumberOfDecimals
          end                                                                                        as InspLotQuantityUnitDecPlaces,
      case
      //Follow the standard logic for the case when the vuale for the UnitOfMeasureNumberOfDecimals greater than 4

      //e.g. UnitOfMeasureNumberOfDecimals = 99

          when _InspLot._InspectionLotSampleUnit.UnitOfMeasureNumberOfDecimals > 4
          then 4
          else _InspLot._InspectionLotSampleUnit.UnitOfMeasureNumberOfDecimals
          end                                                                                        as InspLotSampleQtyUnitDecPlaces,

      // Key Date of Inspection Plan

      InspLotSelectionValidFromDate,
      // adding additional field to denote if the inspection lot has serialized material

      @Semantics.booleanIndicator: true
      _InspLot.InspLotIsSerialNmbrPossible,
      _InspLot.SerialNumberProfile,

      //Associations

      _Operation,
      _InspLotStatus,
      _Customer,
      _Manufacturer,
      _Supplier,
      _PurchasingOrganization,
      _ProductionVersion,
      _InspLotUsageDecision,
      _InspLotStockPosting,
      _InspLotDocument,
      _BusinessCardInfo,
      _ChangedByBusinessCardInfo,
      _MaterialText
}