C_DefectFDP
FDP view for QM Defect
C_DefectFDP is a Consumption CDS View that provides data about "FDP view for QM Defect" in SAP S/4HANA. It reads from 1 data source (I_Defect) and exposes 65 fields with key field DefectInternalID. It has 9 associations to related views. Part of development package ODATA_QM_DEFECT.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| I_Defect | _Defect | from |
Associations (9)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [0..*] | C_DefectTaskFDP | _DefectTask | $projection.DefectInternalID = _DefectTask.DefectInternalID |
| [0..*] | C_DefectAffectedObjectFDP | _DefectAffectedObject | $projection.DefectInternalID = _DefectAffectedObject.DefectInternalID |
| [0..*] | C_DefectSerialNumberFDP | _DefectSerialNumber | $projection.DefectInternalID = _DefectSerialNumber.DefectInternalID |
| [0..1] | I_InspectionOperation | _InspectionOperation | $projection.InspectionLot = _InspectionOperation.InspectionLot and $projection.InspPlanOperationInternalID = _InspectionOperation.InspPlanOperationInternalID |
| [0..1] | I_InspectionCharacteristic | _InspectionCharacteristic | $projection.InspectionLot = _InspectionCharacteristic.InspectionLot and $projection.InspPlanOperationInternalID = _InspectionCharacteristic.InspPlanOperationInternalID and $projection.InspectionCharacteristic = _InspectionCharacteristic.InspectionCharacteristic |
| [0..1] | I_Plant | _MainWorkCenterPlant | $projection.MainWorkCenterPlant = _MainWorkCenterPlant.Plant |
| [0..*] | I_UnitOfMeasureText | _DefectiveQuantityUnitText | $projection.DefectiveQuantityUnit = _DefectiveQuantityUnitText.UnitOfMeasure |
| [0..*] | I_WorkCenterText | _MainWorkCenterText | $projection.WorkCenterTypeCode = _MainWorkCenterText.WorkCenterTypeCode and $projection.MainWorkCenterInternalID = _MainWorkCenterText.WorkCenterInternalID |
| [1..1] | E_NotificationItem | _Extension | $projection.DefectInternalID = _Extension.Notification and _Extension.NotificationItem = '0000' |
Annotations (13)
| Name | Value | Level | Field |
|---|---|---|---|
| AccessControl.authorizationCheck | #MANDATORY | view | |
| AccessControl.personalData.blocking | #BLOCKED_DATA_EXCLUDED | view | |
| EndUserText.label | FDP view for QM Defect | view | |
| VDM.viewType | #CONSUMPTION | view | |
| VDM.lifecycle.contract.type | #PUBLIC_LOCAL_API | view | |
| ObjectModel.modelingPattern | #OUTPUT_FORM_DATA_PROVIDER | view | |
| ObjectModel.usageType.dataClass | #TRANSACTIONAL | view | |
| ObjectModel.usageType.sizeCategory | #L | view | |
| ObjectModel.usageType.serviceQuality | #D | view | |
| ObjectModel.representativeKey | DefectInternalID | view | |
| Metadata.allowExtensions | true | view | |
| Metadata.ignorePropagatedAnnotations | true | view | |
| Consumption.semanticObject | Defect | view |
Fields (65)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | DefectInternalID | I_Defect | DefectInternalID | Internal Defect ID |
| Defect | I_Defect | Defect | ||
| DefectCategory | I_Defect | DefectCategory | ||
| DefectCategoryText | ||||
| CreatedByUser | I_Defect | CreatedByUser | User Name | |
| CreatedByUserDescription | ||||
| CreationDate | I_Defect | CreationDate | Time Stamp | |
| CreationTime | I_Defect | CreationTime | Time of Change | |
| LastChangedByUser | I_Defect | LastChangedByUser | User Name | |
| LastChangedByUserDescription | ||||
| LastChangeDate | I_Defect | LastChangeDate | Time Stamp | |
| LastChangeTime | I_Defect | LastChangeTime | Time changed | |
| DefectText | I_Defect | DefectText | ||
| DefectCodeCatalog | I_Defect | DefectCodeCatalog | ||
| DefectCodeGroup | I_Defect | DefectCodeGroup | Code Group | |
| DefectCodeGroupText | ||||
| DefectCode | I_Defect | DefectCode | Damage Code | |
| DefectCodeText | ||||
| DefectiveQuantity | I_Defect | DefectiveQuantity | ||
| DefectiveQuantityUnit | I_Defect | DefectiveQuantityUnit | ||
| Product | I_Defect | Material | Vehicle Model | |
| ProductName | ||||
| Plant | I_Defect | Plant | Valuation Area | |
| PlantName | ||||
| Batch | I_Defect | Batch | Lot No. | |
| ManufacturingOrder | I_Defect | ProductionOrder | Order | |
| ManufacturingOrderText | ||||
| ManufacturingOrderSequence | ||||
| MfgOrderSequenceText | ||||
| ManufacturingOrderOperation | ||||
| MfgOrderOperationText | ||||
| OrderInternalID | I_Defect | OrderInternalID | Plan No.f.Oper. | |
| DefectClass | I_Defect | DefectClass | Defect Class | |
| DefectClassText | ||||
| NumberOfDefects | I_Defect | NumberOfDefects | ||
| InspectionLot | I_Defect | InspectionLot | Inspection Lot | |
| InspPlanOperationInternalID | I_Defect | InspPlanOperationInternalID | ||
| InspectionOperation | ||||
| OperationText | _InspectionOperation | OperationText | Description | |
| InspectionCharacteristic | I_Defect | InspectionCharacteristic | ||
| InspectionCharacteristicText | _InspectionCharacteristic | InspectionCharacteristicText | SText insp.char | |
| InspectionSubsetInternalID | I_Defect | InspectionSubsetInternalID | ||
| MaterialSample | I_Defect | MaterialSample | ||
| WorkCenterTypeCode | I_Defect | WorkCenterTypeCode | Object Type | |
| MainWorkCenterInternalID | I_Defect | MainWorkCenterInternalID | Work Center | |
| MainWorkCenterPlant | I_Defect | MainWorkCenterPlant | Plnt WorkCenter | |
| MainWorkCenterPlantName | _MainWorkCenterPlant | PlantName | Plant Name | |
| MainWorkCenter | I_Defect | MainWorkCenter | Work Center | |
| MainWorkCenterText | ||||
| IsDeleted | I_Defect | IsDeleted | TRUE | |
| DefectOrigin | I_Defect | DefectOrigin | ||
| ChangedDateTime | I_Defect | ChangedDateTime | Time Stamp | |
| DefectLifecycleStatus | I_Defect | DefectLifecycleStatus | ||
| DefectLifecycleStatusText | ||||
| ProblemAnalysisStatus | I_Defect | ProblemAnalysisStatus | ||
| ProblemAnalysisStatusText | ||||
| QualityIssueReference | I_Defect | QualityIssueReference | Reference Number | |
| MasterLanguage | ||||
| DefectDetailedDescription | ||||
| _DefectiveQuantityUnitText | _DefectiveQuantityUnitText | |||
| _InspectionLot | _InspectionLot | |||
| _Product | _Product | |||
| _DefectAffectedObject | _DefectAffectedObject | |||
| _DefectTask | _DefectTask | |||
| _DefectSerialNumber | _DefectSerialNumber |
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_DefectFDP.
-- 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.
CREATE VIEW C_DefectFDP AS
SELECT
_Defect.DefectInternalID AS DefectInternalID,
_Defect.Defect AS Defect,
_Defect.DefectCategory AS DefectCategory,
_Defect._DefectCategory._Text[ 1: Language = $session.system_language ].DefectCategoryText AS DefectCategoryText,
_Defect.CreatedByUser AS CreatedByUser,
cast( _Defect._CreatedByUserContactCard.FullName as vdm_createdbyuserdescription preserving type ) AS CreatedByUserDescription,
_Defect.CreationDate AS CreationDate,
_Defect.CreationTime AS CreationTime,
_Defect.LastChangedByUser AS LastChangedByUser,
cast( _Defect._LastChangedByUserContactCard.FullName as vdm_lastchangedbyuserdescripti preserving type ) AS LastChangedByUserDescription,
_Defect.LastChangeDate AS LastChangeDate,
_Defect.LastChangeTime AS LastChangeTime,
_Defect.DefectText AS DefectText,
_Defect.DefectCodeCatalog AS DefectCodeCatalog,
_Defect.DefectCodeGroup AS DefectCodeGroup,
_Defect._DefectCodeGroup._Text[ 1: Language = $session.system_language ].DefectCodeGroupText AS DefectCodeGroupText,
_Defect.DefectCode AS DefectCode,
_Defect._DefectCode._Text[ 1: Language = $session.system_language ].DefectCodeText AS DefectCodeText,
_Defect.DefectiveQuantity AS DefectiveQuantity,
_Defect.DefectiveQuantityUnit AS DefectiveQuantityUnit,
_Defect.Material AS Product,
_Defect._Product._Text[ 1: Language = $session.system_language ].ProductName AS ProductName,
_Defect.Plant AS Plant,
_Defect._Plant.PlantName AS PlantName,
_Defect.Batch AS Batch,
_Defect.ProductionOrder AS ManufacturingOrder,
_Defect._ManufacturingOrder.ManufacturingOrderText AS ManufacturingOrderText,
_Defect._ManufacturingOrderOperation.ManufacturingOrderSequence AS ManufacturingOrderSequence,
cast(' ' as mfgordersequencetext preserving type) AS MfgOrderSequenceText,
cast( _Defect._ManufacturingOrderOperation.ManufacturingOrderOperation as vdm_vornr preserving type ) AS ManufacturingOrderOperation,
_Defect._ManufacturingOrderOperation.MfgOrderOperationText AS MfgOrderOperationText,
_Defect.OrderInternalID AS OrderInternalID,
_Defect.DefectClass AS DefectClass,
_Defect._DefectClass._Text[ 1: Language = $session.system_language ].DefectClassText AS DefectClassText,
_Defect.NumberOfDefects AS NumberOfDefects,
_Defect.InspectionLot AS InspectionLot,
_Defect.InspPlanOperationInternalID AS InspPlanOperationInternalID,
cast( _InspectionOperation.InspectionOperation as vdm_vornr preserving type ) AS InspectionOperation,
_InspectionOperation.OperationText AS OperationText,
_Defect.InspectionCharacteristic AS InspectionCharacteristic,
_InspectionCharacteristic.InspectionCharacteristicText AS InspectionCharacteristicText,
_Defect.InspectionSubsetInternalID AS InspectionSubsetInternalID,
_Defect.MaterialSample AS MaterialSample,
_Defect.WorkCenterTypeCode AS WorkCenterTypeCode,
_Defect.MainWorkCenterInternalID AS MainWorkCenterInternalID,
_Defect.MainWorkCenterPlant AS MainWorkCenterPlant,
_MainWorkCenterPlant.PlantName AS MainWorkCenterPlantName,
_Defect.MainWorkCenter AS MainWorkCenter,
_MainWorkCenterText[ 1: Language = $session.system_language ].WorkCenterText AS MainWorkCenterText,
_Defect.IsDeleted AS IsDeleted,
_Defect.DefectOrigin AS DefectOrigin,
_Defect.ChangedDateTime AS ChangedDateTime,
_Defect.DefectLifecycleStatus AS DefectLifecycleStatus,
_Defect._DefectStatus._DefectStatusText[ 1: Language = $session.system_language ].DefectLifecycleStatusText AS DefectLifecycleStatusText,
_Defect.ProblemAnalysisStatus AS ProblemAnalysisStatus,
_Defect._ProblemAnalysisStatus._ProblemAnalysisStatusT[ 1: Language = $session.system_language ].ProblemAnalysisStatusText AS ProblemAnalysisStatusText,
_Defect.QualityIssueReference AS QualityIssueReference,
cast( _Defect.MasterLanguage as vdm_j_masterlanguage ) AS MasterLanguage,
_Defect._DefectLongText[ 1: Language = masterlanguage and LongTextID = 'LTXT' ].DefectLongText AS DefectDetailedDescription
FROM I_Defect AS _Defect
LEFT OUTER JOIN C_DefectTaskFDP AS _DefectTask ON DefectInternalID = _DefectTask.DefectInternalID -- association [0..*]
LEFT OUTER JOIN C_DefectAffectedObjectFDP AS _DefectAffectedObject ON DefectInternalID = _DefectAffectedObject.DefectInternalID -- association [0..*]
LEFT OUTER JOIN C_DefectSerialNumberFDP AS _DefectSerialNumber ON DefectInternalID = _DefectSerialNumber.DefectInternalID -- association [0..*]
LEFT OUTER JOIN I_InspectionOperation AS _InspectionOperation ON InspectionLot = _InspectionOperation.InspectionLot AND InspPlanOperationInternalID = _InspectionOperation.InspPlanOperationInternalID -- association [0..1]
LEFT OUTER JOIN I_InspectionCharacteristic AS _InspectionCharacteristic ON InspectionLot = _InspectionCharacteristic.InspectionLot AND InspPlanOperationInternalID = _InspectionCharacteristic.InspPlanOperationInternalID AND InspectionCharacteristic = _InspectionCharacteristic.InspectionCharacteristic -- association [0..1]
LEFT OUTER JOIN I_Plant AS _MainWorkCenterPlant ON MainWorkCenterPlant = _MainWorkCenterPlant.Plant -- association [0..1]
LEFT OUTER JOIN I_UnitOfMeasureText AS _DefectiveQuantityUnitText ON DefectiveQuantityUnit = _DefectiveQuantityUnitText.UnitOfMeasure -- association [0..*]
LEFT OUTER JOIN I_WorkCenterText AS _MainWorkCenterText ON WorkCenterTypeCode = _MainWorkCenterText.WorkCenterTypeCode AND MainWorkCenterInternalID = _MainWorkCenterText.WorkCenterInternalID -- association [0..*]
LEFT OUTER JOIN E_NotificationItem AS _Extension ON DefectInternalID = _Extension.Notification AND _Extension.NotificationItem = '0000' -- 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