P_MfgExecEventHistoryCnsmpn

DDL: P_MFGEXECEVENTHISTORYCNSMPN SQL: PMPEEXECHISTC Type: view CONSUMPTION Package: MPE_EXEC_COMMON

Manufacturing Execution Event History

P_MfgExecEventHistoryCnsmpn is a Consumption CDS View that provides data about "Manufacturing Execution Event History" in SAP S/4HANA. It reads from 1 data source (I_MfgExecEventHistory) and exposes 141 fields with key fields MfgExecDocumentCategory, ManufacturingExecutionDocument, MfgExecutionDocumentItem, MfgProcgExecAction, ManufacturingOrder. It has 6 associations to related views. Part of development package MPE_EXEC_COMMON.

Data Sources (1)

SourceAliasJoin Type
I_MfgExecEventHistory h from

Associations (6)

CardinalityTargetAliasCondition
[1..1] I_MfgOrderSequence _MfgOrderSequence $projection.ManufacturingOrder = _MfgOrderSequence.ManufacturingOrder and $projection.ManufacturingOrderSequence = _MfgOrderSequence.ManufacturingOrderSequence
[0..1] I_OpActyNtwkElement _OpActyNtwkElement $projection.OperationActivityNetwork = _OpActyNtwkElement.OperationActivityNetwork and $projection.OpActyNtwkVersionCounter = _OpActyNtwkElement.OpActyNtwkVersionCounter and $projection.OpActyNtwkElement = _OpActyNtwkElement.OpActyNtwkElement
[1..1] I_User _CreatedByUser $projection.CreatedByUser = _CreatedByUser.UserID
[1..1] I_User _ExecutionUser $projection.ShopFloorExecutionUser = _ExecutionUser.UserID
[0..1] I_WorkCenterType _WorkCenterType $projection.WorkCenterTypeCode = _WorkCenterType.WorkCenterTypeCode
[0..1] I_WorkCenter _WorkCenter $projection.WorkCenterTypeCode = _WorkCenter.WorkCenterTypeCode and $projection.WorkCenterInternalID = _WorkCenter.WorkCenterInternalID

Annotations (10)

NameValueLevelField
AbapCatalog.sqlViewName PMPEEXECHISTC view
AccessControl.authorizationCheck #NOT_REQUIRED view
ClientHandling.algorithm #SESSION_VARIABLE view
ObjectModel.usageType.serviceQuality #D view
ObjectModel.usageType.sizeCategory #XL view
ObjectModel.usageType.dataClass #TRANSACTIONAL view
VDM.viewType #CONSUMPTION view
VDM.private true view
AbapCatalog.compiler.compareFilter true view
AbapCatalog.preserveKey true view

Fields (141)

