I_DefectAffectedObject

DDL: I_DEFECTAFFECTEDOBJECT Type: view_entity BASIC Package: VDM_QM_NOTIFICATION

Object Affected by Defect

I_DefectAffectedObject is a Basic CDS View that provides data about "Object Affected by Defect" in SAP S/4HANA. It reads from 1 data source (qmfe_affctd_obj) and exposes 11 fields with key fields DefectInternalID, DefectAffectedObject. It has 4 associations to related views. Part of development package VDM_QM_NOTIFICATION.

Data Sources (1)

SourceAliasJoin Type
qmfe_affctd_obj qmfe_affctd_obj from

Associations (4)

CardinalityTargetAliasCondition
[1..1] I_Defect _Defect $projection.DefectInternalID = _Defect.DefectInternalID
[0..1] I_Product _Product $projection.Material = _Product.Product
[0..1] I_UnitOfMeasure _DefectAffcdObjQuantityUnit $projection.DefectAffcdObjQuantityUnit = _DefectAffcdObjQuantityUnit.UnitOfMeasure
[1..1] E_DefectAffectedObject _Extension $projection.DefectInternalID = _Extension.Notification and _Extension.NotificationItem = '0000' and $projection.DefectAffectedObject = _Extension.DefectAffectedObject

Annotations (10)

NameValueLevelField
EndUserText.label Object Affected by Defect view
VDM.viewType #BASIC view
VDM.lifecycle.contract.type #PUBLIC_LOCAL_API view
AccessControl.authorizationCheck #CHECK view
ObjectModel.usageType.dataClass #TRANSACTIONAL view
ObjectModel.usageType.sizeCategory #M view
ObjectModel.usageType.serviceQuality #A view
ObjectModel.representativeKey DefectAffectedObject view
Analytics.technicalName IDEFAFFCDOBJ view
Metadata.ignorePropagatedAnnotations true view

Fields (11)

KeyFieldSource TableSource FieldDescription
KEY DefectInternalID Notification
KEY DefectAffectedObject objcounter Affected Object Counter (#)
Defect
DefectAffectedObjectType objtype Translation OType
Material material Vehicle Model
DefectAffectedObjectQuantity quantity Value
DefectAffcdObjQuantityUnit quantityunit Unit of measure
Batch batch Lot No.
_Defect _Defect
_Product _Product
_DefectAffcdObjQuantityUnit _DefectAffcdObjQuantityUnit

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_DefectAffectedObject.
-- 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.

CREATE VIEW I_DefectAffectedObject AS
SELECT
  cast( qmnum as qdefectinternalid preserving type ) AS DefectInternalID,
  objcounter AS DefectAffectedObject,
  cast( substring(qmnum,2,11) as qdefectid preserving type ) AS Defect,
  objtype AS DefectAffectedObjectType,
  Material,
  quantity AS DefectAffectedObjectQuantity,
  quantityunit AS DefectAffcdObjQuantityUnit,
  Batch
FROM qmfe_affctd_obj
LEFT OUTER JOIN I_Defect AS _Defect ON DefectInternalID = _Defect.DefectInternalID  -- association [1..1]
LEFT OUTER JOIN I_Product AS _Product ON Material = _Product.Product  -- association [0..1]
LEFT OUTER JOIN I_UnitOfMeasure AS _DefectAffcdObjQuantityUnit ON DefectAffcdObjQuantityUnit = _DefectAffcdObjQuantityUnit.UnitOfMeasure  -- association [0..1]
LEFT OUTER JOIN E_DefectAffectedObject AS _Extension ON DefectInternalID = _Extension.Notification AND _Extension.NotificationItem = '0000' AND DefectAffectedObject = _Extension.DefectAffectedObject  -- association [1..1]
;