C_DefectFDP

DDL: C_DEFECTFDP SQL: CDEFECTFDP Type: view CONSUMPTION

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_TP) and exposes 67 fields with key field Defect. It has 3 associations to related views.

Data Sources (1)

SourceAliasJoin Type
I_Defect_TP _Defect from

Associations (3)

CardinalityTargetAliasCondition
[0..*] C_DefectTaskFDP _DefectTask $projection.DefectInternalID = _DefectTask.DefectInternalID
[0..*] C_DefectAffectedObjectFDP _DefectAffectedObject $projection.DefectInternalID = _DefectAffectedObject.DefectInternalID
[1..1] E_NotificationItem _Extension $projection.DefectInternalID = _Extension.Notification and _Extension.NotificationItem = '0000'

Annotations (14)

NameValueLevelField
AbapCatalog.sqlViewName CDEFECTFDP view
AbapCatalog.compiler.compareFilter true view
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.usageType.dataClass #TRANSACTIONAL view
ObjectModel.usageType.sizeCategory #XL view
ObjectModel.usageType.serviceQuality #C view
ObjectModel.representativeKey Defect view
Metadata.allowExtensions true view
Consumption.semanticObject Defect view
ClientHandling.algorithm #SESSION_VARIABLE view

Fields (67)

KeyFieldSource TableSource FieldDescription
KEY Defect I_Defect_TP Defect
DefectInternalID I_Defect_TP DefectInternalID Internal Defect ID
DefectCategory I_Defect_TP DefectCategory
CreatedByUser I_Defect_TP CreatedByUser User Name
CreationDate I_Defect_TP CreationDate Time Stamp
LastChangedByUser I_Defect_TP LastChangedByUser User Name
LastChangeDate I_Defect_TP LastChangeDate Time Stamp
DefectText I_Defect_TP DefectText
DefectCodeCatalog I_Defect_TP DefectCodeCatalog
DefectCodeGroup I_Defect_TP DefectCodeGroup Code Group
DefectCode I_Defect_TP DefectCode Damage Code
DefectCodeVersion I_Defect_TP DefectCodeVersion
DefectObjectCodeCatalog I_Defect_TP DefectObjectCodeCatalog
DefectObjectCodeGroup I_Defect_TP DefectObjectCodeGroup
DefectObjectCode I_Defect_TP DefectObjectCode
DefectObjectCodeVersion I_Defect_TP DefectObjectCodeVersion
DefectCauseCodeCatalog I_Defect_TP DefectCauseCodeCatalog
DefectCauseCodeGroup I_Defect_TP DefectCauseCodeGroup
DefectCauseCode I_Defect_TP DefectCauseCode
DefectCauseCodeVersion I_Defect_TP DefectCauseCodeVersion
DefectiveQuantity I_Defect_TP DefectiveQuantity
DefectiveQuantityUnit I_Defect_TP DefectiveQuantityUnit
DefectIsCreatedAutomatically I_Defect_TP DefectIsCreatedAutomatically
ProductionOrderOperationActy I_Defect_TP ProductionOrderOperationActy
ProductionOrderOpActyVers I_Defect_TP ProductionOrderOpActyVers
Batch I_Defect_TP Batch Lot No.
DefectiveSingleUnit I_Defect_TP DefectiveSingleUnit
ProductionOrder I_Defect_TP ProductionOrder Order
OrderInternalID I_Defect_TP OrderInternalID Plan No.f.Oper.
CreationTime I_Defect_TP CreationTime Time of Change
LastChangeTime I_Defect_TP LastChangeTime Time changed
DefectClass I_Defect_TP DefectClass Defect Class
NumberOfDefects I_Defect_TP NumberOfDefects
InspPlanOperationInternalID I_Defect_TP InspPlanOperationInternalID
InspectionCharacteristic I_Defect_TP InspectionCharacteristic
InspectionSubsetInternalID I_Defect_TP InspectionSubsetInternalID
MaterialSample I_Defect_TP MaterialSample
WorkCenterTypeCode I_Defect_TP WorkCenterTypeCode Object Type
MainWorkCenterInternalID I_Defect_TP MainWorkCenterInternalID Work Center
MainWorkCenterPlant I_Defect_TP MainWorkCenterPlant Plnt WorkCenter
MainWorkCenter I_Defect_TP MainWorkCenter Work Center
Equipment I_Defect_TP Equipment Equipment check
FunctionalLocation I_Defect_TP FunctionalLocation Object ID
IsDeleted I_Defect_TP IsDeleted TRUE
DefectOrigin I_Defect_TP DefectOrigin
Material I_Defect_TP Material Vehicle Model
Plant I_Defect_TP Plant Valuation Area
InspectionLot I_Defect_TP InspectionLot Inspection Lot
CatalogProfile I_Defect_TP CatalogProfile Catalog Profile
ChangedDateTime I_Defect_TP ChangedDateTime Time Stamp
DefectLifecycleStatus I_Defect_TP DefectLifecycleStatus
ProblemAnalysisStatus I_Defect_TP ProblemAnalysisStatus
QualityIssueReference I_Defect_TP QualityIssueReference Reference Number
MasterLanguage I_Defect_TP MasterLanguage Primary lang.
DefectUUID I_Defect_TP DefectUUID Defect UUID
StorageLocation I_Defect_TP StorageLocation StorageLocation
SourceStorageBin I_Defect_TP SourceStorageBin
StorageType I_Defect_TP StorageType Storage Type
ProductionSupplyArea I_Defect_TP ProductionSupplyArea Supply Area
Warehouse I_Defect_TP Warehouse Warehouse No.
BRFFunction
_CreatedByUserContactCard _CreatedByUserContactCard
_InspectionLot _InspectionLot
_LastChangedByUserContactCard _LastChangedByUserContactCard
_Product _Product
_DefectAffectedObject _DefectAffectedObject
_DefectTask _DefectTask

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.
-- SQL view name: CDEFECTFDP

