I_ProcOrdOpsMgmtInspLotsBasic

DDL: I_PROCORDOPSMGMTINSPLOTSBASIC SQL: IPOROPINSPLOTBSC Type: view BASIC

Process order ops inspection lots basic

I_ProcOrdOpsMgmtInspLotsBasic is a Basic CDS View that provides data about "Process order ops inspection lots basic" in SAP S/4HANA. It reads from 3 data sources (I_LogisticsOrder, afvc, qaop) and exposes 38 fields with key fields InspectionLot, InspPlanOperationInternalID. It has 8 associations to related views.

Data Sources (3)

SourceAliasJoin Type
I_LogisticsOrder _Order inner
afvc afvc inner
qaop qaop from

Associations (8)

CardinalityTargetAliasCondition
[1..1] I_InspectionLot _InspectionLot $projection.InspectionLot = _InspectionLot.InspectionLot
[0..*] I_InspectionCharacteristic _InspectionCharacteristic $projection.InspectionLot = _InspectionCharacteristic.InspectionLot and $projection.InspPlanOperationInternalID = _InspectionCharacteristic.InspPlanOperationInternalID
[0..*] I_InspectionSubset _InspectionSubset $projection.InspectionLot = _InspectionSubset.InspectionLot and $projection.InspPlanOperationInternalID = _InspectionSubset.InspPlanOperationInternalID
[0..1] I_WorkCenter _WorkCenter $projection.WorkCenterInternalID = _WorkCenter.WorkCenterInternalID and _WorkCenter.WorkCenterTypeCode = 'A'
[1..1] I_Plant _Plant $projection.InspectionOperationPlant = _Plant.Plant
[1..1] I_BillOfOperationsType _BillOfOperationsType $projection.BillOfOperationsType = _BillOfOperationsType.BillOfOperationsType
[0..1] I_InspectionOperationStatus _InspectionOperationStatus $projection.OrderInternalBillOfOperations = _InspectionOperationStatus.OrderInternalBillOfOperations and $projection.InspPlanOperationInternalID = _InspectionOperationStatus.InspPlanOperationInternalID
[0..1] I_InspLotUsageDecision _InspLotUsageDecision $projection.InspectionLot = _InspLotUsageDecision.InspectionLot

Annotations (12)

NameValueLevelField
AbapCatalog.sqlViewName IPOROPINSPLOTBSC view
AbapCatalog.compiler.compareFilter true view
AbapCatalog.preserveKey true view
AccessControl.authorizationCheck #NOT_REQUIRED view
EndUserText.label Process order ops inspection lots basic view
VDM.viewType #BASIC view
ObjectModel.usageType.serviceQuality #D view
ObjectModel.usageType.sizeCategory #XL view
ObjectModel.usageType.dataClass #MIXED view
ObjectModel.representativeKey InspPlanOperationInternalID view
Metadata.ignorePropagatedAnnotations true view
ClientHandling.algorithm #SESSION_VARIABLE view

Fields (38)

