I_DefectVH

DDL: I_DEFECTVH SQL: ID_VH Type: view COMPOSITE

Defect

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

SAP Help Documentation

CategoryCDS Views for Quality Improvement
Purpose
This CDS view provides value help for defects. This view should be used for value help purposes only. If you intend to select the entire business data, use the Defect view instead.

View on SAP Help Portal →

Data Sources (1)

SourceAliasJoin Type
I_Defect I_Defect from

Associations (1)

CardinalityTargetAliasCondition
[1..1] E_NotificationItem _Extension $projection.DefectInternalID = _Extension.Notification and _Extension.NotificationItem = '0000'

Annotations (17)

NameValueLevelField
AbapCatalog.sqlViewName ID_VH view
AbapCatalog.compiler.compareFilter true view
AbapCatalog.preserveKey true view
VDM.viewType #COMPOSITE view
VDM.lifecycle.contract.type #PUBLIC_LOCAL_API view
ObjectModel.dataCategory #VALUE_HELP view
ObjectModel.usageType.dataClass #TRANSACTIONAL view
ObjectModel.usageType.sizeCategory #L view
ObjectModel.usageType.serviceQuality #A view
ObjectModel.representativeKey DefectInternalID view
AccessControl.authorizationCheck #CHECK view
AccessControl.personalData.blocking #BLOCKED_DATA_EXCLUDED view
ClientHandling.algorithm #SESSION_VARIABLE view
Search.searchable true view
Metadata.ignorePropagatedAnnotations true view
EndUserText.label Defect view
Consumption.ranked true view

Fields (12)

KeyFieldSource TableSource FieldDescription
KEY DefectInternalID DefectInternalID Internal Defect ID
Defect Defect
DefectText DefectText
DefectCode DefectCode Damage Code
DefectCodeGroup DefectCodeGroup Code Group
Material Material Vehicle Model
Plant Plant Valuation Area
InspectionLot InspectionLot Inspection Lot
_InspectionLot _InspectionLot
DefectCategory DefectCategory
MainWorkCenter MainWorkCenter Work Center
MainWorkCenterPlant MainWorkCenterPlant Plnt WorkCenter

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_DefectVH.
-- 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: ID_VH

CREATE VIEW I_DefectVH AS
SELECT
  DefectInternalID,
  Defect,
  DefectText,
  DefectCode,
  DefectCodeGroup,
  Material,
  Plant,
  InspectionLot,
  DefectCategory,
  MainWorkCenter,
  MainWorkCenterPlant
FROM I_Defect
LEFT OUTER JOIN E_NotificationItem AS _Extension ON DefectInternalID = _Extension.Notification AND _Extension.NotificationItem = '0000'  -- association [1..1]
;