I_Defect_TP

DDL: I_DEFECT_TP SQL: IDEFECTTP Type: view TRANSACTIONAL

Defect

I_Defect_TP is a Transactional CDS View that provides data about "Defect" in SAP S/4HANA. It reads from 1 data source (I_Defect) and exposes 112 fields with key field DefectInternalID. It has 20 associations to related views.

Data Sources (1)

SourceAliasJoin Type
I_Defect _Defect from

Associations (20)

CardinalityTargetAliasCondition
[0..1] tqdefectconfig _DefectConfiguration _Defect.DefectInternalID = _DefectConfiguration.defectinternalid
[0..1] I_DefectCodeGroup _DefectCodeGroup $projection.DefectCodeGroup = _DefectCodeGroup.DefectCodeGroup
[0..1] I_DefectCode _DefectCode $projection.DefectCodeGroup = _DefectCode.DefectCodeGroup and $projection.DefectCode = _DefectCode.DefectCode
[0..1] I_Inspectioncatalog _DefectCauseCodeCatalog $projection.DefectCauseCodeCatalog = _DefectCauseCodeCatalog.InspectionCatalog
[0..1] I_DefectCauseCodeGroup _DefectCauseCodeGroup $projection.DefectCauseCodeGroup = _DefectCauseCodeGroup.DefectCauseCodeGroup
[0..1] I_DefectCauseCode _DefectCauseCode $projection.DefectCauseCodeGroup = _DefectCauseCode.DefectCauseCodeGroup and $projection.DefectCauseCode = _DefectCauseCode.DefectCauseCode
[0..1] I_Inspectioncatalog _DefectObjectCodeCatalog $projection.DefectObjectCodeCatalog = _DefectObjectCodeCatalog.InspectionCatalog
[0..1] I_InspectionCodeGroup _DefectObjectPartCodeGroup $projection.DefectObjectCodeCatalog = _DefectObjectPartCodeGroup.InspectionCatalog and $projection.DefectObjectCodeGroup = _DefectObjectPartCodeGroup.InspectionCodeGroup
[0..1] I_InspectionCode _DefectObjectCode $projection.DefectObjectCodeCatalog = _DefectObjectCode.InspectionCatalog and $projection.DefectObjectCodeGroup = _DefectObjectCode.InspectionCodeGroup and $projection.DefectObjectCode = _DefectObjectCode.InspectionCode
[0..1] I_DefectStatus _DefectStatus $projection.DefectLifecycleStatus = _DefectStatus.DefectLifecycleStatus
[0..1] I_ProblemAnalysisStatus _ProblemAnalysisStatus $projection.ProblemAnalysisStatus = _ProblemAnalysisStatus.ProblemAnalysisStatus
[0..1] I_EWM_WarehouseNumber _EWM_WarehouseNumber $projection.Warehouse = _EWM_WarehouseNumber.Warehouse
[0..1] I_EWM_StorageType _EWM_StorageType $projection.Warehouse = _EWM_StorageType.Warehouse and $projection.StorageType = _EWM_StorageType.StorageType
[0..1] I_EWM_StorageBin _EWM_StorageBin $projection.Warehouse = _EWM_StorageBin.Warehouse and $projection.SourceStorageBin = _EWM_StorageBin.StorageBin
[0..1] I_UnitOfMeasure _DefectiveQtyUnitOfMeasure $projection.DefectiveQuantityUnit = _DefectiveQtyUnitOfMeasure.UnitOfMeasure
[0..1] I_OrderOperationBasic _ProductionOrderOperation $projection.OrderInternalID = _ProductionOrderOperation.OrderInternalID and $projection.InspPlanOperationInternalID = _ProductionOrderOperation.OrderOperationInternalID
[0..*] I_DefectLongTextTP _DefectLongTextTP $projection.DefectInternalID = _DefectLongTextTP.DefectInternalID
[0..*] I_DefectAffectedObjectTP _DefectAffectedObjectTP $projection.DefectInternalID = _DefectAffectedObjectTP.DefectInternalID
[0..*] I_DefectLongTextTP _DefectDetailedDescription $projection.DefectInternalID = _DefectDetailedDescription.DefectInternalID and _DefectDetailedDescription.LongTextID = 'LTXT'
[1..1] E_NotificationItem _Extension $projection.DefectInternalID = _Extension.Notification and _Extension.NotificationItem = '0000'

