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 Inspection Lot
KEY InspPlanOperationInternalID qaop vorglfnr Node Number
ProcessOrder I_LogisticsOrder OrderID Order ID
OrderInternalBillOfOperations qaop aufpl TaskList No.Ops
OrderOperationInternalID afvc aplzl Plan No.f.Oper.
InspectionOperation afvc vornr Operation
InspectionOperationPlant afvc werks Receiving Plant
BillOfOperationsType afvc plnty Task List Type
BOOOperationInternalID afvc plnkn Task list node
WorkCenterInternalID afvc arbid WorkCtrGp plan.
StatusObject afvc objnr Val. Obj. No.
OperationControlProfile afvc steus Control Key
OperationConfirmation afvc rueck Return Agmt
InspectionSubSystem afvc subsys QDR System
OperationText afvc ltxa1 Short Text
InspSbstIsTimeRelated afvc qkzprzeit Time-related
InspSbstHasNoTimeOrQuantity afvc qkzprfrei No Reference
Sequence afvc aplfl Sequence
InspectionLotOrigin _InspectionLot InspectionLotOrigin
_WorkCenter _WorkCenter
_InspectionLot _InspectionLot
_InspectionCharacteristic _InspectionCharacteristic
_InspectionSubset _InspectionSubset
_InspectionOperationStatus _InspectionOperationStatus
_Plant _Plant
_BillOfOperationsType _BillOfOperationsType
_InspectionLotOrigin _InspectionLot _InspectionLotOrigin

Derived SQL interpretation, reconstructed from the parsed view metadata (data sources, associations, and field mappings). SAP annotations are omitted and the structure is reformulated as SQL — this is a functional approximation, not the verbatim SAP source.

-- Derived SQL interpretation of CDS view P_ProcOrdOpsInspLot.
-- Reconstructed from parsed metadata (data sources, associations, fields).
-- SAP annotations are omitted and the structure is reformulated as SQL;
-- this is a functional approximation, not the verbatim SAP source. Some join
-- conditions may be unavailable and a few CDS constructs are kept as-is.
-- SQL view name: PPOROPINSPLOT

CREATE VIEW P_ProcOrdOpsInspLot AS
SELECT
  qaop.prueflos AS InspectionLot,
  qaop.vorglfnr AS InspPlanOperationInternalID,
  _Order.OrderID AS ProcessOrder,
  qaop.aufpl AS OrderInternalBillOfOperations,
  afvc.aplzl AS OrderOperationInternalID,
  afvc.vornr AS InspectionOperation,
  afvc.werks AS InspectionOperationPlant,
  afvc.plnty AS BillOfOperationsType,
  afvc.plnkn AS BOOOperationInternalID,
  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 AS InspectionLotOrigin,
  _InspectionLot._InspectionLotOrigin AS _InspectionLotOrigin
FROM qaop
INNER JOIN afvc ON /* join condition not captured in parsed metadata */
INNER JOIN I_LogisticsOrder AS _Order ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN I_InspectionLot AS _InspectionLot ON InspectionLot = _InspectionLot.InspectionLot  -- association [1..1]
LEFT OUTER JOIN I_InspectionCharacteristic AS _InspectionCharacteristic ON InspectionLot = _InspectionCharacteristic.InspectionLot AND InspPlanOperationInternalID = _InspectionCharacteristic.InspPlanOperationInternalID  -- association [0..*]
LEFT OUTER JOIN I_InspectionSubset AS _InspectionSubset ON InspectionLot = _InspectionSubset.InspectionLot AND InspPlanOperationInternalID = _InspectionSubset.InspPlanOperationInternalID  -- association [0..*]
LEFT OUTER JOIN I_WorkCenter AS _WorkCenter ON WorkCenterInternalID = _WorkCenter.WorkCenterInternalID AND _WorkCenter.WorkCenterTypeCode = 'A'  -- association [0..1]
LEFT OUTER JOIN I_Plant AS _Plant ON InspectionOperationPlant = _Plant.Plant  -- association [1..1]
LEFT OUTER JOIN I_BillOfOperationsType AS _BillOfOperationsType ON BillOfOperationsType = _BillOfOperationsType.BillOfOperationsType  -- association [1..1]
LEFT OUTER JOIN I_InspectionOperationStatus AS _InspectionOperationStatus ON OrderInternalBillOfOperations = _InspectionOperationStatus.OrderInternalBillOfOperations AND InspPlanOperationInternalID = _InspectionOperationStatus.InspPlanOperationInternalID  -- association [0..1]
;