C_Defect

DDL: C_DEFECT SQL: CDEFECT Type: view CONSUMPTION

Defect Consumption View

C_Defect is a Consumption CDS View that provides data about "Defect Consumption View" in SAP S/4HANA. It reads from 1 data source (I_QualityDefectUnion) and exposes 20 fields with key fields DefectInternalID, NotificationItem.

Data Sources (1)

SourceAliasJoin Type
I_QualityDefectUnion I_QualityDefectUnion from

Annotations (9)

NameValueLevelField
AbapCatalog.sqlViewName CDEFECT view
ClientHandling.algorithm #SESSION_VARIABLE view
AccessControl.authorizationCheck #CHECK view
AbapCatalog.compiler.compareFilter true view
EndUserText.label Defect Consumption View view
VDM.viewType #CONSUMPTION view
ObjectModel.usageType.dataClass #TRANSACTIONAL view
ObjectModel.usageType.sizeCategory #S view
ObjectModel.usageType.serviceQuality #B view

Fields (20)

KeyFieldSource TableSource FieldDescription
KEY DefectInternalID I_QualityDefectUnion Notification Notification
KEY NotificationItem I_QualityDefectUnion NotificationItem
Defect
DefectCodeGroup I_QualityDefectUnion DefectCodeGroup Code Group
DefectCode I_QualityDefectUnion DefectCode Damage Code
NumberOfDefects I_QualityDefectUnion NumberOfDefects
InspPlanOperationInternalID I_QualityDefectUnion InspPlanOperationInternalID
InspectionCharacteristic I_QualityDefectUnion InspectionCharacteristic
InspectionLot I_QualityDefectUnion InspectionLot Inspection Lot
Plant I_QualityDefectUnion Plant Valuation Area
InspectionLotSum
DefectCategory I_QualityDefectUnion DefectCategory
WorkCenterTypeCode I_QualityDefectUnion WorkCenterTypeCode Object Type
MainWorkCenterInternalID I_QualityDefectUnion MainWorkCenterInternalID Work Center
MainWorkCenter I_QualityDefectUnion MainWorkCenter Work Center
MainWorkCenterPlant I_QualityDefectUnion MainWorkCenterPlant Plnt WorkCenter
DefectCodeCatalog I_QualityDefectUnion DefectCodeCatalog
_InspectionLot I_QualityDefectUnion _InspectionLot
_DefectCode _DefectCode
_DefectCodeGroup _DefectCodeGroup

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_Defect.
-- 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: CDEFECT

CREATE VIEW C_Defect AS
SELECT
  I_QualityDefectUnion.Notification AS DefectInternalID,
  I_QualityDefectUnion.NotificationItem AS NotificationItem,
  cast( substring(I_QualityDefectUnion.Notification,2,11) as qdefectid preserving type ) AS Defect,
  I_QualityDefectUnion.DefectCodeGroup AS DefectCodeGroup,
  I_QualityDefectUnion.DefectCode AS DefectCode,
  I_QualityDefectUnion.NumberOfDefects AS NumberOfDefects,
  I_QualityDefectUnion.InspPlanOperationInternalID AS InspPlanOperationInternalID,
  I_QualityDefectUnion.InspectionCharacteristic AS InspectionCharacteristic,
  I_QualityDefectUnion.InspectionLot AS InspectionLot,
  I_QualityDefectUnion.Plant AS Plant,
  cast (1 as abap.int8) AS InspectionLotSum,
  I_QualityDefectUnion.DefectCategory AS DefectCategory,
  I_QualityDefectUnion.WorkCenterTypeCode AS WorkCenterTypeCode,
  I_QualityDefectUnion.MainWorkCenterInternalID AS MainWorkCenterInternalID,
  I_QualityDefectUnion.MainWorkCenter AS MainWorkCenter,
  I_QualityDefectUnion.MainWorkCenterPlant AS MainWorkCenterPlant,
  I_QualityDefectUnion.DefectCodeCatalog AS DefectCodeCatalog,
  I_QualityDefectUnion._InspectionLot AS _InspectionLot
FROM I_QualityDefectUnion
;