P_MfgExecEventHistOrdHdrHold
P_MfgExecEventHistOrdHdrHold is a Composite CDS View in SAP S/4HANA. It reads from 4 data sources (I_ProductionHoldAction, I_ProductionHoldAction, I_ProductionHoldBasic, I_ProductionHoldBasic) and exposes 42 fields with key fields ProductionHold, ProductionHoldItem, ProductionHoldItem.
Data Sources (4)
| Source | Alias | Join Type |
|---|---|---|
| I_ProductionHoldAction | act | inner |
| I_ProductionHoldAction | act | inner |
| I_ProductionHoldBasic | hold | from |
| I_ProductionHoldBasic | hold | inner |
Annotations (9)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | PMPEEXECHISTORDH | view | |
| AccessControl.authorizationCheck | #NOT_REQUIRED | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| ObjectModel.usageType.serviceQuality | #C | view | |
| ObjectModel.usageType.sizeCategory | #XL | view | |
| ObjectModel.usageType.dataClass | #TRANSACTIONAL | view | |
| VDM.viewType | #COMPOSITE | view | |
| VDM.private | true | view | |
| AbapCatalog.compiler.compareFilter | true | view |
Fields (42)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | ProductionHold | I_ProductionHoldAction | ProductionHold | Hold ID |
| KEY | ProductionHoldItem | I_ProductionHoldAction | ProductionHoldItem | Item Number |
| MfgProcgExecAction | I_ProductionHoldAction | MfgProcgExecAction | User action | |
| ShopFloorExecutionUser | ||||
| CreatedByUser | ||||
| CreationDateTime | ||||
| ManufacturingOrder | I_ProductionHoldBasic | ManufacturingOrder | Order | |
| ShopFloorItem | I_ProductionHoldBasic | ShopFloorItem | Serial.Mat. ID | |
| OperationActivitySFIGroup | I_ProductionHoldBasic | OperationActivitySFIGroup | Serial Number Group | |
| OpActyNtwkInstance | I_ProductionHoldBasic | OpActyNtwkInstance | Instance ID | |
| OpActyNtwkElement | I_ProductionHoldBasic | OpActyNtwkElement | Element Number | |
| DefectInternalID | I_ProductionHoldBasic | DefectInternalID | Internal Defect ID | |
| Notification | I_ProductionHoldBasic | Notification | Notification | |
| NotificationItem | I_ProductionHoldBasic | NotificationItem | Item | |
| MfgActionReasonCodeGroupCtlg | I_ProductionHoldAction | MfgActionReasonCodeGroupCtlg | Catalog | |
| MfgActionReasonCodeGroup | I_ProductionHoldAction | MfgActionReasonCodeGroup | Code Group | |
| ManufacturingActionReasonCode | I_ProductionHoldAction | ManufacturingActionReasonCode | Water Hazard Cl. | |
| SystemMessageIdentification | ||||
| MfgExecHistMsgVarblField1 | 20 | |||
| MfgExecHistMsgVarblField2 | 17 | |||
| ProductionHoldasProductionHold | ||||
| KEY | ProductionHoldItem | I_ProductionHoldAction | ProductionHoldItem | Item Number |
| MfgProcgExecAction | I_ProductionHoldAction | MfgProcgExecAction | User action | |
| ShopFloorExecutionUser | ||||
| CreatedByUser | ||||
| CreationDateTime | ||||
| ManufacturingOrder | sfi | ManufacturingOrder | Order | |
| ShopFloorItem | I_ProductionHoldBasic | ShopFloorItem | Serial.Mat. ID | |
| OperationActivitySFIGroup | I_ProductionHoldBasic | OperationActivitySFIGroup | Serial Number Group | |
| OpActyNtwkInstance | I_ProductionHoldBasic | OpActyNtwkInstance | Instance ID | |
| OpActyNtwkElement | I_ProductionHoldBasic | OpActyNtwkElement | Element Number | |
| DefectInternalID | I_ProductionHoldBasic | DefectInternalID | Internal Defect ID | |
| Notification | I_ProductionHoldBasic | Notification | Notification | |
| NotificationItem | I_ProductionHoldBasic | NotificationItem | Item | |
| MfgActionReasonCodeGroupCtlg | I_ProductionHoldAction | MfgActionReasonCodeGroupCtlg | Catalog | |
| MfgActionReasonCodeGroup | I_ProductionHoldAction | MfgActionReasonCodeGroup | Code Group | |
| ManufacturingActionReasonCode | I_ProductionHoldAction | ManufacturingActionReasonCode | Water Hazard Cl. | |
| SystemMessageIdentification | ||||
| MfgExecHistMsgVarblField1 | 20 | |||
| MfgExecHistMsgVarblField2 | 7 | |||
| SerialNumber0asMfgExecHistMsgVarblField3 | ||||
| MfgExecHistMsgVarblField4 | 0 |
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_MfgExecEventHistOrdHdrHold.
-- 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: PMPEEXECHISTORDH
CREATE VIEW P_MfgExecEventHistOrdHdrHold AS
SELECT
act.ProductionHold AS ProductionHold,
act.ProductionHoldItem AS ProductionHoldItem,
act.MfgProcgExecAction AS MfgProcgExecAction,
cast(act.CreatedByUser as mpe_performed_by_user preserving type) AS ShopFloorExecutionUser,
cast(act.CreatedByUser as mpe_create_user preserving type) AS CreatedByUser,
cast(act.CreationDateTime as mpe_create_timestampl preserving type) AS CreationDateTime,
hold.ManufacturingOrder AS ManufacturingOrder,
hold.ShopFloorItem AS ShopFloorItem,
hold.OperationActivitySFIGroup AS OperationActivitySFIGroup,
hold.OpActyNtwkInstance AS OpActyNtwkInstance,
hold.OpActyNtwkElement AS OpActyNtwkElement,
hold.DefectInternalID AS DefectInternalID,
hold.Notification AS Notification,
hold.NotificationItem AS NotificationItem,
act.MfgActionReasonCodeGroupCtlg AS MfgActionReasonCodeGroupCtlg,
act.MfgActionReasonCodeGroup AS MfgActionReasonCodeGroup,
act.ManufacturingActionReasonCode AS ManufacturingActionReasonCode,
cast('MPE_EXEC_COMMON ' as msgid preserving type) AS SystemMessageIdentification,
20 AS MfgExecHistMsgVarblField1,
17 AS MfgExecHistMsgVarblField2,
0 AS MfgExecHistMsgVarblField4
FROM I_ProductionHoldBasic AS hold
INNER JOIN I_ProductionHoldAction AS act ON /* join condition not captured in parsed metadata */
INNER JOIN I_ProductionHoldBasic AS hold 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