CREATE VIEW C_DefectFDP AS
SELECT
  _Defect.Defect AS Defect,
  _Defect.DefectInternalID AS DefectInternalID,
  _Defect.DefectCategory AS DefectCategory,
  _Defect.CreatedByUser AS CreatedByUser,
  _Defect.CreationDate AS CreationDate,
  _Defect.LastChangedByUser AS LastChangedByUser,
  _Defect.LastChangeDate AS LastChangeDate,
  _Defect.DefectText AS DefectText,
  _Defect.DefectCodeCatalog AS DefectCodeCatalog,
  _Defect.DefectCodeGroup AS DefectCodeGroup,
  _Defect.DefectCode AS DefectCode,
  _Defect.DefectCodeVersion AS DefectCodeVersion,
  _Defect.DefectObjectCodeCatalog AS DefectObjectCodeCatalog,
  _Defect.DefectObjectCodeGroup AS DefectObjectCodeGroup,
  _Defect.DefectObjectCode AS DefectObjectCode,
  _Defect.DefectObjectCodeVersion AS DefectObjectCodeVersion,
  _Defect.DefectCauseCodeCatalog AS DefectCauseCodeCatalog,
  _Defect.DefectCauseCodeGroup AS DefectCauseCodeGroup,
  _Defect.DefectCauseCode AS DefectCauseCode,
  _Defect.DefectCauseCodeVersion AS DefectCauseCodeVersion,
  _Defect.DefectiveQuantity AS DefectiveQuantity,
  _Defect.DefectiveQuantityUnit AS DefectiveQuantityUnit,
  _Defect.DefectIsCreatedAutomatically AS DefectIsCreatedAutomatically,
  _Defect.ProductionOrderOperationActy AS ProductionOrderOperationActy,
  _Defect.ProductionOrderOpActyVers AS ProductionOrderOpActyVers,
  _Defect.Batch AS Batch,
  _Defect.DefectiveSingleUnit AS DefectiveSingleUnit,
  _Defect.ProductionOrder AS ProductionOrder,
  _Defect.OrderInternalID AS OrderInternalID,
  _Defect.CreationTime AS CreationTime,
  _Defect.LastChangeTime AS LastChangeTime,
  _Defect.DefectClass AS DefectClass,
  _Defect.NumberOfDefects AS NumberOfDefects,
  _Defect.InspPlanOperationInternalID AS InspPlanOperationInternalID,
  _Defect.InspectionCharacteristic AS InspectionCharacteristic,
  _Defect.InspectionSubsetInternalID AS InspectionSubsetInternalID,
  _Defect.MaterialSample AS MaterialSample,
  _Defect.WorkCenterTypeCode AS WorkCenterTypeCode,
  _Defect.MainWorkCenterInternalID AS MainWorkCenterInternalID,
  _Defect.MainWorkCenterPlant AS MainWorkCenterPlant,
  _Defect.MainWorkCenter AS MainWorkCenter,
  _Defect.Equipment AS Equipment,
  _Defect.FunctionalLocation AS FunctionalLocation,
  _Defect.IsDeleted AS IsDeleted,
  _Defect.DefectOrigin AS DefectOrigin,
  _Defect.Material AS Material,
  _Defect.Plant AS Plant,
  _Defect.InspectionLot AS InspectionLot,
  _Defect.CatalogProfile AS CatalogProfile,
  _Defect.ChangedDateTime AS ChangedDateTime,
  _Defect.DefectLifecycleStatus AS DefectLifecycleStatus,
  _Defect.ProblemAnalysisStatus AS ProblemAnalysisStatus,
  _Defect.QualityIssueReference AS QualityIssueReference,
  _Defect.MasterLanguage AS MasterLanguage,
  _Defect.DefectUUID AS DefectUUID,
  _Defect.StorageLocation AS StorageLocation,
  _Defect.SourceStorageBin AS SourceStorageBin,
  _Defect.StorageType AS StorageType,
  _Defect.ProductionSupplyArea AS ProductionSupplyArea,
  _Defect.Warehouse AS Warehouse,
  cast( '00' as numc2 preserving type ) AS BRFFunction
FROM I_Defect_TP 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 E_NotificationItem AS _Extension ON DefectInternalID = _Extension.Notification AND _Extension.NotificationItem = '0000'  -- association [1..1]
;