Annotations (25)

NameValueLevelField
AbapCatalog.sqlViewName IDEFECTTP view
ClientHandling.algorithm #SESSION_VARIABLE view
AbapCatalog.compiler.compareFilter true view
EndUserText.label Defect view
VDM.viewType #TRANSACTIONAL view
VDM.lifecycle.contract.type #SAP_INTERNAL_API view
AccessControl.authorizationCheck #MANDATORY view
ObjectModel.usageType.dataClass #TRANSACTIONAL view
ObjectModel.usageType.sizeCategory #L view
ObjectModel.usageType.serviceQuality #B view
ObjectModel.representativeKey DefectInternalID view
ObjectModel.sapObjectNodeType.name Defect view
ObjectModel.compositionRoot true view
ObjectModel.createEnabled EXTERNAL_CALCULATION view
ObjectModel.updateEnabled EXTERNAL_CALCULATION view
ObjectModel.deleteEnabled true view
ObjectModel.transactionalProcessingEnabled true view
ObjectModel.draftEnabled true view
ObjectModel.writeDraftPersistence QDEFECT_D view
ObjectModel.writeActivePersistence V_DEF_BO2ACT view
ObjectModel.entityChangeStateId ChangedDateTime view
ObjectModel.lifecycle.enqueue.expiryBehavior #RELATIVE_TO_LAST_CHANGE view
ObjectModel.lifecycle.enqueue.expiryInterval PT15M view
ObjectModel.lifecycle.processing.expiryBehavior #RELATIVE_TO_LAST_CHANGE view
ObjectModel.lifecycle.processing.expiryInterval PT30M view

Fields (112)

