P_ProcOrdOpInspLotDfctsCnt

DDL: P_PROCORDOPINSPLOTDFCTSCNT SQL: PROROPINSDFCNT Type: view COMPOSITE

P_ProcOrdOpInspLotDfctsCnt is a Composite CDS View in SAP S/4HANA. It reads from 2 data sources (I_QualityDefectUnion, I_ProcOrdOpsMgmtInspLotsBasic) and exposes 4 fields.

Data Sources (2)

SourceAliasJoin Type
I_QualityDefectUnion _Defect from
I_ProcOrdOpsMgmtInspLotsBasic _InspOp inner

Annotations (12)

NameValueLevelField
AbapCatalog.sqlViewName PROROPINSDFCNT view
AbapCatalog.compiler.compareFilter true view
AbapCatalog.preserveKey true view
AccessControl.authorizationCheck #NOT_REQUIRED view
ClientHandling.algorithm #SESSION_VARIABLE view
ClientHandling.type #CLIENT_DEPENDENT view
Metadata.ignorePropagatedAnnotations true view
ObjectModel.usageType.serviceQuality #B view
ObjectModel.usageType.sizeCategory #S view
ObjectModel.usageType.dataClass #TRANSACTIONAL view
VDM.viewType #COMPOSITE view
VDM.private true view

Fields (4)

KeyFieldSource TableSource FieldDescription
InspectionLot I_QualityDefectUnion InspectionLot Inspection Lot
OrderInternalBillOfOperations I_ProcOrdOpsMgmtInspLotsBasic OrderInternalBillOfOperations Order Internal Bill of Operations
OrderIntBillOfOpItemOfPhase I_ProcOrdOpsMgmtInspLotsBasic OrderIntBillOfOpItemOfPhase
InspectionNumberOfDefects

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_ProcOrdOpInspLotDfctsCnt.
-- 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: PROROPINSDFCNT

CREATE VIEW P_ProcOrdOpInspLotDfctsCnt AS
SELECT
  _Defect.InspectionLot AS InspectionLot,
  _InspOp.OrderInternalBillOfOperations AS OrderInternalBillOfOperations,
  _InspOp.OrderIntBillOfOpItemOfPhase AS OrderIntBillOfOpItemOfPhase,
  sum(_Defect.NumberOfDefects) AS InspectionNumberOfDefects
FROM I_QualityDefectUnion AS _Defect
INNER JOIN I_ProcOrdOpsMgmtInspLotsBasic AS _InspOp ON /* join condition not captured in parsed metadata */
;