C_InspLotDefectCount

DDL: C_INSPLOTDEFECTCOUNT SQL: CINSPDEFCOUNT Type: view CONSUMPTION

Inspection Lot Defect Count

C_InspLotDefectCount is a Consumption CDS View that provides data about "Inspection Lot Defect Count" in SAP S/4HANA. It reads from 1 data source (C_Defect) and exposes 2 fields with key field InspectionLot.

Data Sources (1)

SourceAliasJoin Type
C_Defect C_Defect from

Annotations (9)

NameValueLevelField
AbapCatalog.sqlViewName CINSPDEFCOUNT view
ClientHandling.algorithm #SESSION_VARIABLE view
AbapCatalog.compiler.compareFilter true view
AccessControl.authorizationCheck #PRIVILEGED_ONLY view
EndUserText.label Inspection Lot Defect Count view
VDM.viewType #CONSUMPTION view
ObjectModel.usageType.dataClass #MIXED view
ObjectModel.usageType.serviceQuality #D view
ObjectModel.usageType.sizeCategory #L view

Fields (2)

KeyFieldSource TableSource FieldDescription
KEY InspectionLot InspectionLot Inspection Lot
NumberOfDefects

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 C_InspLotDefectCount.
-- 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: CINSPDEFCOUNT

CREATE VIEW C_InspLotDefectCount AS
SELECT
  InspectionLot,
  cast (sum(NumberOfDefects) as vdm_numberofdefects) AS NumberOfDefects
FROM C_Defect
;