KeyFieldSource TableSource FieldDescription
KEY DefectInternalID I_Defect DefectInternalID Internal Defect ID
Defect I_Defect Defect
DefectCategory I_Defect DefectCategory
CreatedByUser I_Defect CreatedByUser User Name
CreationDate I_Defect CreationDate Time Stamp
LastChangedByUser I_Defect LastChangedByUser User Name
LastChangeDate I_Defect LastChangeDate Time Stamp
DefectText I_Defect DefectText Description
DefectCodeCatalog I_Defect DefectCodeCatalog
DefectCodeGroup I_Defect DefectCodeGroup Code Group
DefectCode I_Defect DefectCode Damage Code
DefectCodeVersion I_Defect DefectCodeVersion
DefectObjectCodeCatalog I_Defect DefectObjectCodeCatalog
DefectObjectCodeGroup I_Defect DefectObjectCodeGroup
DefectObjectCode I_Defect DefectObjectCode
DefectObjectCodeVersion I_Defect DefectObjectCodeVersion
DefectCauseCodeCatalog I_Defect DefectCauseCodeCatalog
DefectCauseCodeGroup I_Defect DefectCauseCodeGroup
DefectCauseCode I_Defect DefectCauseCode
DefectCauseCodeVersion I_Defect DefectCauseCodeVersion
DefectiveQuantity I_Defect DefectiveQuantity
DefectiveQuantityUnit I_Defect DefectiveQuantityUnit
DefectIsCreatedAutomatically I_Defect DefectIsCreatedAutomatically
ProductionOrderOperationActy I_Defect ProductionOrderOperationActy
ProductionOrderOpActyVers I_Defect ProductionOrderOpActyVers
Batch I_Defect Batch Lot No.
DefectiveSingleUnit I_Defect DefectiveSingleUnit
ProductionOrder I_Defect ProductionOrder Order
OrderInternalID I_Defect OrderInternalID Plan No.f.Oper.
ProductionOrderOperation _ProductionOrderOperation Operation Transaction
ProductionOrderSequence _ProductionOrderOperation Sequence Visit Sequence
CreationTime I_Defect CreationTime Time of Change
LastChangeTime I_Defect LastChangeTime Time changed
DefectClass I_Defect DefectClass Defect Class
NumberOfDefects I_Defect NumberOfDefects
InspPlanOperationInternalID I_Defect InspPlanOperationInternalID
InspectionCharacteristic I_Defect InspectionCharacteristic
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
MainWorkCenter I_Defect MainWorkCenter Work Center
Equipment I_Defect Equipment Equipment check
FunctionalLocation I_Defect FunctionalLocation Object ID
IsDeleted I_Defect IsDeleted TRUE
DefectOrigin I_Defect DefectOrigin
Material I_Defect Material Vehicle Model
Plant I_Defect Plant Valuation Area
StorageLocation I_Defect StorageLocation StorageLocation
InspectionLot I_Defect InspectionLot Inspection Lot
CatalogProfile I_Defect CatalogProfile Catalog Profile
ChangedDateTime I_Defect ChangedDateTime Time Stamp
DefectLifecycleStatus DefectLifecycleStatus
DefectArchivingStatus DefectArchivingStatus
ProblemAnalysisStatus ProblemAnalysisStatus
QualityIssueReference QualityIssueReference Reference Number
MasterLanguage MasterLanguage Primary lang.
DefectUUID DefectUUID Defect UUID
ProductionSupplyArea I_Defect ProductionSupplyArea Supply Area
Warehouse I_Defect EWMWarehouse Warehouse No.
StorageType I_Defect SourceStorageType
SourceStorageBin I_Defect SourceStorageBin
WarehouseLogicalSystem I_Defect WarehouseLogicalSystem Logical System of Warehouse
DefectConfigurationValue _DefectConfiguration defectconfigurationvalue
DefectCausedBy I_Defect DefectCausedBy Defect Caused By
CostCenter I_Defect CostCenter Cost Center
BOMItemInstanceUUID I_Defect BOMItemInstanceUUID
OpActyNtwkInstance I_Defect OpActyNtwkInstance Instance ID
OpActyNtwkElement I_Defect OpActyNtwkElement Element Number
ProducedMaterial I_Defect ProducedMaterial
ProducedSerialNumber I_Defect ProducedSerialNumber
BillOfMaterialCategory I_Defect BillOfMaterialCategory BOM category
BillOfMaterial I_Defect BillOfMaterial BOM
BillOfMaterialVariant I_Defect BillOfMaterialVariant AlternativeBOM
BillOfMaterialItemNodeNumber I_Defect BillOfMaterialItemNodeNumber Item node
BOMItemInternalChangeCount I_Defect BOMItemInternalChangeCount Counter
_CatalogProfile I_Defect _CatalogProfile
_DefectCategory I_Defect _DefectCategory
_DefectCode _DefectCode
_DefectCodeCatalog I_Defect _DefectCodeCatalog
_DefectCodeGroup _DefectCodeGroup
_InspectionLot I_Defect _InspectionLot
_DefectiveQtyUnitOfMeasure _DefectiveQtyUnitOfMeasure
_DefectiveQuantityUnit I_Defect _DefectiveQuantityUnit
_DefectObjectCodeCatalog _DefectObjectCodeCatalog
_DefectObjectPartCodeGroup _DefectObjectPartCodeGroup
_DefectObjectCode _DefectObjectCode
_DefectStatus _DefectStatus
_DefectArchivingStatus I_Defect _DefectArchivingStatus
_ProblemAnalysisStatus _ProblemAnalysisStatus
_Product _Product
_ProducedMaterial _ProducedMaterial
_Plant _Plant
_StorageLocation _StorageLocation
_DefectClass _DefectClass
_CreatedByUserContactCard _CreatedByUserContactCard
_LastChangedByUserContactCard _LastChangedByUserContactCard
_DefectCauseCodeCatalog _DefectCauseCodeCatalog
_DefectCauseCodeGroup _DefectCauseCodeGroup
_DefectCauseCode _DefectCauseCode
_ProductionSupplyArea _ProductionSupplyArea
_EWM_WarehouseNumber_2 _EWM_WarehouseNumber_2
_EWM_WarehouseNumber _EWM_WarehouseNumber
_EWM_SourceStorageType _EWM_SourceStorageType
_EWM_StorageType _EWM_StorageType
_EWM_SourceStorageBin _EWM_SourceStorageBin
_EWM_StorageBin _EWM_StorageBin
_DefectCausedBy _DefectCausedBy
_DefectLongTextTP _DefectLongTextTP
_DefectAffectedObjectTP _DefectAffectedObjectTP
_DefectDetailedDescription _DefectDetailedDescription

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 I_Defect_TP.
-- 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: IDEFECTTP

