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 Inspection Lot
KEY InspPlanOperationInternalID qaop vorglfnr Node Number
ProcessOrder I_LogisticsOrder OrderID Order ID
ManufacturingOrderCategory I_LogisticsOrder OrderCategory Order Category
ManufacturingOrderType I_LogisticsOrder OrderType Order Type
ProductionPlant I_LogisticsOrder Plant Valuation Area
ProductionSupervisor I_LogisticsOrder ProductionSupervisor Prodn Supervisor
OrderInternalBillOfOperations qaop aufpl TaskList No.Ops
OrderOperationInternalID afvc aplzl Plan No.f.Oper.
vorglfnrendasOrderIntBillOfOpItemOfPhase
InspectionOperation
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
Sequence afvc aplfl Sequence
InspectionLotOrigin _InspectionLot InspectionLotOrigin
Plant _InspectionLot Plant Valuation Area
InspectionLotText _InspectionLot InspectionLotText
InspectionLotType _InspectionLot InspectionLotType Inspection Type
InspectionLotTypeText
InspectionLotUsageDecisionCode _InspLotUsageDecision InspectionLotUsageDecisionCode
InspLotUsageDecisionValuation _InspLotUsageDecision InspLotUsageDecisionValuation
InspLotUsgeDcsnValuationText
MatlQualityAuthorizationGroup _InspectionLot MatlQualityAuthorizationGroup QM Matl Auth.
_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 I_ProcOrdOpsMgmtInspLotsBasic.
-- 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: IPOROPINSPLOTBSC

CREATE VIEW I_ProcOrdOpsMgmtInspLotsBasic AS
SELECT
  qaop.prueflos AS InspectionLot,
  qaop.vorglfnr AS InspPlanOperationInternalID,
  _Order.OrderID AS ProcessOrder,
  _Order.OrderCategory AS ManufacturingOrderCategory,
  _Order.OrderType AS ManufacturingOrderType,
  _Order.Plant AS ProductionPlant,
  _Order.ProductionSupervisor AS 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 AS vorglfnrendasOrderIntBillOfOpItemOfPhase,
  cast (afvc.vornr as text4 preserving type) 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.aplfl AS Sequence,
  _InspectionLot.InspectionLotOrigin AS InspectionLotOrigin,
  _InspectionLot.Plant AS Plant,
  _InspectionLot.InspectionLotText AS InspectionLotText,
  _InspectionLot.InspectionLotType AS InspectionLotType,
  _InspectionLot._InspectionLotType._Text[1: Language=$session.system_language].InspectionLotTypeText AS InspectionLotTypeText,
  _InspLotUsageDecision.InspectionLotUsageDecisionCode AS InspectionLotUsageDecisionCode,
  _InspLotUsageDecision.InspLotUsageDecisionValuation AS InspLotUsageDecisionValuation,
  _InspLotUsageDecision._UsgeDcsnValuationText[1: Language=$session.system_language].InspLotUsgeDcsnValuationText AS InspLotUsgeDcsnValuationText,
  _InspectionLot.MatlQualityAuthorizationGroup AS MatlQualityAuthorizationGroup,
  _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]
LEFT OUTER JOIN I_InspLotUsageDecision AS _InspLotUsageDecision ON InspectionLot = _InspLotUsageDecision.InspectionLot  -- association [0..1]
;