KeyFieldSource TableSource FieldDescription
KEY MfgExecDocumentCategory I_MfgExecEventHistory MfgExecDocumentCategory
KEY ManufacturingExecutionDocument I_MfgExecEventHistory ManufacturingExecutionDocument
KEY MfgExecutionDocumentItem I_MfgExecEventHistory MfgExecutionDocumentItem
KEY MfgProcgExecAction I_MfgExecEventHistory MfgProcgExecAction
KEY ManufacturingOrder
KEY OrderOperationInternalID I_MfgExecEventHistory OrderOperationInternalID
KEY InspectionCharacteristic I_MfgExecEventHistory InspectionCharacteristic
KEY InspectionSubsetInternalID I_MfgExecEventHistory InspectionSubsetInternalID
KEY InspResultValueInternalID I_MfgExecEventHistory InspResultValueInternalID
KEY ChangeDocDatabaseTableField I_MfgExecEventHistory ChangeDocDatabaseTableField
KEY ChangeDocument I_MfgExecEventHistory ChangeDocument Document Number
MfgBuyOffAction I_MfgExecEventHistory MfgBuyOffAction
EventDateTime I_MfgExecEventHistory EventDateTime
ShopFloorExecutionUser I_MfgExecEventHistory ShopFloorExecutionUser
ShopFloorExecutionUserName _ExecutionUser UserDescription Full Name
CreatedByUser I_MfgExecEventHistory CreatedByUser User Name
Equipment I_MfgExecEventHistory Equipment Equipment check
CreatedByUserDescription
CreationDateTime I_MfgExecEventHistory CreationDateTime Timestamp
SortField I_MfgExecEventHistory SortField Sort Field
OrderInternalID I_MfgExecEventHistory OrderInternalID Plan No.f.Oper.
Material I_MfgExecEventHistory Material Vehicle Model
MaterialName I_MfgExecEventHistory MaterialName Material Description
ProductionSupervisor I_MfgExecEventHistory ProductionSupervisor Prodn Supervisor
MRPController I_MfgExecEventHistory MRPController MRP Controller
MfgOrderObjectInternalID I_MfgExecEventHistory ManufacturingObject
ManufacturingOrderOperation I_MfgExecEventHistory ManufacturingOrderOperation Activity
MfgOrderOperationText I_MfgExecEventHistory MfgOrderOperationText
ManufacturingOrderType I_MfgExecEventHistory ManufacturingOrderType
ManufacturingOrderCategory I_MfgExecEventHistory ManufacturingOrderCategory
ProductionPlant I_MfgExecEventHistory ProductionPlant Prod plnt
MRPPlant I_MfgExecEventHistory MRPPlant Plant
WorkCenterInternalID I_MfgExecEventHistory WorkCenterInternalID Work Center
WorkCenterTypeCode I_MfgExecEventHistory WorkCenterTypeCode Object Type
WorkCenterPlant I_MfgExecEventHistory WorkCenterPlant Plant
MfgOrderOperObjectInternalID
ShopFloorItemasShopFloorItem
OperationActivitySFIGroup I_MfgExecEventHistory OperationActivitySFIGroup
OpActyNtwkInstanceasOpActyNtwkInstance
OpActyNtwkElement I_MfgExecEventHistory OpActyNtwkElement Element Number
OperationActivityName I_MfgExecEventHistory OperationActivityName
OpActyNtwkSegmentType I_MfgExecEventHistory OpActyNtwkSegmentType
OperationActivityNetwork I_MfgExecEventHistory OperationActivityNetwork
OpActyNtwkVersionCounter I_MfgExecEventHistory OpActyNtwkVersionCounter
OpActyNtwkElementExternalID I_MfgExecEventHistory OpActyNtwkElementExternalID Op. Activity
OperationActivity I_MfgExecEventHistory OperationActivity Operation Activity
OperationActyVersionCounter I_MfgExecEventHistory OperationActyVersionCounter OA Version
DefectInternalID I_MfgExecEventHistory DefectInternalID Internal Defect ID
Notification I_MfgExecEventHistory Notification Notification
NotificationItem I_MfgExecEventHistory NotificationItem
MaterialComponent I_MfgExecEventHistory MaterialComponent
MaterialComponentName I_MfgExecEventHistory MaterialComponentName
AssembledShopFloorItem I_MfgExecEventHistory AssembledShopFloorItem
AssembledSerialNumber I_MfgExecEventHistory AssembledSerialNumber
AssembledMfrSerialNumber I_MfgExecEventHistory AssembledMfrSerialNumber
AssembledBatch I_MfgExecEventHistory AssembledBatch
ReplacedShopFloorItem I_MfgExecEventHistory ReplacedShopFloorItem
ReplacedSerialNumber I_MfgExecEventHistory ReplacedSerialNumber
ReplacedBatch I_MfgExecEventHistory ReplacedBatch
MfgOrderSplitChildOrder I_MfgExecEventHistory MfgOrderSplitChildOrder
BOMExplosionDate I_MfgExecEventHistory BOMExplosionDate
ReferenceDesignatorValue I_MfgExecEventHistory ReferenceDesignatorValue Ref. Designator
StorageLocation I_MfgExecEventHistory StorageLocation StorageLocation
InventoryUsabilityCode I_MfgExecEventHistory InventoryUsabilityCode Stock Type
CompDisassemblyPermanence I_MfgExecEventHistory CompDisassemblyPermanence
MaterialComponentHasReltdComp I_MfgExecEventHistory MaterialComponentHasReltdComp
Defect I_MfgExecEventHistory Defect
DefectText I_MfgExecEventHistory DefectText
QltyTaskFollowUpAction I_MfgExecEventHistory QltyTaskFollowUpAction
MfgBuyOffInternalID I_MfgExecEventHistory MfgBuyOffInternalID ID
MfgBuyOffDescription I_MfgExecEventHistory MfgBuyOffDescription
MfgBuyOffReferencedStep I_MfgExecEventHistory MfgBuyOffReferencedStep ID
MfgBuyOffAdhocStepDescription I_MfgExecEventHistory MfgBuyOffAdhocStepDescription Buyoff Description
MfgBuyOffCycle I_MfgExecEventHistory MfgBuyOffCycle Buyoff
RespyMgmtTeamID I_MfgExecEventHistory RespyMgmtTeamID Team ID
RespyMgmtFunction I_MfgExecEventHistory RespyMgmtFunction Function
InspectionSpecificationText I_MfgExecEventHistory InspectionSpecificationText
ChangeDocPreviousFieldValue I_MfgExecEventHistory ChangeDocPreviousFieldValue
ChangeDocNewFieldValue I_MfgExecEventHistory ChangeDocNewFieldValue
InspectionResultMeanValue I_MfgExecEventHistory InspectionResultMeanValue
InspectionResultMeasuredValue I_MfgExecEventHistory InspectionResultMeasuredValue
CharacteristicAttributeCode I_MfgExecEventHistory CharacteristicAttributeCode
InspectionValuationResult I_MfgExecEventHistory InspectionValuationResult
InspectionSpecificationUnit I_MfgExecEventHistory InspectionSpecificationUnit Unit of Meas.
InspSpecDecimalPlaces I_MfgExecEventHistory InspSpecDecimalPlaces
MfgActionReasonCodeGroupCtlg I_MfgExecEventHistory MfgActionReasonCodeGroupCtlg
MfgActionReasonCodeGroup I_MfgExecEventHistory MfgActionReasonCodeGroup
ManufacturingActionReasonCode I_MfgExecEventHistory ManufacturingActionReasonCode
MfgExecDocReasonCodeIsExisting
BusinessProcessConfirmedQty I_MfgExecEventHistory BusinessProcessConfirmedQty
ProductionUnit I_MfgExecEventHistory ProductionUnit
OpActyActualDurnInSeconds I_MfgExecEventHistory OpActyActualDurnInSeconds
PostingIsRetroactive I_MfgExecEventHistory PostingIsRetroactive
MfgExecutionDocumentNote I_MfgExecEventHistory MfgExecutionDocumentNote
SystemMessageNumberasSystemMessageNumber
SystemMessageIdentification I_MfgExecEventHistory SystemMessageIdentification Message ID
MfgExecHistMsgVarblField1 I_MfgExecEventHistory MfgExecHistMsgVarblField1
MfgExecHistMsgVarblField2 I_MfgExecEventHistory MfgExecHistMsgVarblField2
MfgExecHistMsgVarblField3 I_MfgExecEventHistory MfgExecHistMsgVarblField3
MfgExecHistMsgVarblField4 I_MfgExecEventHistory MfgExecHistMsgVarblField4
MfgProcgExecAttachmentName I_MfgExecEventHistory MfgProcgExecAttachmentName
_CreatedByUser _CreatedByUser
_ExecutionUser _ExecutionUser
_MfgOrder _MfgOrder
_MfgOrderType _MfgOrderType
_MfgOrderCategory _MfgOrderCategory
_MfgOrderOperation _MfgOrderOperation
_MfgOrderOperationBasic _MfgOrderOperationBasic
_OrderOperationBasic _OrderOperationBasic
_OpActyNtwkInstance _OpActyNtwkInstance
_OperationActivityInstance _OperationActivityInstance
_ShopFloorItem _ShopFloorItem
_OperationActivitySFIGroup _OperationActivitySFIGroup
_AssembledShopFloorItem _AssembledShopFloorItem
_MfgProcgExecAction _MfgProcgExecAction
_ProductionUnit _ProductionUnit
_MfgActionReasonCodeGroupCtlg _MfgActionReasonCodeGroupCtlg
_MfgActionReasonCodeGroup _MfgActionReasonCodeGroup
_MfgActionReasonCode _MfgActionReasonCode
_ManufacturingObjectLog _ManufacturingObjectLog
_OpActyConfirmationAction _OpActyConfirmationAction
_OpActyNtwkSegmentType _OpActyNtwkSegmentType
_SASSchema _SASSchema
_ShopFloorItemConfirmation _ShopFloorItemConfirmation
_MfgOrderComponentAssembly _MfgOrderComponentAssembly
_OpActyNtwkElement _OpActyNtwkElement
_MfgOrderSequence _MfgOrderSequence
_ProductionPlant _ProductionPlant
_MRPPlant _MRPPlant
_StorageLocation _StorageLocation
_MRPController _MRPController
_ProductionSupervisor _ProductionSupervisor
_Material _Material
_MaterialText _MaterialText
_Defect _Defect
_Notification _Notification
_NotificationItem _NotificationItem
_MaterialComponent _MaterialComponent
_WorkCenter _WorkCenter
_WorkCenterType _WorkCenterType
_PlannedInvtryUsblyCodeText _PlannedInvtryUsblyCodeText

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_MfgExecEventHistoryCnsmpn.
-- 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: PMPEEXECHISTC

