I_DefectCodeGroup

DDL: I_DEFECTCODEGROUP SQL: IDEFECTCODEGRP Type: view BASIC

Defect Code Group

I_DefectCodeGroup (Basic)

Package: Explore, extend and adapt the SAP S/4HANA Cloud Private Edition with built-in and side-by-side extension capabilities.

Manufacturing

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

SAP API Hub

StateC1
Line of BusinessManufacturing
Application ComponentQM-QN
CapabilitiesData Source in SQL Select, Association Target for Defining CDS Entities, Data Source for Defining CDS Entities
PackageManufacturing for SAP S/4HANA Cloud Private Edition
Description <p>This CDS view provides access to the definition of code groups for catalog type 9 (Defects).</p>

Documentation

Data Sources (1)

SourceAliasJoin Type
qpgr qpgr from

Associations (2)

CardinalityTargetAliasCondition
[0..*] I_DefectCodeGroupText _Text $projection.DefectCodeGroup = _Text.DefectCodeGroup
[0..*] I_DefectCode _DefectCode $projection.DefectCodeGroup = _DefectCode.DefectCodeGroup

Annotations (13)

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

Fields (4)

KeyFieldSource TableSource FieldDescription
KEY DefectCodeGroup Defect Code Group
CodeGroupStatus qpgr status Status of Master Record
_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 I_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: IDEFECTCODEGRP

CREATE VIEW I_DefectCodeGroup AS
SELECT
  cast( qpgr.codegruppe as vdm_qfegrp preserving type ) AS DefectCodeGroup,
  qpgr.status AS CodeGroupStatus
FROM qpgr
LEFT OUTER JOIN I_DefectCodeGroupText AS _Text ON DefectCodeGroup = _Text.DefectCodeGroup  -- association [0..*]
LEFT OUTER JOIN I_DefectCode AS _DefectCode ON DefectCodeGroup = _DefectCode.DefectCodeGroup  -- association [0..*]
;