KeyFieldSource TableSource FieldDescription
KEY InspectionLot qaop prueflos
KEY InspPlanOperationInternalID qaop vorglfnr
ProcessOrder I_LogisticsOrder OrderID
ManufacturingOrderCategory I_LogisticsOrder OrderCategory
ManufacturingOrderType I_LogisticsOrder OrderType
ProductionPlant I_LogisticsOrder Plant
ProductionSupervisor I_LogisticsOrder ProductionSupervisor
OrderInternalBillOfOperations qaop aufpl
OrderOperationInternalID afvc aplzl
vorglfnrendasOrderIntBillOfOpItemOfPhase
InspectionOperation
InspectionOperationPlant afvc werks
BillOfOperationsType afvc plnty
BOOOperationInternalID afvc plnkn
WorkCenterInternalID afvc arbid
StatusObject afvc objnr
OperationControlProfile afvc steus
OperationConfirmation afvc rueck
InspectionSubSystem afvc subsys
OperationText afvc ltxa1
Sequence afvc aplfl
InspectionLotOrigin _InspectionLot InspectionLotOrigin
Plant _InspectionLot Plant
InspectionLotText _InspectionLot InspectionLotText
InspectionLotType _InspectionLot InspectionLotType
InspectionLotTypeText
InspectionLotUsageDecisionCode _InspLotUsageDecision InspectionLotUsageDecisionCode
InspLotUsageDecisionValuation _InspLotUsageDecision InspLotUsageDecisionValuation
InspLotUsgeDcsnValuationText
MatlQualityAuthorizationGroup _InspectionLot MatlQualityAuthorizationGroup
_WorkCenter _WorkCenter
_InspectionLot _InspectionLot
_InspectionCharacteristic _InspectionCharacteristic
_InspectionSubset _InspectionSubset
_InspectionOperationStatus _InspectionOperationStatus
_Plant _Plant
_BillOfOperationsType _BillOfOperationsType
_InspectionLotOrigin _InspectionLot _InspectionLotOrigin
@AbapCatalog.sqlViewName: 'IPOROPINSPLOTBSC'
@AbapCatalog.compiler.compareFilter: true
@AbapCatalog.preserveKey: true
@AccessControl.authorizationCheck: #NOT_REQUIRED
@EndUserText.label: 'Process order ops inspection lots basic'
@VDM.viewType: #BASIC
@ObjectModel: {
    usageType: {serviceQuality: #D, sizeCategory: #XL, dataClass: #MIXED},
    representativeKey: 'InspPlanOperationInternalID'
}
@Metadata.ignorePropagatedAnnotations: true
@ClientHandling.algorithm: #SESSION_VARIABLE
define view I_ProcOrdOpsMgmtInspLotsBasic
  as select from qaop
    inner join   afvc                       on  qaop.aufpl = afvc.aufpl
                                            and qaop.aplzl = afvc.aplzl
    inner join   I_LogisticsOrder as _Order on  _Order.OrderInternalBillOfOperations = qaop.aufpl
                                            and _Order.OrderCategory                 = '40'
//  inner join p_procordhead as _Order on _Order.OrderInternalBillOfOperations = qaop.aufpl

//                                       and _Order.OrderCategory                 = '40'

  //Association to other QM nodes

  association [1..1] to I_InspectionLot             as _InspectionLot             on  $projection.InspectionLot = _InspectionLot.InspectionLot
  association [0..*] to I_InspectionCharacteristic  as _InspectionCharacteristic  on  $projection.InspectionLot               = _InspectionCharacteristic.InspectionLot
                                                                                  and $projection.InspPlanOperationInternalID = _InspectionCharacteristic.InspPlanOperationInternalID
  association [0..*] to I_InspectionSubset          as _InspectionSubset          on  $projection.InspectionLot               = _InspectionSubset.InspectionLot
                                                                                  and $projection.InspPlanOperationInternalID = _InspectionSubset.InspPlanOperationInternalID

  //Associations to views of other applications

  association [0..1] to I_WorkCenter                as _WorkCenter                on  $projection.WorkCenterInternalID = _WorkCenter.WorkCenterInternalID
                                                                                  and _WorkCenter.WorkCenterTypeCode   = 'A'
  association [1..1] to I_Plant                     as _Plant                     on  $projection.InspectionOperationPlant = _Plant.Plant
  association [1..1] to I_BillOfOperationsType      as _BillOfOperationsType      on  $projection.BillOfOperationsType = _BillOfOperationsType.BillOfOperationsType
  association [0..1] to I_InspectionOperationStatus as _InspectionOperationStatus on  $projection.OrderInternalBillOfOperations = _InspectionOperationStatus.OrderInternalBillOfOperations
                                                                                  and $projection.InspPlanOperationInternalID   = _InspectionOperationStatus.InspPlanOperationInternalID
  association [0..1] to I_InspLotUsageDecision      as _InspLotUsageDecision      on  $projection.InspectionLot = _InspLotUsageDecision.InspectionLot
{
      @ObjectModel.foreignKey.association: '_InspectionLot'
  key qaop.prueflos                              as InspectionLot,
  key qaop.vorglfnr                              as InspPlanOperationInternalID,
      _Order.OrderID                             as ProcessOrder,
      _Order.OrderCategory                       as ManufacturingOrderCategory,
      _Order.OrderType                           as ManufacturingOrderType,
      _Order.Plant                               as ProductionPlant,
      _Order.ProductionSupervisor,
      qaop.aufpl                                 as OrderInternalBillOfOperations,
      afvc.aplzl                                 as OrderOperationInternalID,

      case when afvc.pvzkn is not initial
      then afvc.pvzkn
      else
      qaop.vorglfnr  end                         as OrderIntBillOfOpItemOfPhase,

      cast (afvc.vornr as text4 preserving type) as InspectionOperation,
      //afvc.vornr                                     as InspectionOperation,

      @ObjectModel.foreignKey.association: '_Plant'
      afvc.werks                                 as InspectionOperationPlant,
      @ObjectModel.foreignKey.association: '_BillOfOperationsType'
      afvc.plnty                                 as BillOfOperationsType,
      afvc.plnkn                                 as BOOOperationInternalID,
      @ObjectModel.foreignKey.association: '_Workcenter'
      afvc.arbid                                 as WorkCenterInternalID,
      afvc.objnr                                 as StatusObject,
      afvc.steus                                 as OperationControlProfile,
      afvc.rueck                                 as OperationConfirmation,
      afvc.subsys                                as InspectionSubSystem,

      afvc.ltxa1                                 as OperationText,
      //      afvc.qkzprzeit       as InspSbstIsTimeRelated,

      //      afvc.qkzprfrei       as InspSbstHasNoTimeOrQuantity,

      afvc.aplfl                                 as Sequence,

      _InspectionLot.InspectionLotOrigin,
      _InspectionLot.Plant,
      _InspectionLot.InspectionLotText,

      _InspectionLot.InspectionLotType,
      _InspectionLot._InspectionLotType._Text[1: Language=$session.system_language].InspectionLotTypeText,
      _InspLotUsageDecision.InspectionLotUsageDecisionCode,
      _InspLotUsageDecision.InspLotUsageDecisionValuation,
      _InspLotUsageDecision._UsgeDcsnValuationText[1: Language=$session.system_language].InspLotUsgeDcsnValuationText,
      _InspectionLot.MatlQualityAuthorizationGroup,
      // Associations

      _WorkCenter,
      _InspectionLot,
      _InspectionCharacteristic,
      _InspectionSubset,
      _InspectionOperationStatus,
      _Plant,
      _BillOfOperationsType,
      _InspectionLot._InspectionLotOrigin
}
where
  _InspectionLot.InspectionLotOrigin = '03' //only 03 is relevant for Operations

//  or _InspectionLot.InspectionLotOrigin = '04';

/*+[internal] {
"BASEINFO":
{
"FROM":
[
"I_INSPECTIONLOT",
"I_INSPECTIONLOTTYPE",
"I_INSPECTIONLOTTYPETEXT",
"I_INSPLOTUSAGEDECISION",
"I_INSPLOTUSGEDCSNVALNTXT",
"I_LOGISTICSORDER",
"AFVC",
"QAOP"
],
"ASSOCIATED":
[
"I_BILLOFOPERATIONSTYPE",
"I_INSPECTIONCHARACTERISTIC",
"I_INSPECTIONLOT",
"I_INSPECTIONLOTORIGIN",
"I_INSPECTIONOPERATIONSTATUS",
"I_INSPECTIONSUBSET",
"I_INSPLOTUSAGEDECISION",
"I_PLANT",
"I_WORKCENTER"
],
"BASE":
[
"I_INSPECTIONLOT"
],
"ANNO_REF":
[],
"SCALAR_FUNCTION":
[],
"VERSION":0,
"ANNOREF_EVALUATION_ERROR":""
}
}*/