C_MfgExecEventHistory
Manufacturing Execution Event History
C_MfgExecEventHistory is a Consumption CDS View that provides data about "Manufacturing Execution Event History" in SAP S/4HANA. It reads from 1 data source (P_MfgExecEventHistoryCnsmpn) and exposes 94 fields with key fields MfgExecDocumentCategory, ManufacturingExecutionDocument, MfgExecutionDocumentItem, MfgProcgExecAction, ManufacturingOrder. It has 9 associations to related views.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| P_MfgExecEventHistoryCnsmpn | h | from |
Associations (9)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [0..1] | I_Plant | _WorkCenterPlant | $projection.WorkCenterPlant = _WorkCenterPlant.Plant |
| [0..1] | I_WorkCenterBySemanticKey | _WorkCenterBySemanticKey | $projection.WorkCenterPlant = _WorkCenterBySemanticKey.Plant and $projection.WorkCenter = _WorkCenterBySemanticKey.WorkCenter |
| [0..*] | I_MfgProcgExecActionText | _MfgProcgExecActionText | $projection.MfgProcgExecAction = _MfgProcgExecActionText.MfgProcgExecAction |
| [0..1] | I_OpActyNtwkInternalID | _OpActyNtwkInternalId | $projection.OperationActivityNetwork = _OpActyNtwkInternalId.OperationActivityNetwork |
| [0..1] | I_OperationActivityNetwork | _OperationActivityNetwork | $projection.OperationActivityNetwork = _OperationActivityNetwork.OperationActivityNetwork and $projection.OpActyNtwkVersionCounter = _OperationActivityNetwork.OpActyNtwkVersionCounter |
| [0..1] | I_OpActyNtwkSegmentTypeText | _OpActyNtwkSegmentTypeText | $projection.OpActyNtwkSegmentType = _OpActyNtwkSegmentTypeText.OpActyNtwkSegmentType and _OpActyNtwkSegmentTypeText.Language = $session.system_language |
| [0..*] | I_SASSchemaText | _SASSchemaText | $projection.StatusAndActionSchema = _SASSchemaText.StatusAndActionSchema -- contact cards |
| [0..1] | I_UserContactCard | _CreatedByUserContactCard | $projection.CreatedByUser = _CreatedByUserContactCard.ContactCardID |
| [0..1] | I_UserContactCard | _ExecutionUserContactCard | $projection.ShopFloorExecutionUser = _ExecutionUserContactCard.ContactCardID |
Annotations (12)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | CMPEEXECHIST | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| AccessControl.authorizationCheck | #MANDATORY | view | |
| AccessControl.personalData.blocking | #BLOCKED_DATA_EXCLUDED | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| ObjectModel.usageType.serviceQuality | #D | view | |
| ObjectModel.usageType.sizeCategory | #XL | view | |
| ObjectModel.usageType.dataClass | #MIXED | view | |
| VDM.viewType | #CONSUMPTION | view | |
| VDM.private | false | view | |
| Metadata.allowExtensions | true | view | |
| EndUserText.label | Manufacturing Execution Event History | view |
Fields (94)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | MfgExecDocumentCategory | P_MfgExecEventHistoryCnsmpn | MfgExecDocumentCategory | |
| KEY | ManufacturingExecutionDocument | P_MfgExecEventHistoryCnsmpn | ManufacturingExecutionDocument | |
| KEY | MfgExecutionDocumentItem | P_MfgExecEventHistoryCnsmpn | MfgExecutionDocumentItem | |
| KEY | MfgProcgExecAction | P_MfgExecEventHistoryCnsmpn | MfgProcgExecAction | |
| KEY | ManufacturingOrder | P_MfgExecEventHistoryCnsmpn | ManufacturingOrder | Order |
| KEY | OrderOperationInternalID | P_MfgExecEventHistoryCnsmpn | OrderOperationInternalID | |
| KEY | InspectionCharacteristic | P_MfgExecEventHistoryCnsmpn | InspectionCharacteristic | |
| KEY | InspectionSubsetInternalID | P_MfgExecEventHistoryCnsmpn | InspectionSubsetInternalID | |
| KEY | InspResultValueInternalID | P_MfgExecEventHistoryCnsmpn | InspResultValueInternalID | |
| KEY | ChangeDocDatabaseTableField | P_MfgExecEventHistoryCnsmpn | ChangeDocDatabaseTableField | |
| KEY | ChangeDocument | P_MfgExecEventHistoryCnsmpn | ChangeDocument | Document Number |
| SortField | P_MfgExecEventHistoryCnsmpn | SortField | Sort Field | |
| EventDateTime | P_MfgExecEventHistoryCnsmpn | EventDateTime | ||
| ShopFloorExecutionUserName | ||||
| CreationDateTime | P_MfgExecEventHistoryCnsmpn | CreationDateTime | Timestamp | |
| CreatedByUser | P_MfgExecEventHistoryCnsmpn | CreatedByUser | User Name | |
| CreatedByUserName | ||||
| RespyMgmtTeamID | P_MfgExecEventHistoryCnsmpn | RespyMgmtTeamID | Team ID | |
| RespyMgmtTeamName | ||||
| RespyMgmtTeamDescription | ||||
| RespyMgmtFunction | P_MfgExecEventHistoryCnsmpn | RespyMgmtFunction | Function | |
| RespyMgmtFunctionDescription | ||||
| SystemMessageNumberasSystemMessageNumber | ||||
| SystemMessageIdentification | P_MfgExecEventHistoryCnsmpn | SystemMessageIdentification | Message ID | |
| MfgExecHistMsgVarblField1 | ||||
| MfgExecHistMsgVarblField2 | ||||
| MfgExecHistMsgVarblField3 | ||||
| MfgExecHistMsgVarblField4 | ||||
| MfgProcgExecAttachmentName | P_MfgExecEventHistoryCnsmpn | MfgProcgExecAttachmentName | ||
| SystemMessageDescription | ||||
| MfgBuyOffAction | P_MfgExecEventHistoryCnsmpn | MfgBuyOffAction | ||
| StatusAndActionSchema | P_MfgExecEventHistoryCnsmpn | StatusAndActionSchema | ||
| PostingIsRetroactive | P_MfgExecEventHistoryCnsmpn | PostingIsRetroactive | ||
| ProductionUnitasProductionUnit | ||||
| UnitOfMeasureNameasUnitOfMeasureName | ||||
| ActualDuration | ||||
| ActualDurationUnit | ||||
| MaterialComponentasMaterialComponent | ||||
| MaterialComponentName | P_MfgExecEventHistoryCnsmpn | MaterialComponentName | ||
| SubstitutedProduct | P_MfgExecEventHistoryCnsmpn | SubstitutedProduct | ||
| SubstitutedProductName | P_MfgExecEventHistoryCnsmpn | SubstitutedProductName | ||
| AlternativeItemGroup | P_MfgExecEventHistoryCnsmpn | AlternativeItemGroup | AltItemGroup | |
| AssembledSerialNumber | P_MfgExecEventHistoryCnsmpn | AssembledSerialNumber | ||
| AssembledMfrSerialNumber | P_MfgExecEventHistoryCnsmpn | AssembledMfrSerialNumber | ||
| AssembledBatch | P_MfgExecEventHistoryCnsmpn | AssembledBatch | ||
| ReplacedShopFloorItem | P_MfgExecEventHistoryCnsmpn | ReplacedShopFloorItem | ||
| ReplacedSerialNumber | P_MfgExecEventHistoryCnsmpn | ReplacedSerialNumber | ||
| ReplacedBatch | P_MfgExecEventHistoryCnsmpn | ReplacedBatch | ||
| MfgOrderSplitChildOrder | P_MfgExecEventHistoryCnsmpn | MfgOrderSplitChildOrder | ||
| SuccessorManufacturingOrder | P_MfgExecEventHistoryCnsmpn | SuccessorManufacturingOrder | ||
| BOMExplosionDate | P_MfgExecEventHistoryCnsmpn | BOMExplosionDate | ||
| AssembledBatchBySupplier | ||||
| ReferenceDesignatorValue | P_MfgExecEventHistoryCnsmpn | ReferenceDesignatorValue | Ref. Designator | |
| StorageLocation | P_MfgExecEventHistoryCnsmpn | StorageLocation | StorageLocation | |
| StorageLocationName | ||||
| StorageLocationName | ||||
| InventoryUsabilityCode | P_MfgExecEventHistoryCnsmpn | InventoryUsabilityCode | Stock Type | |
| InventoryUsabilityCodeName | ||||
| InventoryUsabilityCodeName | ||||
| CompDisassemblyPermanence | P_MfgExecEventHistoryCnsmpn | CompDisassemblyPermanence | ||
| CompDisassemblyPermanenceName | ||||
| MaterialComponentHasReltdComp | P_MfgExecEventHistoryCnsmpn | MaterialComponentHasReltdComp | ||
| EquipmentasEquipment | ||||
| MfgActionReasonCodeName | ||||
| MfgActionReasonCodeName | ||||
| MfgExecDocReasonCodeIsExisting | ||||
| MfgExecutionDocumentNote | P_MfgExecEventHistoryCnsmpn | MfgExecutionDocumentNote | ||
| OpActySFIGroupName | ||||
| ProductionPlantasProductionPlant | ||||
| ProductionPlantName | ||||
| ProductionPlantName | ||||
| MRPPlantasMRPPlant | ||||
| MRPControllerasMRPController | ||||
| WorkCenterTypeCode | P_MfgExecEventHistoryCnsmpn | WorkCenterTypeCode | Object Type | |
| WorkCenterasWorkCenter | ||||
| WorkCenterPlantasWorkCenterPlant | ||||
| WorkCenterPlantName | ||||
| WorkCenterPlantName | ||||
| DefectInternalID | P_MfgExecEventHistoryCnsmpn | DefectInternalID | Internal Defect ID | |
| Notification | P_MfgExecEventHistoryCnsmpn | Notification | Notification | |
| NotificationItem | P_MfgExecEventHistoryCnsmpn | NotificationItem | ||
| ManufacturingOrderType | P_MfgExecEventHistoryCnsmpn | ManufacturingOrderType | ||
| ManufacturingOrderCategory | P_MfgExecEventHistoryCnsmpn | ManufacturingOrderCategory | ||
| OrderInternalID | P_MfgExecEventHistoryCnsmpn | OrderInternalID | Plan No.f.Oper. | |
| ForperformancereadingwhenaccessingJEST | ||||
| MaterialasMaterial | ||||
| MaterialName | P_MfgExecEventHistoryCnsmpn | MaterialName | Material Description | |
| ForperformancereadingwhenaccessingJEST | ||||
| OpActyNtwkSegmentTypeText | ||||
| OpActyNtwkInstance | P_MfgExecEventHistoryCnsmpn | OpActyNtwkInstance | Instance ID | |
| OpActyNtwkElement | P_MfgExecEventHistoryCnsmpn | OpActyNtwkElement | Element Number | |
| OperationActivityNetwork | P_MfgExecEventHistoryCnsmpn | OperationActivityNetwork | ||
| OpActyNtwkVersionCounter | P_MfgExecEventHistoryCnsmpn | OpActyNtwkVersionCounter | ||
| ShopFloorItemasShopFloorItem |
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_MfgExecEventHistory.
-- 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: CMPEEXECHIST
CREATE VIEW C_MfgExecEventHistory AS
SELECT
h.MfgExecDocumentCategory AS MfgExecDocumentCategory,
h.ManufacturingExecutionDocument AS ManufacturingExecutionDocument,
h.MfgExecutionDocumentItem AS MfgExecutionDocumentItem,
h.MfgProcgExecAction AS MfgProcgExecAction,
h.ManufacturingOrder AS ManufacturingOrder,
h.OrderOperationInternalID AS OrderOperationInternalID,
h.InspectionCharacteristic AS InspectionCharacteristic,
h.InspectionSubsetInternalID AS InspectionSubsetInternalID,
h.InspResultValueInternalID AS InspResultValueInternalID,
h.ChangeDocDatabaseTableField AS ChangeDocDatabaseTableField,
h.ChangeDocument AS ChangeDocument,
h.SortField AS SortField,
h.EventDateTime AS EventDateTime,
cast('' as vdm_userdescription) AS ShopFloorExecutionUserName,
h.CreationDateTime AS CreationDateTime,
h.CreatedByUser AS CreatedByUser,
cast('' as vdm_userdescription) AS CreatedByUserName,
h.RespyMgmtTeamID AS RespyMgmtTeamID,
cast('' as mpe_buyoff_team_name) AS RespyMgmtTeamName,
cast('' as rsm_de_team_descr) AS RespyMgmtTeamDescription,
h.RespyMgmtFunction AS RespyMgmtFunction,
cast('' as rsm_de_function_descr) AS RespyMgmtFunctionDescription,
h.SystemMessageIdentification AS SystemMessageIdentification,
cast(h.MfgExecHistMsgVarblField1 as mpe_log_variable1 preserving type ) AS MfgExecHistMsgVarblField1,
cast(h.MfgExecHistMsgVarblField2 as mpe_log_variable2 preserving type ) AS MfgExecHistMsgVarblField2,
cast(h.MfgExecHistMsgVarblField3 as mpe_log_variable3 preserving type ) AS MfgExecHistMsgVarblField3,
cast(h.MfgExecHistMsgVarblField4 as mpe_log_variable4 preserving type ) AS MfgExecHistMsgVarblField4,
h.MfgProcgExecAttachmentName AS MfgProcgExecAttachmentName,
cast( '' as mpe_action_message_description ) AS SystemMessageDescription,
h.MfgBuyOffAction AS MfgBuyOffAction,
h.StatusAndActionSchema AS StatusAndActionSchema,
h.PostingIsRetroactive AS PostingIsRetroactive,
cast(0 as mpe_status_duration_quan) AS ActualDuration,
cast('' as durationunit) AS ActualDurationUnit,
h.MaterialComponentName AS MaterialComponentName,
h.SubstitutedProduct AS SubstitutedProduct,
h.SubstitutedProductName AS SubstitutedProductName,
h.AlternativeItemGroup AS AlternativeItemGroup,
h.AssembledSerialNumber AS AssembledSerialNumber,
h.AssembledMfrSerialNumber AS AssembledMfrSerialNumber,
h.AssembledBatch AS AssembledBatch,
h.ReplacedShopFloorItem AS ReplacedShopFloorItem,
h.ReplacedSerialNumber AS ReplacedSerialNumber,
h.ReplacedBatch AS ReplacedBatch,
h.MfgOrderSplitChildOrder AS MfgOrderSplitChildOrder,
h.SuccessorManufacturingOrder AS SuccessorManufacturingOrder,
h.BOMExplosionDate AS BOMExplosionDate,
cast(' ' as lichn preserving type ) AS AssembledBatchBySupplier,
h.ReferenceDesignatorValue AS ReferenceDesignatorValue,
h.StorageLocation AS StorageLocation,
cast('' as lgort_name) AS StorageLocationName,
h.InventoryUsabilityCode AS InventoryUsabilityCode,
cast('' as mpe_insmk_name) AS InventoryUsabilityCodeName,
h.CompDisassemblyPermanence AS CompDisassemblyPermanence,
cast('' as mpe_disassembly_permanence_nam) AS CompDisassemblyPermanenceName,
h.MaterialComponentHasReltdComp AS MaterialComponentHasReltdComp,
cast('' as qtxt_code) AS MfgActionReasonCodeName,
cast(h.MfgExecDocReasonCodeIsExisting as boolean preserving type ) AS MfgExecDocReasonCodeIsExisting,
h.MfgExecutionDocumentNote AS MfgExecutionDocumentNote,
h._OperationActivitySFIGroup.OpActySFIGroupName AS OpActySFIGroupName,
cast('' as werks_name) AS ProductionPlantName,
h.WorkCenterTypeCode AS WorkCenterTypeCode,
cast('' as werks_name) AS WorkCenterPlantName,
h.DefectInternalID AS DefectInternalID,
h.Notification AS Notification,
h.NotificationItem AS NotificationItem,
h.ManufacturingOrderType AS ManufacturingOrderType,
h.ManufacturingOrderCategory AS ManufacturingOrderCategory,
h.OrderInternalID AS OrderInternalID,
h.MaterialName AS MaterialName,
cast('' as mpe_oan_segment_type_name) AS OpActyNtwkSegmentTypeText,
h.OpActyNtwkInstance AS OpActyNtwkInstance,
h.OpActyNtwkElement AS OpActyNtwkElement,
h.OperationActivityNetwork AS OperationActivityNetwork,
h.OpActyNtwkVersionCounter AS OpActyNtwkVersionCounter
FROM P_MfgExecEventHistoryCnsmpn AS h
LEFT OUTER JOIN I_Plant AS _WorkCenterPlant ON WorkCenterPlant = _WorkCenterPlant.Plant -- association [0..1]
LEFT OUTER JOIN I_WorkCenterBySemanticKey AS _WorkCenterBySemanticKey ON WorkCenterPlant = _WorkCenterBySemanticKey.Plant AND WorkCenter = _WorkCenterBySemanticKey.WorkCenter -- association [0..1]
LEFT OUTER JOIN I_MfgProcgExecActionText AS _MfgProcgExecActionText ON MfgProcgExecAction = _MfgProcgExecActionText.MfgProcgExecAction -- association [0..*]
LEFT OUTER JOIN I_OpActyNtwkInternalID AS _OpActyNtwkInternalId ON OperationActivityNetwork = _OpActyNtwkInternalId.OperationActivityNetwork -- association [0..1]
LEFT OUTER JOIN I_OperationActivityNetwork AS _OperationActivityNetwork ON OperationActivityNetwork = _OperationActivityNetwork.OperationActivityNetwork AND OpActyNtwkVersionCounter = _OperationActivityNetwork.OpActyNtwkVersionCounter -- association [0..1]
LEFT OUTER JOIN I_OpActyNtwkSegmentTypeText AS _OpActyNtwkSegmentTypeText ON OpActyNtwkSegmentType = _OpActyNtwkSegmentTypeText.OpActyNtwkSegmentType AND _OpActyNtwkSegmentTypeText.Language = $session.system_language -- association [0..1]
LEFT OUTER JOIN I_SASSchemaText AS _SASSchemaText ON StatusAndActionSchema = _SASSchemaText.StatusAndActionSchema -- association [0..*]
LEFT OUTER JOIN I_UserContactCard AS _CreatedByUserContactCard ON CreatedByUser = _CreatedByUserContactCard.ContactCardID -- association [0..1]
LEFT OUTER JOIN I_UserContactCard AS _ExecutionUserContactCard ON ShopFloorExecutionUser = _ExecutionUserContactCard.ContactCardID -- 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