C_MfgExecDefectRecord
View with UI attributes for defect
C_MfgExecDefectRecord is a Consumption CDS View that provides data about "View with UI attributes for defect" in SAP S/4HANA. It reads from 7 data sources and exposes 36 fields with key field DefectInternalID.
Data Sources (7)
| Source | Alias | Join Type |
|---|---|---|
| I_Defect_TP | Defect | from |
| I_DefectCategory | DefectCategory | inner |
| I_MfgOrdDefectDecision | DefectDecision | left_outer |
| I_Equipment | Equipment | left_outer |
| I_MfgOrderOperation | MfgOrderOperation | left_outer |
| I_OpActyInstanceStatusBasic | OpActyInstanceStatusBasic | left_outer |
| I_ProductionHoldBasic | ProductionHold | left_outer |
Annotations (9)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | CMFGEXECDEFRECD | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| EndUserText.label | View with UI attributes for defect | view | |
| AccessControl.authorizationCheck | #CHECK | view | |
| AccessControl.personalData.blocking | #NOT_REQUIRED | view | |
| ObjectModel.usageType.serviceQuality | #D | view | |
| ObjectModel.usageType.sizeCategory | #L | view | |
| ObjectModel.usageType.dataClass | #TRANSACTIONAL | view | |
| VDM.viewType | #CONSUMPTION | view |
Fields (36)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | DefectInternalID | I_Defect_TP | DefectInternalID | Internal Defect ID |
| DefectCategory | I_Defect_TP | DefectCategory | Violation Category | |
| Plant | I_Defect_TP | Plant | Valuation Area | |
| ProductionOrder | ProductionOrder | Order | ||
| IsEditable | ||||
| SerialNumber | I_Defect_TP | DefectiveSingleUnit | Defective Serial Number | |
| ManufacturerSerialNumber | I_Equipment | ManufacturerSerialNumber | Mnf.serial no. | |
| ProductionOrderOperation | I_Defect_TP | ProductionOrderOperation | Transaction | |
| MfgOrderOperationText | I_MfgOrderOperation | MfgOrderOperationText | ||
| OpActyNtwkElementExternalID | OAINE | OpActyNtwkElementExternalID | Op. Activity | |
| MfgDefectDecisionName | Defect Decision | |||
| ProductionHoldObjectTypeName | Applied Hold | |||
| DefectiveQuantity | DefectiveQuantity | Defective Quantity | ||
| OpActyNtwkInstance | OAINE | OpActyNtwkInstance | Instance ID | |
| OpActyNtwkElement | OAINE | OpActyNtwkElement | Element Number | |
| ShopFloorItem | ShopFloorItem | ShopFloorItem | Serial.Mat. ID | |
| OpActyIsSeldForRtactvPostg | I_OpActyInstanceStatusBasic | OpActyIsSeldForRtactvPostg | Retroactive | |
| OrderInternalBillOfOperations | OrderInternalBillOfOperations | Order Internal Bill of Operations | ||
| OrderIntBillOfOperationsItem | OrderIntBillOfOperationsItem | Order Internal Bill of Operations Item | ||
| MainWorkCenter | MainWorkCenter | Work Center | ||
| MainWorkCenterPlant | MainWorkCenterPlant | Plnt WorkCenter | ||
| Material | I_Defect_TP | Material | Vehicle Model | |
| BOMItemInstanceUUID | I_Defect_TP | BOMItemInstanceUUID | ||
| InheritedNodeNumberForBOMItem | BillOfMaterialItem | InheritedNodeNumberForBOMItem | Nodes | |
| BillOfMaterialVersion | BillOfMaterialItem | BillOfMaterialVersion | BOM Version | |
| OriglDgtlMockUpCharcsCharUUID | ||||
| Batch | I_Defect_TP | Batch | Lot No. | |
| BatchBySupplier | Batch | BatchBySupplier | Supplier Batch | |
| ProducedMaterial | I_Defect_TP | ProducedMaterial | Produced Material | |
| ProducedSerialNumber | I_Defect_TP | ProducedSerialNumber | Produced Serial Number | |
| ReferenceDesignatorName | ||||
| BillOfMaterialCategory | I_Defect_TP | BillOfMaterialCategory | BOM category | |
| BillOfMaterialInternalID | ||||
| BillOfMaterialVariant | I_Defect_TP | BillOfMaterialVariant | AlternativeBOM | |
| BillOfMaterialItemNodeNumber | I_Defect_TP | BillOfMaterialItemNodeNumber | Item node | |
| BOMItemInternalChangeCount | I_Defect_TP | BOMItemInternalChangeCount | Counter |
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_MfgExecDefectRecord.
-- 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: CMFGEXECDEFRECD
CREATE VIEW C_MfgExecDefectRecord AS
SELECT
Defect.DefectInternalID AS DefectInternalID,
Defect.DefectCategory AS DefectCategory,
Defect.Plant AS Plant,
ProductionOrder,
cast( '' as boolean preserving type) AS IsEditable,
Defect.DefectiveSingleUnit AS SerialNumber,
Equipment.ManufacturerSerialNumber AS ManufacturerSerialNumber,
Defect.ProductionOrderOperation AS ProductionOrderOperation,
MfgOrderOperation.MfgOrderOperationText AS MfgOrderOperationText,
OAINE.OpActyNtwkElementExternalID AS OpActyNtwkElementExternalID,
DefectDecision._DefectDecisionVH._Text[1:Language=$session.system_language].MfgDefectDecisionName AS MfgDefectDecisionName,
ProductionHold._ProductionHoldObjectType._Text[1:Language=$session.system_language].ProductionHoldObjectTypeName AS ProductionHoldObjectTypeName,
DefectiveQuantity,
OAINE.OpActyNtwkInstance AS OpActyNtwkInstance,
OAINE.OpActyNtwkElement AS OpActyNtwkElement,
ShopFloorItem.ShopFloorItem AS ShopFloorItem,
OpActyInstanceStatusBasic.OpActyIsSeldForRtactvPostg AS OpActyIsSeldForRtactvPostg,
OrderInternalBillOfOperations,
OrderIntBillOfOperationsItem,
MainWorkCenter,
MainWorkCenterPlant,
Defect.Material AS Material,
Defect.BOMItemInstanceUUID AS BOMItemInstanceUUID,
BillOfMaterialItem.InheritedNodeNumberForBOMItem AS InheritedNodeNumberForBOMItem,
BillOfMaterialItem.BillOfMaterialVersion AS BillOfMaterialVersion,
cast(DigitalMockUpCharcs.DgtlMockUpCharcsValue as dmu_tmxguid_char32) AS OriglDgtlMockUpCharcsCharUUID,
Defect.Batch AS Batch,
Batch.BatchBySupplier AS BatchBySupplier,
Defect.ProducedMaterial AS ProducedMaterial,
Defect.ProducedSerialNumber AS ProducedSerialNumber,
cast('' as vmp_ref_des) AS ReferenceDesignatorName,
Defect.BillOfMaterialCategory AS BillOfMaterialCategory,
cast( Defect.BillOfMaterial as pph_stnum preserving type ) AS BillOfMaterialInternalID,
Defect.BillOfMaterialVariant AS BillOfMaterialVariant,
Defect.BillOfMaterialItemNodeNumber AS BillOfMaterialItemNodeNumber,
Defect.BOMItemInternalChangeCount AS BOMItemInternalChangeCount
FROM I_Defect_TP AS Defect
INNER JOIN I_DefectCategory AS DefectCategory ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN I_MfgOrderOperation AS MfgOrderOperation ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN I_Equipment AS Equipment ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN I_MfgOrdDefectDecision AS DefectDecision ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN I_ProductionHoldBasic AS ProductionHold ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN I_OpActyInstanceStatusBasic AS OpActyInstanceStatusBasic ON /* join condition not captured in parsed metadata */
;
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