CREATE VIEW I_Defect_TP AS
SELECT
  _Defect.DefectInternalID AS DefectInternalID,
  _Defect.Defect AS Defect,
  _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,
  _ProductionOrderOperation.Operation AS ProductionOrderOperation,
  _ProductionOrderOperation.Sequence AS ProductionOrderSequence,
  _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.StorageLocation AS StorageLocation,
  _Defect.InspectionLot AS InspectionLot,
  _Defect.CatalogProfile AS CatalogProfile,
  _Defect.ChangedDateTime AS ChangedDateTime,
  DefectLifecycleStatus,
  DefectArchivingStatus,
  ProblemAnalysisStatus,
  QualityIssueReference,
  MasterLanguage,
  DefectUUID,
  _Defect.ProductionSupplyArea AS ProductionSupplyArea,
  _Defect.EWMWarehouse AS Warehouse,
  _Defect.SourceStorageType AS StorageType,
  _Defect.SourceStorageBin AS SourceStorageBin,
  _Defect.WarehouseLogicalSystem AS WarehouseLogicalSystem,
  _DefectConfiguration.defectconfigurationvalue AS DefectConfigurationValue,
  _Defect.DefectCausedBy AS DefectCausedBy,
  _Defect.CostCenter AS CostCenter,
  _Defect.BOMItemInstanceUUID AS BOMItemInstanceUUID,
  _Defect.OpActyNtwkInstance AS OpActyNtwkInstance,
  _Defect.OpActyNtwkElement AS OpActyNtwkElement,
  _Defect.ProducedMaterial AS ProducedMaterial,
  _Defect.ProducedSerialNumber AS ProducedSerialNumber,
  _Defect.BillOfMaterialCategory AS BillOfMaterialCategory,
  _Defect.BillOfMaterial AS BillOfMaterial,
  _Defect.BillOfMaterialVariant AS BillOfMaterialVariant,
  _Defect.BillOfMaterialItemNodeNumber AS BillOfMaterialItemNodeNumber,
  _Defect.BOMItemInternalChangeCount AS BOMItemInternalChangeCount,
  _Defect._CatalogProfile AS _CatalogProfile,
  _Defect._DefectCategory AS _DefectCategory,
  _Defect._DefectCodeCatalog AS _DefectCodeCatalog,
  _Defect._InspectionLot AS _InspectionLot,
  _Defect._DefectiveQuantityUnit AS _DefectiveQuantityUnit,
  _Defect._DefectArchivingStatus AS _DefectArchivingStatus
