C_DefectRecordAffectedObject
Object Affected by Defect
C_DefectRecordAffectedObject is a Consumption CDS View that provides data about "Object Affected by Defect" in SAP S/4HANA. It reads from 1 data source (I_DefectAffectedObjectTP) and exposes 21 fields with key fields DefectInternalID, DefectAffectedObject. It has 1 association to related views. It is exposed through 2 OData services (ASQL_F2929, ASQL_F2987). Part of development package ODATA_QM_DEFECT.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| I_DefectAffectedObjectTP | _DefectAffectedObjectTP | from |
Associations (1)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [1..1] | C_DefectRecord | _Defect | $projection.DefectInternalID = _Defect.DefectInternalID |
Annotations (16)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | CDEFRECAFFCDOBJ | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| AccessControl.authorizationCheck | #MANDATORY | view | |
| EndUserText.label | Object Affected by Defect | view | |
| VDM.viewType | #CONSUMPTION | view | |
| ObjectModel.usageType.dataClass | #TRANSACTIONAL | view | |
| ObjectModel.usageType.sizeCategory | #M | view | |
| ObjectModel.usageType.serviceQuality | #C | view | |
| ObjectModel.representativeKey | DefectAffectedObject | view | |
| ObjectModel.compositionRoot | false | view | |
| ObjectModel.transactionalProcessingDelegated | true | view | |
| ObjectModel.createEnabled | false | view | |
| ObjectModel.updateEnabled | EXTERNAL_CALCULATION | view | |
| ObjectModel.deleteEnabled | false | view | |
| Metadata.allowExtensions | true | view |
OData Services (2)
| Service | Binding | Version | Contract | Release |
|---|---|---|---|---|
| ASQL_F2929 | ASQL_F2929 | C2 | NOT_RELEASED | |
| ASQL_F2987 | ASQL_F2987 | C2 | NOT_RELEASED |
Fields (21)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | DefectInternalID | I_DefectAffectedObjectTP | DefectInternalID | Internal Defect ID |
| KEY | DefectAffectedObject | I_DefectAffectedObjectTP | DefectAffectedObject | |
| DefectAffectedObjectType | I_DefectAffectedObjectTP | DefectAffectedObjectType | ||
| Material | I_DefectAffectedObjectTP | Material | Vehicle Model | |
| ProductName | ||||
| DefectAffectedObjectQuantity | I_DefectAffectedObjectTP | DefectAffectedObjectQuantity | ||
| QltyTaskFollowUpAction | I_DefectAffectedObjectTP | QltyTaskFollowUpAction | ||
| QltyTaskFllwUpActionSts | I_DefectAffectedObjectTP | QltyTaskFllwUpActionSts | ||
| QualityTask | I_DefectAffectedObjectTP | QualityTask | ||
| QualityTaskInternalId | I_DefectAffectedObjectTP | QualityTaskInternalId | ||
| QltyTskFllwUpActnSimlnRslt | I_DefectAffectedObjectTP | QltyTskFllwUpActnSimlnRslt | ||
| DefectAffcdObjQuantityUnit | I_DefectAffectedObjectTP | DefectAffcdObjQuantityUnit | ||
| Batch | I_DefectAffectedObjectTP | Batch | Lot No. | |
| Plant | _Defect | Plant | Valuation Area | |
| DefectAffcdObjIsDefective | I_DefectAffectedObjectTP | DefectAffcdObjIsDefective | ||
| _Defect | _Defect | |||
| _DefectAffcdObjQuantityUnit | I_DefectAffectedObjectTP | _DefectAffcdObjQuantityUnit | ||
| _Product | _Product | |||
| _QltyTskFllwUpActnSimlnRslt | _QltyTskFllwUpActnSimlnRslt | |||
| _QltyTaskFollowUpAction | I_DefectAffectedObjectTP | _QltyTaskFollowUpAction | ||
| _QltyTaskFllwUpActionSts | I_DefectAffectedObjectTP | _QltyTaskFllwUpActionSts |
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_DefectRecordAffectedObject.
-- 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: CDEFRECAFFCDOBJ
CREATE VIEW C_DefectRecordAffectedObject AS
SELECT
_DefectAffectedObjectTP.DefectInternalID AS DefectInternalID,
_DefectAffectedObjectTP.DefectAffectedObject AS DefectAffectedObject,
_DefectAffectedObjectTP.DefectAffectedObjectType AS DefectAffectedObjectType,
_DefectAffectedObjectTP.Material AS Material,
_DefectAffectedObjectTP._Product._Text[1: Language = $session.system_language ].ProductName AS ProductName,
_DefectAffectedObjectTP.DefectAffectedObjectQuantity AS DefectAffectedObjectQuantity,
_DefectAffectedObjectTP.QltyTaskFollowUpAction AS QltyTaskFollowUpAction,
_DefectAffectedObjectTP.QltyTaskFllwUpActionSts AS QltyTaskFllwUpActionSts,
_DefectAffectedObjectTP.QualityTask AS QualityTask,
_DefectAffectedObjectTP.QualityTaskInternalId AS QualityTaskInternalId,
_DefectAffectedObjectTP.QltyTskFllwUpActnSimlnRslt AS QltyTskFllwUpActnSimlnRslt,
_DefectAffectedObjectTP.DefectAffcdObjQuantityUnit AS DefectAffcdObjQuantityUnit,
_DefectAffectedObjectTP.Batch AS Batch,
_Defect.Plant AS Plant,
_DefectAffectedObjectTP.DefectAffcdObjIsDefective AS DefectAffcdObjIsDefective,
_DefectAffectedObjectTP._DefectAffcdObjQuantityUnit AS _DefectAffcdObjQuantityUnit,
_DefectAffectedObjectTP._QltyTaskFollowUpAction AS _QltyTaskFollowUpAction,
_DefectAffectedObjectTP._QltyTaskFllwUpActionSts AS _QltyTaskFllwUpActionSts
FROM I_DefectAffectedObjectTP AS _DefectAffectedObjectTP
LEFT OUTER JOIN C_DefectRecord AS _Defect ON DefectInternalID = _Defect.DefectInternalID -- association [1..1]
;
Learn More
- VDM (Virtual Data Model) in SAP S/4HANA Explained
- Types of CDS Views: Basic, Composite, Consumption, and Transactional
- OData Services in SAP S/4HANA Explained
- Service Bindings and Service Definitions in SAP S/4HANA
- 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