C_DefectAnalyze
Nonconformance Detailed Analytics
C_DefectAnalyze is a Consumption CDS View (Cube) that provides data about "Nonconformance Detailed Analytics" in SAP S/4HANA. It reads from 1 data source (I_DefectCube) and exposes 60 fields. It has 6 associations to related views.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| I_DefectCube | I_DefectCube | from |
Parameters (5)
| Name | Type | Default |
|---|---|---|
| hidden | true | |
| P_StartDate | mm_a_delivery_date | |
| hidden | true | |
| P_EndDate | mm_a_delivery_date | |
| P_DateFunction | vdm_erdat_dfid |
Associations (6)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [1..1] | I_CalendarDate | _CalendarDate | $projection.CreationDate = _CalendarDate.CalendarDate |
| [0..1] | I_MaterialText | _MaterialText | _MaterialText.Material = $projection.Material and _MaterialText.Language = $session.system_language |
| [0..1] | I_Plant | _Plant | $projection.Plant = _Plant.Plant |
| [0..1] | I_Supplier | _Supplier | $projection.Supplier = _Supplier.Supplier |
| [0..1] | I_Customer | _Customer | $projection.Customer = _Customer.Customer |
| [1..1] | C_DefectKeyFigAnalyze | _DefectKeyFigAnalyze | $projection.DefectInternalID = _DefectKeyFigAnalyze.DefectInternalID |
Annotations (14)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.buffering.status | #NOT_ALLOWED | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| AbapCatalog.sqlViewName | CDEFECTANALYZE | view | |
| AccessControl.authorizationCheck | #CHECK | view | |
| AccessControl.personalData.blocking | #REQUIRED | view | |
| Analytics.dataCategory | #CUBE | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| EndUserText.label | Nonconformance Detailed Analytics | view | |
| Metadata.ignorePropagatedAnnotations | true | view | |
| Metadata.allowExtensions | true | view | |
| ObjectModel.usageType.serviceQuality | #C | view | |
| ObjectModel.usageType.sizeCategory | #S | view | |
| ObjectModel.usageType.dataClass | #TRANSACTIONAL | view | |
| VDM.viewType | #CONSUMPTION | view |
Fields (60)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| hiddentrueP_StartDatemm_a_delivery_date | ||||
| hiddentrueP_EndDatemm_a_delivery_date | ||||
| P_StartDate | ||||
| DefectInternalIDkeyDefectInternalID | ||||
| InspectionLot | InspectionLot | Inspection Lot | ||
| DefectCategoryText | ||||
| DefectCategory | DefectCategory | |||
| CreationDate | CreationDate | Time Stamp | ||
| CalendarYear | _CalendarDate | CalendarYear | Year | |
| CalendarQuarter | _CalendarDate | CalendarQuarter | Calendar Quarter | |
| CalendarQuarterName | ||||
| CalendarMonth | _CalendarDate | CalendarMonth | Calendar Month | |
| CalendarMonthName | ||||
| CalendarWeek | _CalendarDate | CalendarWeek | Calendar Week | |
| DefectCodeText | ||||
| DefectCode | DefectCode | Damage Code | ||
| DefectCodeGroupText | ||||
| DefectCodeGroup | DefectCodeGroup | Code Group | ||
| WorkCenterText | WorkCenterText | Work Center Text | ||
| DefectLifecycleStatus | DefectLifecycleStatus | |||
| WorkCenter | WorkCenter | Work Center | ||
| PlantName | _Plant | PlantName | Plant Name | |
| Plant | Plant | Valuation Area | ||
| SupplierName | _Supplier | SupplierName | Supplier Name | |
| Supplier | Supplier | Supplier | ||
| MaterialName | ||||
| Material | Material | Vehicle Model | ||
| CustomerFullName | _Customer | CustomerFullName | Customer Name | |
| Customer | Customer | Sold-to Party | ||
| InspResultHistoryCharc | ||||
| InspectionCharacteristicText | I_DefectCube | InspectionSpecificationText | ||
| MasterInspCharcsKey | ||||
| InspectionSpecificationText | ||||
| NumberOfDefects | NumberOfDefects | |||
| NumberOfDefectsWithNotif | NumberOfDefectsWithNotif | |||
| NumberOfDefectsWithoutNotif | NumberOfDefectsWithoutNotif | |||
| InspectionLotOrigin | InspectionLotOrigin | |||
| InspectionLotType | InspectionLotType | Inspection Type | ||
| NotificationType | ||||
| NotificationRequiredStartDate | ||||
| NotifRqdStrtYr | ||||
| NotifRqdStrtQtr | ||||
| NotifRqdStrtMnth | ||||
| NotifRqdStrtWk | ||||
| QualityNotificationCount | ||||
| Notification | Notification | Notification | ||
| NotificationItem | NotificationItem | |||
| MainWorkCenterInternalID | MainWorkCenterInternalID | Work Center | ||
| WorkCenterPlant | Plnt WorkCenter | |||
| WorkCenterPlantName | ||||
| MatlQualityAuthorizationGroup | MatlQualityAuthorizationGroup | QM Matl Auth. | ||
| IsBusinessPurposeCompleted | IsBusinessPurposeCompleted | Purpose Completed | ||
| MainWorkCenter | MainWorkCenter | Work Center | ||
| MainWorkCenterPlant | MainWorkCenterPlant | Plnt WorkCenter | ||
| WorkCenterTypeCode | WorkCenterTypeCode | Object Type | ||
| InspectionSpecificationPlant | InspectionSpecificationPlant | |||
| InspectionSpecification | InspectionSpecification | Master IC | ||
| InspectionSpecificationVersion | InspectionSpecificationVersion | |||
| _Notification | _Notification | |||
| _InspectionLot | _InspectionLot |
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_DefectAnalyze.
-- 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.
-- Parameters: hidden : true, P_StartDate : mm_a_delivery_date, hidden : true, P_EndDate : mm_a_delivery_date, P_DateFunction : vdm_erdat_dfid
CREATE VIEW C_DefectAnalyze AS
SELECT
hidden: true AS hiddentrueP_StartDatemm_a_delivery_date,
hidden: true AS hiddentrueP_EndDatemm_a_delivery_date,
valueHelpDefinition: [ { entity: { name: 'C_GregorianCalDateFuncVH', element: 'DateFunction' AS P_StartDate,
InspectionLot,
_DefectCategory._Text[1:Language=$session.system_language].DefectCategoryText AS DefectCategoryText,
DefectCategory,
CreationDate,
_CalendarDate.CalendarYear AS CalendarYear,
_CalendarDate.CalendarQuarter AS CalendarQuarter,
_CalendarDate._CalendarQuarter._Text[1:Language=$session.system_language].CalendarQuarterName AS CalendarQuarterName,
_CalendarDate.CalendarMonth AS CalendarMonth,
_CalendarDate._CalendarMonth._Text[1:Language=$session.system_language].CalendarMonthName AS CalendarMonthName,
_CalendarDate.CalendarWeek AS CalendarWeek,
_DefectCode._Text[1:Language=$session.system_language].DefectCodeText AS DefectCodeText,
DefectCode,
_DefectCodeGroup._Text[1:Language=$session.system_language].DefectCodeGroupText AS DefectCodeGroupText,
DefectCodeGroup,
WorkCenterText,
DefectLifecycleStatus,
WorkCenter,
_Plant.PlantName AS PlantName,
Plant,
_Supplier.SupplierName AS SupplierName,
Supplier,
_MaterialText[1:Language=$session.system_language].MaterialName AS MaterialName,
Material,
_Customer.CustomerFullName AS CustomerFullName,
Customer,
cast( InspResultHistoryCharc as qm_inspresaggr_charkey ) AS InspResultHistoryCharc,
I_DefectCube.InspectionSpecificationText AS InspectionCharacteristicText,
cast( MasterInspCharcsKey as vdm_qmstrinspcharcs ) AS MasterInspCharcsKey,
_InspSpecificationVersionText[1:Language=$session.system_language].InspectionSpecificationText AS InspectionSpecificationText,
NumberOfDefects,
NumberOfDefectsWithNotif,
NumberOfDefectsWithoutNotif,
InspectionLotOrigin,
InspectionLotType,
cast('' as qmart ) AS NotificationType,
cast('' as strmn) AS NotificationRequiredStartDate,
cast('' as vdm_qmnotifrqdstrtyr) AS NotifRqdStrtYr,
cast('' as vdm_qmnotifrqdstrtqtr) AS NotifRqdStrtQtr,
cast('' as vdm_qmnotifrqdstrtmnth) AS NotifRqdStrtMnth,
cast('' as vdm_qmnotifrqdstrtwk) AS NotifRqdStrtWk,
cast ( 0 as vdm_notifcnt ) AS QualityNotificationCount,
Notification,
NotificationItem,
MainWorkCenterInternalID,
cast(MainWorkCenterPlant as vdm_poplatzwrk) AS WorkCenterPlant,
_WorkCenterBySemanticKey._Plant.PlantName AS WorkCenterPlantName,
MatlQualityAuthorizationGroup,
IsBusinessPurposeCompleted,
MainWorkCenter,
MainWorkCenterPlant,
WorkCenterTypeCode,
InspectionSpecificationPlant,
InspectionSpecification,
InspectionSpecificationVersion
FROM I_DefectCube
LEFT OUTER JOIN I_CalendarDate AS _CalendarDate ON CreationDate = _CalendarDate.CalendarDate -- association [1..1]
LEFT OUTER JOIN I_MaterialText AS _MaterialText ON _MaterialText.Material = Material AND _MaterialText.Language = $session.system_language -- association [0..1]
LEFT OUTER JOIN I_Plant AS _Plant ON Plant = _Plant.Plant -- association [0..1]
LEFT OUTER JOIN I_Supplier AS _Supplier ON Supplier = _Supplier.Supplier -- association [0..1]
LEFT OUTER JOIN I_Customer AS _Customer ON Customer = _Customer.Customer -- association [0..1]
LEFT OUTER JOIN C_DefectKeyFigAnalyze AS _DefectKeyFigAnalyze ON DefectInternalID = _DefectKeyFigAnalyze.DefectInternalID -- association [1..1]
;
Learn More
- VDM (Virtual Data Model) in SAP S/4HANA Explained
- Types of CDS Views: Basic, Composite, Consumption, and Transactional
- CDS View Annotations — A Complete Guide
- What Is a CDS View in SAP S/4HANA?
- SAP Tables vs CDS Views — Key Differences
- Understanding Data Lineage in SAP S/4HANA
- CDS View Field Mapping and Associations
- Understanding the SAP S/4HANA Data Model
- CDS View Extensions and Custom Fields in SAP S/4HANA
- Released APIs and Stability Contracts in SAP S/4HANA
- BSEG to ACDOCA: The Universal Journal Migration
- Business Partner Migration: KNA1/LFA1 to BUT000
- Material Document Migration: MSEG/MKPF to MATDOC
- How to Find the Right CDS View for an SAP Table
- BW Extractor to CDS View Migration Guide
- S/4HANA CDS View Deprecation: What You Need to Know
- ABAP CDS View Tutorial — From Basics to Real-World Examples
- RAP and CDS Views — Building Transactional Apps in SAP S/4HANA
- Sales Document Status Migration: VBUP/VBUK Removal in S/4HANA
- CO Tables in S/4HANA: COEP, COBK, COSS, COSP to ACDOCA