I_DefectCauseCode

DDL: I_DEFECTCAUSECODE Type: view_entity BASIC Package: VDM_QM_NOTIFICATION

Defect Cause Code

I_DefectCauseCode is a Basic CDS View that provides data about "Defect Cause Code" in SAP S/4HANA. It reads from 1 data source (qpcd) and exposes 4 fields with key fields DefectCauseCodeGroup, DefectCauseCode. It has 2 associations to related views. It is exposed through 1 OData service (ASQL_F4197). Part of development package VDM_QM_NOTIFICATION.

Data Sources (1)

SourceAliasJoin Type
qpcd qpcd from

Associations (2)

CardinalityTargetAliasCondition
[1..1] I_DefectCauseCodeGroup _DefectCauseCodeGroup $projection.DefectCauseCodeGroup = _DefectCauseCodeGroup.DefectCauseCodeGroup
[0..*] I_DefectCauseCodeText _Text $projection.DefectCauseCodeGroup = _Text.DefectCauseCodeGroup and $projection.DefectCauseCode = _Text.DefectCauseCode

Annotations (10)

NameValueLevelField
EndUserText.label Defect Cause Code view
AccessControl.authorizationCheck #CHECK view
VDM.viewType #BASIC view
VDM.lifecycle.contract.type #PUBLIC_LOCAL_API view
ObjectModel.representativeKey DefectCauseCode view
ObjectModel.usageType.serviceQuality #A view
ObjectModel.usageType.sizeCategory #M view
ObjectModel.usageType.dataClass #CUSTOMIZING view
Analytics.technicalName IDEFCACODE view
Metadata.ignorePropagatedAnnotations true view

OData Services (1)

ServiceBindingVersionContractRelease
ASQL_F4197 ASQL_F4197 C2 NOT_RELEASED

Fields (4)

KeyFieldSource TableSource FieldDescription
KEY DefectCauseCodeGroup
KEY DefectCauseCode
_DefectCauseCodeGroup _DefectCauseCodeGroup
_Text _Text

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_DefectCauseCode.
-- 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_DefectCauseCode AS
SELECT
  cast( qpcd.codegruppe as vdm_qfecausegrp preserving type ) AS DefectCauseCodeGroup,
  cast( qpcd.code as vdm_qfecausecod preserving type ) AS DefectCauseCode
FROM qpcd
LEFT OUTER JOIN I_DefectCauseCodeGroup AS _DefectCauseCodeGroup ON DefectCauseCodeGroup = _DefectCauseCodeGroup.DefectCauseCodeGroup  -- association [1..1]
LEFT OUTER JOIN I_DefectCauseCodeText AS _Text ON DefectCauseCodeGroup = _Text.DefectCauseCodeGroup AND DefectCauseCode = _Text.DefectCauseCode  -- association [0..*]
;