A_Defect
Defects
A_Defect is a Consumption CDS View that provides data about "Defects" in SAP S/4HANA. It reads from 1 data source (I_Defect_TP) and exposes 44 fields with key field DefectInternalID. Part of development package ODATA_QM_DEFECT_API.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| I_Defect_TP | I_Defect_TP | from |
Annotations (14)
| Name | Value | Level | Field |
|---|---|---|---|
| AccessControl.authorizationCheck | #CHECK | view | |
| AccessControl.personalData.blocking | #BLOCKED_DATA_EXCLUDED | view | |
| VDM.viewType | #CONSUMPTION | view | |
| VDM.lifecycle.contract.type | #PUBLIC_REMOTE_API | view | |
| EndUserText.label | Defects | view | |
| ObjectModel.usageType.dataClass | #TRANSACTIONAL | view | |
| ObjectModel.usageType.sizeCategory | #XL | view | |
| ObjectModel.usageType.serviceQuality | #C | view | |
| ObjectModel.compositionRoot | true | view | |
| ObjectModel.createEnabled | true | view | |
| ObjectModel.updateEnabled | true | view | |
| ObjectModel.deleteEnabled | true | view | |
| ObjectModel.entityChangeStateId | ChangedDateTime | view | |
| Metadata.ignorePropagatedAnnotations | true | view |
Fields (44)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | DefectInternalID | |||
| Defect | Defect | |||
| DefectCategory | DefectCategory | |||
| CreatedByUser | CreatedByUser | User Name | ||
| CreationDate | CreationDate | Time Stamp | ||
| LastChangedByUser | LastChangedByUser | User Name | ||
| LastChangeDate | LastChangeDate | Time Stamp | ||
| DefectText | DefectText | |||
| DefectCodeCatalog | DefectCodeCatalog | |||
| DefectCodeGroup | DefectCodeGroup | Code Group | ||
| DefectCode | DefectCode | Damage Code | ||
| DefectCodeVersion | DefectCodeVersion | |||
| DefectObjectCodeCatalog | DefectObjectCodeCatalog | |||
| DefectObjectCodeGroup | DefectObjectCodeGroup | |||
| DefectObjectCode | DefectObjectCode | |||
| DefectiveQuantity | DefectiveQuantity | |||
| DefectiveQuantityUnit | DefectiveQuantityUnit | |||
| ManufacturingOrder | ProductionOrder | Order | ||
| OrderInternalID | OrderInternalID | Plan No.f.Oper. | ||
| ManufacturingOrderOperation | Transaction | |||
| ManufacturingOrderSequence | ProductionOrderSequence | Visit Sequence | ||
| CreationTime | CreationTime | Time of Change | ||
| LastChangeTime | LastChangeTime | Time changed | ||
| DefectClass | DefectClass | Defect Class | ||
| NumberOfDefects | NumberOfDefects | |||
| InspPlanOperationInternalID | InspPlanOperationInternalID | |||
| InspectionCharacteristic | InspectionCharacteristic | |||
| InspectionSubsetInternalID | InspectionSubsetInternalID | |||
| MaterialSample | MaterialSample | |||
| WorkCenterTypeCode | WorkCenterTypeCode | Object Type | ||
| MainWorkCenterInternalID | MainWorkCenterInternalID | Work Center | ||
| MainWorkCenterPlant | MainWorkCenterPlant | Plnt WorkCenter | ||
| MainWorkCenter | MainWorkCenter | Work Center | ||
| Equipment | Equipment | Equipment check | ||
| FunctionalLocation | FunctionalLocation | Object ID | ||
| IsDeleted | IsDeleted | TRUE | ||
| DefectOrigin | DefectOrigin | |||
| Material | Material | Vehicle Model | ||
| Plant | Plant | Valuation Area | ||
| InspectionLot | InspectionLot | Inspection Lot | ||
| CatalogProfile | CatalogProfile | Catalog Profile | ||
| ChangedDateTime | ChangedDateTime | Time Stamp | ||
| IsBusinessPurposeCompleted | ||||
| _InspectionLot | _InspectionLot |
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_Defect.
-- 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 A_Defect AS
SELECT
cast( I_Defect_TP.DefectInternalID as qmnum preserving type ) AS DefectInternalID,
Defect,
DefectCategory,
CreatedByUser,
CreationDate,
LastChangedByUser,
LastChangeDate,
DefectText,
DefectCodeCatalog,
DefectCodeGroup,
DefectCode,
DefectCodeVersion,
DefectObjectCodeCatalog,
DefectObjectCodeGroup,
DefectObjectCode,
DefectiveQuantity,
DefectiveQuantityUnit,
ProductionOrder AS ManufacturingOrder,
OrderInternalID,
cast( ProductionOrderOperation as vdm_vornr preserving type ) AS ManufacturingOrderOperation,
ProductionOrderSequence AS ManufacturingOrderSequence,
CreationTime,
LastChangeTime,
DefectClass,
NumberOfDefects,
InspPlanOperationInternalID,
InspectionCharacteristic,
InspectionSubsetInternalID,
MaterialSample,
WorkCenterTypeCode,
MainWorkCenterInternalID,
MainWorkCenterPlant,
MainWorkCenter,
Equipment,
FunctionalLocation,
IsDeleted,
DefectOrigin,
Material,
Plant,
InspectionLot,
CatalogProfile,
ChangedDateTime,
I_Defect_TP._InspectionLot.IsBusinessPurposeCompleted AS IsBusinessPurposeCompleted
FROM I_Defect_TP
;
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