P_MfgOrderDefectAll
Mfg. Notification and Defect Records
P_MfgOrderDefectAll is a Composite CDS View that provides data about "Mfg. Notification and Defect Records" in SAP S/4HANA. It reads from 5 data sources (I_Notification, I_NotificationItem, I_NotificationItem, I_NotificationItem, I_NotificationItem) and exposes 52 fields with key fields Notification, NotificationItem, NotificationItem, NotificationItem.
Data Sources (5)
| Source | Alias | Join Type |
|---|---|---|
| I_Notification | Notification | inner |
| I_NotificationItem | NotificationItem | from |
| I_NotificationItem | NotificationItem | union_all |
| I_NotificationItem | NotificationItem | union_all |
| I_NotificationItem | NotificationItemRef | inner |
Annotations (8)
| Name | Value | Level | Field |
|---|---|---|---|
| AccessControl.authorizationCheck | #NOT_REQUIRED | view | |
| EndUserText.label | Mfg. Notification and Defect Records | view | |
| Metadata.ignorePropagatedAnnotations | true | view | |
| VDM.private | true | view | |
| VDM.viewType | #COMPOSITE | view | |
| ObjectModel.usageType.serviceQuality | #C | view | |
| ObjectModel.usageType.sizeCategory | #L | view | |
| ObjectModel.usageType.dataClass | #TRANSACTIONAL | view |
Fields (52)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | Notification | I_NotificationItem | Notification | Notification |
| KEY | NotificationItem | I_NotificationItem | NotificationItem | Number of days |
| Defect | ||||
| DefectText | ||||
| DefectCategory | I_NotificationItem | DefectCategory | Violation Category | |
| DefectiveQuantity | I_NotificationItem | DefectiveQuantity | WarrCountValue | |
| DefectiveQuantityUnit | I_NotificationItem | DefectiveQuantityUnit | Unit of Measure | |
| ProductionOrder | I_NotificationItem | ProductionOrder | Order | |
| ProducedMaterial | I_NotificationItem | ProducedMaterial | Vehicle Model | |
| ProducedSerialNumber | I_NotificationItem | ProducedSerialNumber | Serial Number | |
| Material | I_NotificationItem | Material | Vehicle Model | |
| DefectiveSingleUnit | I_NotificationItem | DefectiveSingleUnit | Serial Number | |
| QualityNotification | I_NotificationItem | Notification | Notification | |
| QualityNotificationItem | I_NotificationItem | NotificationItem | Number of days | |
| OrderInternalID | I_NotificationItem | OrderInternalID | Plan no. oper. | |
| InspPlanOperationInternalID | I_NotificationItem | InspPlanOperationInternalID | Node Number | |
| ProductionOrderOperationActy | I_NotificationItem | ProductionOrderOperationActy | Operation Activity | |
| Notification | Notification | |||
| KEY | NotificationItem | I_NotificationItem | NotificationItem | Number of days |
| Defect | ||||
| DefectText | ||||
| DefectCategory | I_NotificationItem | DefectCategory | Violation Category | |
| DefectiveQuantity | I_NotificationItem | DefectiveQuantity | WarrCountValue | |
| DefectiveQuantityUnit | I_NotificationItem | DefectiveQuantityUnit | Unit of Measure | |
| ProductionOrder | I_NotificationItem | ProductionOrder | Order | |
| ProducedMaterial | I_NotificationItem | ProducedMaterial | Vehicle Model | |
| ProducedSerialNumber | I_NotificationItem | ProducedSerialNumber | Serial Number | |
| Material | I_NotificationItem | Material | Vehicle Model | |
| DefectiveSingleUnit | I_NotificationItem | DefectiveSingleUnit | Serial Number | |
| QualityNotification | I_NotificationItem | Notification | Notification | |
| QualityNotificationItem | I_NotificationItem | NotificationItem | Number of days | |
| OrderInternalID | I_NotificationItem | OrderInternalID | Plan no. oper. | |
| InspPlanOperationInternalID | I_NotificationItem | InspPlanOperationInternalID | Node Number | |
| ProductionOrderOperationActy | I_NotificationItem | ProductionOrderOperationActy | Operation Activity | |
| Notification | Notification | |||
| KEY | NotificationItem | I_NotificationItem | NotificationItem | Number of days |
| Defect | ||||
| DefectText | ||||
| DefectCategory | I_NotificationItem | DefectCategory | Violation Category | |
| DefectiveQuantity | I_NotificationItem | DefectiveQuantity | WarrCountValue | |
| DefectiveQuantityUnit | I_NotificationItem | DefectiveQuantityUnit | Unit of Measure | |
| ProductionOrder | I_Notification | ProductionOrder | Order | |
| ProducedMaterial | I_Notification | Material | Vehicle Model | |
| ProducedSerialNumber | ShopFloorItem | SerialNumber | Serial Number | |
| Material | I_Notification | Material | Vehicle Model | |
| DefectiveSingleUnit | ShopFloorItem | SerialNumber | Serial Number | |
| QualityNotification | I_NotificationItem | Notification | Notification | |
| QualityNotificationItem | I_NotificationItem | NotificationItem | Number of days | |
| OrderInternalID | I_Notification | MfgOrderInternalID | Plan no. oper. | |
| InspPlanOperationInternalID | I_NotificationItem | InspPlanOperationInternalID | Node Number | |
| ProductionOrderOperationActy | I_NotificationItem | ProductionOrderOperationActy | Operation Activity | |
| ProductionOrderOpActyVers | I_NotificationItem | ProductionOrderOpActyVers | OA Version |
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 P_MfgOrderDefectAll.
-- 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 P_MfgOrderDefectAll AS
SELECT
NotificationItem.Notification AS Notification,
NotificationItem.NotificationItem AS NotificationItem,
cast( substring(NotificationItem.Notification,2,11) as qdefectid preserving type ) AS Defect,
cast(NotificationItem.NotificationItemText as vdm_qfetxt preserving type ) AS DefectText,
NotificationItem.DefectCategory AS DefectCategory,
NotificationItem.DefectiveQuantity AS DefectiveQuantity,
NotificationItem.DefectiveQuantityUnit AS DefectiveQuantityUnit,
NotificationItem.ProductionOrder AS ProductionOrder,
NotificationItem.ProducedMaterial AS ProducedMaterial,
NotificationItem.ProducedSerialNumber AS ProducedSerialNumber,
NotificationItem.Material AS Material,
NotificationItem.DefectiveSingleUnit AS DefectiveSingleUnit,
NotificationItemRef.Notification AS QualityNotification,
NotificationItemRef.NotificationItem AS QualityNotificationItem,
NotificationItem.OrderInternalID AS OrderInternalID,
NotificationItem.InspPlanOperationInternalID AS InspPlanOperationInternalID,
NotificationItem.ProductionOrderOperationActy AS ProductionOrderOperationActy,
NotificationItem.ProductionOrderOpActyVers AS ProductionOrderOpActyVers
FROM I_NotificationItem AS NotificationItem
INNER JOIN I_NotificationItem AS NotificationItemRef ON /* join condition not captured in parsed metadata */
INNER JOIN I_Notification AS Notification ON /* join condition not captured in parsed metadata */
-- UNION ALL with additional select branch(es): I_NotificationItem
;
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