C_DefectDetailsRsltRecg
Defect Details for Inspection Lot
C_DefectDetailsRsltRecg is a Consumption CDS View that provides data about "Defect Details for Inspection Lot" in SAP S/4HANA. It reads from 1 data source (I_DefectUnion) and exposes 23 fields with key field DefectInternalID. It has 2 associations to related views.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| I_DefectUnion | I_DefectUnion | from |
Associations (2)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [0..1] | I_DefectCodeGroupStdVH | _DefectCodeGroup | $projection.DefectCodeGroup = _DefectCodeGroup.DefectCodeGroup |
| [0..1] | I_DefectCodeStdVH | _DefectCode | $projection.DefectCodeGroup = _DefectCode.DefectCodeGroup and $projection.DefectCode = _DefectCode.DefectCode association[0..1] to I_DefectCategoryStdVH as _DefectCategory on $projection.DefectCategory = _DefectCategory.DefectCategory |
Annotations (7)
| Name | Value | Level | Field |
|---|---|---|---|
| AccessControl.authorizationCheck | #CHECK | view | |
| EndUserText.label | Defect Details for Inspection Lot | view | |
| Metadata.ignorePropagatedAnnotations | true | view | |
| VDM.viewType | #CONSUMPTION | view | |
| ObjectModel.usageType.serviceQuality | #X | view | |
| ObjectModel.usageType.sizeCategory | #S | view | |
| ObjectModel.usageType.dataClass | #MIXED | view |
Fields (23)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | DefectInternalID | DefectInternalID | Internal Defect ID | |
| InspectionLot | InspectionLot | Inspection Lot | ||
| InspPlanOperationInternalID | InspPlanOperationInternalID | |||
| InspectionCharacteristic | InspectionCharacteristic | |||
| MaterialSample | MaterialSample | |||
| DefectCode | DefectCode | Damage Code | ||
| DefectCodeGroup | DefectCodeGroup | Code Group | ||
| Notification | Notification | Notification | ||
| DefectText | DefectText | |||
| DefectCategory | DefectCategory | |||
| Defect | Defect | |||
| CreationDate | CreationDate | Time Stamp | ||
| MainWorkCenter | MainWorkCenter | Work Center | ||
| MainWorkCenterPlant | MainWorkCenterPlant | Plnt WorkCenter | ||
| Plant | Plant | Valuation Area | ||
| DefectCodeText | ||||
| DefectCodeGroupText | ||||
| DefectCategoryText | _DefectCategory | DefectCategoryText | ||
| _Notification | _Notification | |||
| _InspectionLot | _InspectionLot | |||
| _DefectCodeGroup | _DefectCodeGroup | |||
| _DefectCode | _DefectCode | |||
| _DefectCategory | _DefectCategory |
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 C_DefectDetailsRsltRecg.
-- 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 C_DefectDetailsRsltRecg AS
SELECT
DefectInternalID,
InspectionLot,
InspPlanOperationInternalID,
InspectionCharacteristic,
MaterialSample,
DefectCode,
DefectCodeGroup,
Notification,
DefectText,
DefectCategory,
Defect,
CreationDate,
MainWorkCenter,
MainWorkCenterPlant,
Plant,
_DefectCode._Text[1:Language=$session.system_language].DefectCodeText AS DefectCodeText,
_DefectCodeGroup._Text[1:Language=$session.system_language].DefectCodeGroupText AS DefectCodeGroupText,
_DefectCategory.DefectCategoryText AS DefectCategoryText
FROM I_DefectUnion
LEFT OUTER JOIN I_DefectCodeGroupStdVH AS _DefectCodeGroup ON DefectCodeGroup = _DefectCodeGroup.DefectCodeGroup -- association [0..1]
LEFT OUTER JOIN I_DefectCodeStdVH AS _DefectCode ON DefectCodeGroup = _DefectCode.DefectCodeGroup AND DefectCode = _DefectCode.DefectCode association[0..1] to I_DefectCategoryStdVH as _DefectCategory on DefectCategory = _DefectCategory.DefectCategory -- association [0..1]
;
Learn More
- VDM (Virtual Data Model) in SAP S/4HANA Explained
- Types of CDS Views: Basic, Composite, Consumption, and Transactional
- CDS View Annotations — A Complete Guide
- What Is a CDS View in SAP S/4HANA?
- SAP Tables vs CDS Views — Key Differences
- Understanding Data Lineage in SAP S/4HANA
- CDS View Field Mapping and Associations
- Understanding the SAP S/4HANA Data Model
- CDS View Extensions and Custom Fields in SAP S/4HANA
- Released APIs and Stability Contracts in SAP S/4HANA
- BSEG to ACDOCA: The Universal Journal Migration
- Business Partner Migration: KNA1/LFA1 to BUT000
- Material Document Migration: MSEG/MKPF to MATDOC
- How to Find the Right CDS View for an SAP Table
- BW Extractor to CDS View Migration Guide
- S/4HANA CDS View Deprecation: What You Need to Know
- ABAP CDS View Tutorial — From Basics to Real-World Examples
- RAP and CDS Views — Building Transactional Apps in SAP S/4HANA
- Sales Document Status Migration: VBUP/VBUK Removal in S/4HANA
- CO Tables in S/4HANA: COEP, COBK, COSS, COSP to ACDOCA