CREATE VIEW P_MfgExecEventHistoryCnsmpn AS
SELECT
  h.MfgExecDocumentCategory AS MfgExecDocumentCategory,
  h.ManufacturingExecutionDocument AS ManufacturingExecutionDocument,
  h.MfgExecutionDocumentItem AS MfgExecutionDocumentItem,
  h.MfgProcgExecAction AS MfgProcgExecAction,
  cast(h.ManufacturingOrder as mpe_production_order preserving type ) 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.MfgBuyOffAction AS MfgBuyOffAction,
  h.EventDateTime AS EventDateTime,
  h.ShopFloorExecutionUser AS ShopFloorExecutionUser,
  _ExecutionUser.UserDescription AS ShopFloorExecutionUserName,
  h.CreatedByUser AS CreatedByUser,
  h.Equipment AS Equipment,
  h.CreationDateTime AS CreationDateTime,
  h.SortField AS SortField,
  h.OrderInternalID AS OrderInternalID,
  h.Material AS Material,
  h.MaterialName AS MaterialName,
  h.ProductionSupervisor AS ProductionSupervisor,
  h.MRPController AS MRPController,
  h.ManufacturingObject AS MfgOrderObjectInternalID,
  h.ManufacturingOrderOperation AS ManufacturingOrderOperation,
  h.MfgOrderOperationText AS MfgOrderOperationText,
  h.ManufacturingOrderType AS ManufacturingOrderType,
  h.ManufacturingOrderCategory AS ManufacturingOrderCategory,
  h.ProductionPlant AS ProductionPlant,
  h.MRPPlant AS MRPPlant,
  h.WorkCenterInternalID AS WorkCenterInternalID,
  h.WorkCenterTypeCode AS WorkCenterTypeCode,
  h.WorkCenterPlant AS WorkCenterPlant,
  h.OperationActivitySFIGroup AS OperationActivitySFIGroup,
  h.OpActyNtwkElement AS OpActyNtwkElement,
  h.OperationActivityName AS OperationActivityName,
  h.OpActyNtwkSegmentType AS OpActyNtwkSegmentType,
  h.OperationActivityNetwork AS OperationActivityNetwork,
  h.OpActyNtwkVersionCounter AS OpActyNtwkVersionCounter,
  h.OpActyNtwkElementExternalID AS OpActyNtwkElementExternalID,
  h.OperationActivity AS OperationActivity,
  h.OperationActyVersionCounter AS OperationActyVersionCounter,
  h.DefectInternalID AS DefectInternalID,
  h.Notification AS Notification,
  h.NotificationItem AS NotificationItem,
  h.MaterialComponent AS MaterialComponent,
  h.MaterialComponentName AS MaterialComponentName,
  h.AssembledShopFloorItem AS AssembledShopFloorItem,
  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.BOMExplosionDate AS BOMExplosionDate,
  h.ReferenceDesignatorValue AS ReferenceDesignatorValue,
  h.StorageLocation AS StorageLocation,
  h.InventoryUsabilityCode AS InventoryUsabilityCode,
  h.CompDisassemblyPermanence AS CompDisassemblyPermanence,
  h.MaterialComponentHasReltdComp AS MaterialComponentHasReltdComp,
  h.Defect AS Defect,
  h.DefectText AS DefectText,
  h.QltyTaskFollowUpAction AS QltyTaskFollowUpAction,
  h.MfgBuyOffInternalID AS MfgBuyOffInternalID,
  h.MfgBuyOffDescription AS MfgBuyOffDescription,
  h.MfgBuyOffReferencedStep AS MfgBuyOffReferencedStep,
  h.MfgBuyOffAdhocStepDescription AS MfgBuyOffAdhocStepDescription,
  h.MfgBuyOffCycle AS MfgBuyOffCycle,
  h.RespyMgmtTeamID AS RespyMgmtTeamID,
  h.RespyMgmtFunction AS RespyMgmtFunction,
  h.InspectionSpecificationText AS InspectionSpecificationText,
  h.ChangeDocPreviousFieldValue AS ChangeDocPreviousFieldValue,
  h.ChangeDocNewFieldValue AS ChangeDocNewFieldValue,
  h.InspectionResultMeanValue AS InspectionResultMeanValue,
  h.InspectionResultMeasuredValue AS InspectionResultMeasuredValue,
  h.CharacteristicAttributeCode AS CharacteristicAttributeCode,
  h.InspectionValuationResult AS InspectionValuationResult,
  h.InspectionSpecificationUnit AS InspectionSpecificationUnit,
  h.InspSpecDecimalPlaces AS InspSpecDecimalPlaces,
  h.MfgActionReasonCodeGroupCtlg AS MfgActionReasonCodeGroupCtlg,
  h.MfgActionReasonCodeGroup AS MfgActionReasonCodeGroup,
  h.ManufacturingActionReasonCode AS ManufacturingActionReasonCode,
  case when h.ManufacturingActionReasonCode = '' then '' else 'X' end AS MfgExecDocReasonCodeIsExisting,
  h.BusinessProcessConfirmedQty AS BusinessProcessConfirmedQty,
  h.ProductionUnit AS ProductionUnit,
  h.OpActyActualDurnInSeconds AS OpActyActualDurnInSeconds,
  h.PostingIsRetroactive AS PostingIsRetroactive,
  h.MfgExecutionDocumentNote AS MfgExecutionDocumentNote,
  h.SystemMessageIdentification AS SystemMessageIdentification,
  h.MfgExecHistMsgVarblField1 AS MfgExecHistMsgVarblField1,
  h.MfgExecHistMsgVarblField2 AS MfgExecHistMsgVarblField2,
  h.MfgExecHistMsgVarblField3 AS MfgExecHistMsgVarblField3,
  h.MfgExecHistMsgVarblField4 AS MfgExecHistMsgVarblField4,
  h.MfgProcgExecAttachmentName AS MfgProcgExecAttachmentName
