P_InspOpAggr

DDL: P_INSPOPAGGR SQL: PINSPOPAGGR Type: view CONSUMPTION

P_InspOpAggr is a Consumption CDS View in SAP S/4HANA. It reads from 3 data sources (P_InspCharcAggr, I_InspectionOperation, I_InspOperationUsageDecision) and exposes 4 fields with key field InspectionLot.

Data Sources (3)

SourceAliasJoin Type
P_InspCharcAggr InspCharcAggr from
I_InspectionOperation InspOp left_outer
I_InspOperationUsageDecision InspOperationUsageDecision left_outer

Annotations (5)

NameValueLevelField
AbapCatalog.sqlViewName PINSPOPAGGR view
AbapCatalog.compiler.compareFilter true view
AccessControl.authorizationCheck #NOT_REQUIRED view
VDM.private true view
VDM.viewType #CONSUMPTION view

Fields (4)

KeyFieldSource TableSource FieldDescription
KEY InspectionLot P_InspCharcAggr InspectionLot Inspection Lot
InspCharOpenCount P_InspCharcAggr InspCharOpenCount
InspCharAcceptedCount P_InspCharcAggr InspCharAcceptedCount
InspCharRejectedCount P_InspCharcAggr InspCharRejectedCount

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_InspOpAggr.
-- 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: PINSPOPAGGR

CREATE VIEW P_InspOpAggr AS
SELECT
  InspCharcAggr.InspectionLot AS InspectionLot,
  InspCharcAggr.InspCharOpenCount AS InspCharOpenCount,
  InspCharcAggr.InspCharAcceptedCount AS InspCharAcceptedCount,
  InspCharcAggr.InspCharRejectedCount AS InspCharRejectedCount
FROM P_InspCharcAggr AS InspCharcAggr
LEFT OUTER JOIN I_InspectionOperation AS InspOp ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN I_InspOperationUsageDecision AS InspOperationUsageDecision ON /* join condition not captured in parsed metadata */
;