I_InspectionOperation

DDL: I_INSPECTIONOPERATION SQL: IINSPOPERATION Type: view BASIC

Inspection Operation

I_InspectionOperation (Basic)

Package: Explore, extend and adapt the SAP S/4HANA Cloud Private Edition with built-in and side-by-side extension capabilities.

Manufacturing

I_InspectionOperation is a Basic CDS View that provides data about "Inspection Operation" in SAP S/4HANA. It reads from 2 data sources (afvc, qaop) and exposes 27 fields with key fields InspectionLot, InspPlanOperationInternalID. It has 8 associations to related views.

SAP API Hub

StateC1
Line of BusinessManufacturing
Application ComponentQM-IM
CapabilitiesData Source in SQL Select, Data Source for Defining CDS Entities, Association Target for Defining CDS Entities
PackageManufacturing for SAP S/4HANA Cloud Private Edition
Description <p>This CDS view provides access to inspection operations data. </p>

Documentation

Data Sources (2)

SourceAliasJoin Type
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
[1..1] E_InspectionOperation _Extension $projection.InspectionLot = _Extension.InspectionLot and $projection.InspPlanOperationInternalID = _Extension.InspPlanOperationInternalID

Annotations (14)

NameValueLevelField
AbapCatalog.sqlViewName IINSPOPERATION view
AbapCatalog.preserveKey true view
ClientHandling.algorithm #SESSION_VARIABLE view
AbapCatalog.compiler.compareFilter true view
AccessControl.authorizationCheck #CHECK view
AccessControl.personalData.blocking #REQUIRED view
EndUserText.label Inspection Operation view
VDM.viewType #BASIC view
VDM.lifecycle.contract.type #PUBLIC_LOCAL_API view
ObjectModel.usageType.dataClass #TRANSACTIONAL view
ObjectModel.usageType.sizeCategory #L view
ObjectModel.usageType.serviceQuality #A view
ObjectModel.representativeKey InspPlanOperationInternalID view
Metadata.ignorePropagatedAnnotations true view

Fields (27)

KeyFieldSource TableSource FieldDescription
KEY InspectionLot qaop prueflos Inspection Lot Number
KEY InspPlanOperationInternalID qaop vorglfnr Current Node Number from Order Counter
OrderInternalBillOfOperations qaop aufpl Routing number of operations in the order
OrderOperationInternalID afvc aplzl General counter for order
InspectionOperation afvc vornr Activity Number
InspectionOperationPlant afvc werks Receiving Plant
BillOfOperationsType afvc plnty Task List Type
BillOfOperationsGroup afvc plnnr Key for Task List Group
BillOfOperationsVariant afvc plnal Referenced BOO Variant
BOOOperationInternalID afvc plnkn Number of the Task List Node
BillOfOperationsVersion afvc tl_versn Routing Version
WorkCenterInternalID afvc arbid Object ID of the resource
StatusObject afvc objnr Val. Obj. No.
OperationControlProfile afvc steus Control Key
OperationConfirmation afvc rueck Completion confirmation number for the operation
InspectionSubSystem afvc subsys Subsystem Identifier for QM Subsystem Interface
OperationText afvc ltxa1 Operation Short Text
InspSbstIsTimeRelated afvc qkzprzeit Interval = Time (Time-Related)
InspSbstHasNoTimeOrQuantity afvc qkzprfrei Interval Without Reference to Time or Quantity
Sequence afvc aplfl Sequence
_WorkCenter _WorkCenter
_InspectionLot _InspectionLot
_InspectionCharacteristic _InspectionCharacteristic
_InspectionSubset _InspectionSubset
_InspectionOperationStatus _InspectionOperationStatus
_Plant _Plant
_BillOfOperationsType _BillOfOperationsType

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_InspectionOperation.
-- 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: IINSPOPERATION

CREATE VIEW I_InspectionOperation AS
SELECT
  qaop.prueflos AS InspectionLot,
  qaop.vorglfnr AS InspPlanOperationInternalID,
  qaop.aufpl AS OrderInternalBillOfOperations,
  afvc.aplzl AS OrderOperationInternalID,
  afvc.vornr AS InspectionOperation,
  afvc.werks AS InspectionOperationPlant,
  afvc.plnty AS BillOfOperationsType,
  afvc.plnnr AS BillOfOperationsGroup,
  afvc.plnal AS BillOfOperationsVariant,
  afvc.plnkn AS BOOOperationInternalID,
  afvc.tl_versn AS BillOfOperationsVersion,
  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
FROM qaop
INNER JOIN afvc 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 E_InspectionOperation AS _Extension ON InspectionLot = _Extension.InspectionLot AND InspPlanOperationInternalID = _Extension.InspPlanOperationInternalID  -- association [1..1]
;