FROM I_MfgExecEventHistory AS h
LEFT OUTER JOIN I_MfgOrderSequence AS _MfgOrderSequence ON ManufacturingOrder = _MfgOrderSequence.ManufacturingOrder AND ManufacturingOrderSequence = _MfgOrderSequence.ManufacturingOrderSequence  -- association [1..1]
LEFT OUTER JOIN I_OpActyNtwkElement AS _OpActyNtwkElement ON OperationActivityNetwork = _OpActyNtwkElement.OperationActivityNetwork AND OpActyNtwkVersionCounter = _OpActyNtwkElement.OpActyNtwkVersionCounter AND OpActyNtwkElement = _OpActyNtwkElement.OpActyNtwkElement  -- association [0..1]
LEFT OUTER JOIN I_User AS _CreatedByUser ON CreatedByUser = _CreatedByUser.UserID  -- association [1..1]
LEFT OUTER JOIN I_User AS _ExecutionUser ON ShopFloorExecutionUser = _ExecutionUser.UserID  -- association [1..1]
LEFT OUTER JOIN I_WorkCenterType AS _WorkCenterType ON WorkCenterTypeCode = _WorkCenterType.WorkCenterTypeCode  -- association [0..1]
LEFT OUTER JOIN I_WorkCenter AS _WorkCenter ON WorkCenterTypeCode = _WorkCenter.WorkCenterTypeCode AND WorkCenterInternalID = _WorkCenter.WorkCenterInternalID  -- association [0..1]
;