I_DefectCode

DDL: I_DEFECTCODE SQL: IDEFECTCODE Type: view BASIC

Defect Code

I_DefectCode is a Basic CDS View that provides data about "Defect Code" in SAP S/4HANA. It reads from 1 data source (qpcd) and exposes 6 fields with key fields DefectCodeGroup, DefectCode. It has 3 associations to related views.

Data Sources (1)

SourceAliasJoin Type
qpcd qpcd from

Associations (3)

CardinalityTargetAliasCondition
[1..1] I_DefectCodeGroup _DefectCodeGroup $projection.DefectCodeGroup = _DefectCodeGroup.DefectCodeGroup
[0..*] I_DefectCodeText _Text $projection.DefectCodeGroup = _Text.DefectCodeGroup and $projection.DefectCode = _Text.DefectCode
[0..1] I_DefectClass _DefectClass $projection.DefectClass = _DefectClass.DefectClass

Annotations (13)

NameValueLevelField
AbapCatalog.sqlViewName IDEFECTCODE view
AbapCatalog.compiler.compareFilter true view
AbapCatalog.preserveKey true view
ClientHandling.algorithm #SESSION_VARIABLE view
EndUserText.label Defect Code view
AccessControl.authorizationCheck #CHECK view
VDM.viewType #BASIC view
VDM.lifecycle.contract.type #PUBLIC_LOCAL_API view
ObjectModel.representativeKey DefectCode view
ObjectModel.usageType.serviceQuality #A view
ObjectModel.usageType.sizeCategory #M view
ObjectModel.usageType.dataClass #CUSTOMIZING view
Metadata.ignorePropagatedAnnotations true view

Fields (6)

KeyFieldSource TableSource FieldDescription
KEY DefectCodeGroup
KEY DefectCode
DefectClass qpcd fehlklasse Defect Class
_DefectCodeGroup _DefectCodeGroup
_Text _Text
_DefectClass _DefectClass

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_DefectCode.
-- 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: IDEFECTCODE

CREATE VIEW I_DefectCode AS
SELECT
  cast( qpcd.codegruppe as vdm_qfegrp preserving type ) AS DefectCodeGroup,
  cast( qpcd.code as vdm_qfecod preserving type ) AS DefectCode,
  qpcd.fehlklasse AS DefectClass
FROM qpcd
LEFT OUTER JOIN I_DefectCodeGroup AS _DefectCodeGroup ON DefectCodeGroup = _DefectCodeGroup.DefectCodeGroup  -- association [1..1]
LEFT OUTER JOIN I_DefectCodeText AS _Text ON DefectCodeGroup = _Text.DefectCodeGroup AND DefectCode = _Text.DefectCode  -- association [0..*]
LEFT OUTER JOIN I_DefectClass AS _DefectClass ON DefectClass = _DefectClass.DefectClass  -- association [0..1]
;