P_ProcOrdOpsInspLot

DDL: P_PROCORDOPSINSPLOT SQL: PPOROPINSPLOT Type: view BASIC

P_ProcOrdOpsInspLot is a Basic CDS View in SAP S/4HANA. It reads from 3 data sources (I_LogisticsOrder, afvc, qaop) and exposes 27 fields with key fields InspectionLot, InspPlanOperationInternalID. It has 7 associations to related views.

Data Sources (3)

SourceAliasJoin Type
I_LogisticsOrder _Order inner
afvc afvc inner
qaop qaop from

Associations (7)

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

Annotations (10)

NameValueLevelField
AbapCatalog.sqlViewName PPOROPINSPLOT view
AbapCatalog.compiler.compareFilter true view
AbapCatalog.preserveKey true view
AccessControl.authorizationCheck #NOT_REQUIRED view
ClientHandling.algorithm #SESSION_VARIABLE view
ObjectModel.usageType.serviceQuality #B view
ObjectModel.usageType.sizeCategory #XL view
ObjectModel.usageType.dataClass #MIXED view
VDM.viewType #BASIC view
VDM.private true view

Fields (27)

KeyFieldSource TableSource FieldDescription
KEY InspectionLot qaop prueflos
KEY InspPlanOperationInternalID qaop vorglfnr
ProcessOrder I_LogisticsOrder OrderID
OrderInternalBillOfOperations qaop aufpl
OrderOperationInternalID afvc aplzl
InspectionOperation afvc vornr
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
InspSbstIsTimeRelated afvc qkzprzeit
InspSbstHasNoTimeOrQuantity afvc qkzprfrei
Sequence afvc aplfl
InspectionLotOrigin _InspectionLot InspectionLotOrigin
_WorkCenter _WorkCenter
_InspectionLot _InspectionLot
_InspectionCharacteristic _InspectionCharacteristic
_InspectionSubset _InspectionSubset
_InspectionOperationStatus _InspectionOperationStatus
_Plant _Plant
_BillOfOperationsType _BillOfOperationsType
_InspectionLotOrigin _InspectionLot _InspectionLotOrigin
@AbapCatalog.sqlViewName: 'PPOROPINSPLOT'
@AbapCatalog.compiler.compareFilter: true
@AbapCatalog.preserveKey: true
@AccessControl.authorizationCheck: #NOT_REQUIRED
//@EndUserText.label: 'Process order operation inspection lot'

@ClientHandling.algorithm: #SESSION_VARIABLE
@ObjectModel.usageType: {serviceQuality: #B, sizeCategory: #XL, dataClass: #MIXED}
@VDM.viewType: #BASIC
@VDM.private: true
define view P_ProcOrdOpsInspLot
  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'
  //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

{
      @ObjectModel.foreignKey.association: '_InspectionLot'
  key qaop.prueflos  as InspectionLot,
  key qaop.vorglfnr  as InspPlanOperationInternalID,
      _Order.OrderID as ProcessOrder,
      qaop.aufpl     as OrderInternalBillOfOperations,
      afvc.aplzl     as OrderOperationInternalID,
      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,

      // 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_LOGISTICSORDER",
"AFVC",
"QAOP"
],
"ASSOCIATED":
[
"I_BILLOFOPERATIONSTYPE",
"I_INSPECTIONCHARACTERISTIC",
"I_INSPECTIONLOT",
"I_INSPECTIONLOTORIGIN",
"I_INSPECTIONOPERATIONSTATUS",
"I_INSPECTIONSUBSET",
"I_PLANT",
"I_WORKCENTER"
],
"BASE":
[
"I_INSPECTIONLOT"
],
"ANNO_REF":
[],
"SCALAR_FUNCTION":
[],
"VERSION":0,
"ANNOREF_EVALUATION_ERROR":""
}
}*/