FROM I_Defect AS _Defect
LEFT OUTER JOIN tqdefectconfig AS _DefectConfiguration ON _Defect.DefectInternalID = _DefectConfiguration.defectinternalid  -- association [0..1]
LEFT OUTER JOIN I_DefectCodeGroup AS _DefectCodeGroup ON DefectCodeGroup = _DefectCodeGroup.DefectCodeGroup  -- association [0..1]
LEFT OUTER JOIN I_DefectCode AS _DefectCode ON DefectCodeGroup = _DefectCode.DefectCodeGroup AND DefectCode = _DefectCode.DefectCode  -- association [0..1]
LEFT OUTER JOIN I_Inspectioncatalog AS _DefectCauseCodeCatalog ON DefectCauseCodeCatalog = _DefectCauseCodeCatalog.InspectionCatalog  -- association [0..1]
LEFT OUTER JOIN I_DefectCauseCodeGroup AS _DefectCauseCodeGroup ON DefectCauseCodeGroup = _DefectCauseCodeGroup.DefectCauseCodeGroup  -- association [0..1]
LEFT OUTER JOIN I_DefectCauseCode AS _DefectCauseCode ON DefectCauseCodeGroup = _DefectCauseCode.DefectCauseCodeGroup AND DefectCauseCode = _DefectCauseCode.DefectCauseCode  -- association [0..1]
LEFT OUTER JOIN I_Inspectioncatalog AS _DefectObjectCodeCatalog ON DefectObjectCodeCatalog = _DefectObjectCodeCatalog.InspectionCatalog  -- association [0..1]
LEFT OUTER JOIN I_InspectionCodeGroup AS _DefectObjectPartCodeGroup ON DefectObjectCodeCatalog = _DefectObjectPartCodeGroup.InspectionCatalog AND DefectObjectCodeGroup = _DefectObjectPartCodeGroup.InspectionCodeGroup  -- association [0..1]
LEFT OUTER JOIN I_InspectionCode AS _DefectObjectCode ON DefectObjectCodeCatalog = _DefectObjectCode.InspectionCatalog AND DefectObjectCodeGroup = _DefectObjectCode.InspectionCodeGroup AND DefectObjectCode = _DefectObjectCode.InspectionCode  -- association [0..1]
LEFT OUTER JOIN I_DefectStatus AS _DefectStatus ON DefectLifecycleStatus = _DefectStatus.DefectLifecycleStatus  -- association [0..1]
LEFT OUTER JOIN I_ProblemAnalysisStatus AS _ProblemAnalysisStatus ON ProblemAnalysisStatus = _ProblemAnalysisStatus.ProblemAnalysisStatus  -- association [0..1]
LEFT OUTER JOIN I_EWM_WarehouseNumber AS _EWM_WarehouseNumber ON Warehouse = _EWM_WarehouseNumber.Warehouse  -- association [0..1]
LEFT OUTER JOIN I_EWM_StorageType AS _EWM_StorageType ON Warehouse = _EWM_StorageType.Warehouse AND StorageType = _EWM_StorageType.StorageType  -- association [0..1]
LEFT OUTER JOIN I_EWM_StorageBin AS _EWM_StorageBin ON Warehouse = _EWM_StorageBin.Warehouse AND SourceStorageBin = _EWM_StorageBin.StorageBin  -- association [0..1]
LEFT OUTER JOIN I_UnitOfMeasure AS _DefectiveQtyUnitOfMeasure ON DefectiveQuantityUnit = _DefectiveQtyUnitOfMeasure.UnitOfMeasure  -- association [0..1]
LEFT OUTER JOIN I_OrderOperationBasic AS _ProductionOrderOperation ON OrderInternalID = _ProductionOrderOperation.OrderInternalID AND InspPlanOperationInternalID = _ProductionOrderOperation.OrderOperationInternalID  -- association [0..1]
LEFT OUTER JOIN I_DefectLongTextTP AS _DefectLongTextTP ON DefectInternalID = _DefectLongTextTP.DefectInternalID  -- association [0..*]
LEFT OUTER JOIN I_DefectAffectedObjectTP AS _DefectAffectedObjectTP ON DefectInternalID = _DefectAffectedObjectTP.DefectInternalID  -- association [0..*]
LEFT OUTER JOIN I_DefectLongTextTP AS _DefectDetailedDescription ON DefectInternalID = _DefectDetailedDescription.DefectInternalID AND _DefectDetailedDescription.LongTextID = 'LTXT'  -- association [0..*]
LEFT OUTER JOIN E_NotificationItem AS _Extension ON DefectInternalID = _Extension.Notification AND _Extension.NotificationItem = '0000'  -- association [1..1]
;