C_DefectTaskRecord

DDL: C_DEFECTTASKRECORD SQL: CDEFTSKREC Type: view CONSUMPTION Package: ODATA_QM_DEFECT

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)

SourceAliasJoin Type
I_QualityTaskTP I_QualityTaskTP from

Associations (2)

CardinalityTargetAliasCondition
[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)

NameValueLevelField
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)

ServiceBindingVersionContractRelease
ASQL_F2929 ASQL_F2929 C2 NOT_RELEASED
ASQL_F2987 ASQL_F2987 C2 NOT_RELEASED

Fields (32)

KeyFieldSource TableSource FieldDescription
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]
;