A_DefectCodeGroup

DDL: A_DEFECTCODEGROUP SQL: ADEFECTCODEGRP Type: view BASIC

Defect Code Groups

A_DefectCodeGroup is a Basic CDS View that provides data about "Defect Code Groups" in SAP S/4HANA. It reads from 1 data source (I_DefectCodeGroup) and exposes 5 fields with key field DefectCodeGroup. It has 2 associations to related views.

Data Sources (1)

SourceAliasJoin Type
I_DefectCodeGroup _DefectCodeGroup from

Associations (2)

CardinalityTargetAliasCondition
[0..*] A_DefectCodeGroupText _Text $projection.DefectCodeGroup = _Text.DefectCodeGroup
[0..*] A_DefectCode _DefectCode $projection.DefectCodeGroup = _DefectCode.DefectCodeGroup

Annotations (13)

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

Fields (5)

KeyFieldSource TableSource FieldDescription
KEY DefectCodeGroup I_DefectCodeGroup DefectCodeGroup Code Group
CodeGroupIsInactive
CodeGroupStatus I_DefectCodeGroup CodeGroupStatus Workflow Status
_Text _Text
_DefectCode _DefectCode

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 A_DefectCodeGroup.
-- 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: ADEFECTCODEGRP

CREATE VIEW A_DefectCodeGroup AS
SELECT
  _DefectCodeGroup.DefectCodeGroup AS DefectCodeGroup,
  cast( _DefectCodeGroup.CodeGroupIsInactive as qinak preserving type ) AS CodeGroupIsInactive,
  _DefectCodeGroup.CodeGroupStatus AS CodeGroupStatus
FROM I_DefectCodeGroup AS _DefectCodeGroup
LEFT OUTER JOIN A_DefectCodeGroupText AS _Text ON DefectCodeGroup = _Text.DefectCodeGroup  -- association [0..*]
LEFT OUTER JOIN A_DefectCode AS _DefectCode ON DefectCodeGroup = _DefectCode.DefectCodeGroup  -- association [0..*]
;