C_DefectTaskRecord
Record Defect Task
C_DefectTaskRecord is a Consumption CDS View that provides data about "Record Defect Task" in SAP S/4HANA. It reads from 1 data source (I_QualityTaskTP) and exposes 32 fields with key field QualityTaskInternalId. It has 2 associations 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_QualityTaskTP | I_QualityTaskTP | from |
Associations (2)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [1..1] | C_DefectRecord | _DefectRecord | $projection.DefectInternalID = _DefectRecord.DefectInternalID |
| [0..1] | C_DefectQltyTskProcsrNotes | _DefectQltyTskProcsrNotes | $projection.QualityTaskInternalId = _DefectQltyTskProcsrNotes.QualityTaskInternalId and $projection.MasterLanguage = _DefectQltyTskProcsrNotes.Language and _DefectQltyTskProcsrNotes.ItemCounter = 1 |
Annotations (17)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | CDEFTSKREC | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| AccessControl.authorizationCheck | #CHECK | view | |
| AccessControl.personalData.blocking | #NOT_REQUIRED | view | |
| VDM.viewType | #CONSUMPTION | view | |
| EndUserText.label | Record Defect Task | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| ObjectModel.representativeKey | QualityTaskInternalId | view | |
| ObjectModel.usageType.dataClass | #TRANSACTIONAL | view | |
| ObjectModel.usageType.sizeCategory | #L | view | |
| ObjectModel.usageType.serviceQuality | #B | view | |
| ObjectModel.compositionRoot | false | view | |
| ObjectModel.transactionalProcessingDelegated | true | view | |
| ObjectModel.draftEnabled | false | view | |
| ObjectModel.createEnabled | false | view | |
| ObjectModel.updateEnabled | false | view | |
| ObjectModel.deleteEnabled | false | view |
OData Services (2)
| Service | Binding | Version | Contract | Release |
|---|---|---|---|---|
| ASQL_F2929 | ASQL_F2929 | C2 | NOT_RELEASED | |
| ASQL_F2987 | ASQL_F2987 | C2 | NOT_RELEASED |
Fields (32)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | QualityTaskInternalId | QualityTaskInternalId | ||
| QualityTask | QualityTask | |||
| QualityTaskOrigin | QualityTaskOrigin | |||
| QualityTaskText | QualityTaskText | |||
| QualityTaskLifecycleStatus | QualityTaskLifecycleStatus | |||
| QualityTaskArchivingStatus | QualityTaskArchivingStatus | |||
| QualityTaskProcessor | QualityTaskProcessor | |||
| QltyTaskFollowUpAction | QltyTaskFollowUpAction | |||
| QltyTaskFllwUpActionSts | QltyTaskFllwUpActionSts | |||
| MasterLanguage | MasterLanguage | Primary lang. | ||
| NotifTaskPlannedEndDateTime | NotifTaskPlannedEndDateTime | |||
| NotifTaskPlannedEndDate | NotifTaskPlannedEndDate | |||
| NotifTaskPlannedEndTime | NotifTaskPlannedEndTime | |||
| NotifTaskCompletionDateTime | NotifTaskCompletionDateTime | |||
| NotifTaskCompletionDate | NotifTaskCompletionDate | |||
| NotifTaskCompletionTime | NotifTaskCompletionTime | |||
| NotifTaskCompletedByUser | NotifTaskCompletedByUser | |||
| NotifTaskTimeZone | NotifTaskTimeZone | |||
| DefectInternalID | DefectInternalID | Internal Defect ID | ||
| ChangedDateTime | ChangedDateTime | Time Stamp | ||
| IsDeleted | IsDeleted | TRUE | ||
| QltyTskProcgIsCtrldByTskOrigin | QltyTskProcgIsCtrldByTskOrigin | |||
| QltyTaskTimeBasedEffort | QltyTaskTimeBasedEffort | Time Effort for Task | ||
| QltyTaskTimeBasedEffortUoM | QltyTaskTimeBasedEffortUoM | |||
| _DefectRecord | _DefectRecord | |||
| _DefectQltyTskProcsrNotes | _DefectQltyTskProcsrNotes | |||
| _QualityTaskProcessor | _QualityTaskProcessor | |||
| _QualityTaskStatus | _QualityTaskStatus | |||
| _QltyTaskFollowUpAction | _QltyTaskFollowUpAction | |||
| _QltyTaskFllwUpActionSts | _QltyTaskFllwUpActionSts | |||
| _CompletedByUserContactCard | _CompletedByUserContactCard | |||
| _QaulityTaskTimeZone | _QaulityTaskTimeZone |
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_DefectTaskRecord.
-- 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: CDEFTSKREC
CREATE VIEW C_DefectTaskRecord AS
SELECT
QualityTaskInternalId,
QualityTask,
QualityTaskOrigin,
QualityTaskText,
QualityTaskLifecycleStatus,
QualityTaskArchivingStatus,
QualityTaskProcessor,
QltyTaskFollowUpAction,
QltyTaskFllwUpActionSts,
MasterLanguage,
NotifTaskPlannedEndDateTime,
NotifTaskPlannedEndDate,
NotifTaskPlannedEndTime,
NotifTaskCompletionDateTime,
NotifTaskCompletionDate,
NotifTaskCompletionTime,
NotifTaskCompletedByUser,
NotifTaskTimeZone,
DefectInternalID,
ChangedDateTime,
IsDeleted,
QltyTskProcgIsCtrldByTskOrigin,
QltyTaskTimeBasedEffort,
QltyTaskTimeBasedEffortUoM
FROM I_QualityTaskTP
LEFT OUTER JOIN C_DefectRecord AS _DefectRecord ON DefectInternalID = _DefectRecord.DefectInternalID -- association [1..1]
LEFT OUTER JOIN C_DefectQltyTskProcsrNotes AS _DefectQltyTskProcsrNotes ON QualityTaskInternalId = _DefectQltyTskProcsrNotes.QualityTaskInternalId AND MasterLanguage = _DefectQltyTskProcsrNotes.Language AND _DefectQltyTskProcsrNotes.ItemCounter = 1 -- association [0..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