P_MfgExecEventHistOpActy

DDL: P_MFGEXECEVENTHISTOPACTY SQL: PMPEEXECHISTOA Type: view COMPOSITE Package: MPE_EXEC_COMMON

Operation Activity Execution Event History

P_MfgExecEventHistOpActy is a Composite CDS View that provides data about "Operation Activity Execution Event History" in SAP S/4HANA. It reads from 4 data sources (I_ProductionHoldBasic, I_ProductionHoldBasic, I_OpActyInstceEquipRegn, I_ShopFloorItemConfirmation) and exposes 281 fields with key fields MfgExecDocumentCategory, ManufacturingExecutionDocument, MfgExecutionDocumentItem, MfgProcgExecAction, ManufacturingExecutionDocument. Part of development package MPE_EXEC_COMMON.

Data Sources (4)

SourceAliasJoin Type
I_ProductionHoldBasic hold inner
I_ProductionHoldBasic hold inner
I_OpActyInstceEquipRegn regn union_all
I_ShopFloorItemConfirmation sfic from

Annotations (9)

NameValueLevelField
AbapCatalog.sqlViewName PMPEEXECHISTOA 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 (281)

KeyFieldSource TableSource FieldDescription
KEY MfgExecDocumentCategory
KEY ManufacturingExecutionDocument I_ShopFloorItemConfirmation ShopFloorItemStatusChangeDoc Document Number
KEY MfgExecutionDocumentItem
KEY MfgProcgExecAction
ActionIsSASAction
MfgObjectLogEventType
EventDateTime
ShopFloorExecutionUser
CreatedByUser User Name
CreationDateTime Timestamp
SortField
ShopFloorItem I_ShopFloorItemConfirmation ShopFloorItem Serial.Mat. ID
OperationActivitySFIGroup I_ShopFloorItemConfirmation OperationActivitySFIGroup Serial Number Group
OpActyNtwkInstance I_ShopFloorItemConfirmation OpActyNtwkInstance Instance ID
OpActyNtwkElement I_ShopFloorItemConfirmation OpActyNtwkElement Element Number
StatusAndActionSchema I_ShopFloorItemConfirmation StatusAndActionSchema Status Action Schema
DefectInternalID Internal Defect ID
Notification Notification
NotificationItem Item
MaterialComponent
MaterialComponentName
AssembledShopFloorItem
AssembledSerialNumber
AssembledMfrSerialNumber
AssembledBatch
ReferenceDesignatorValue Ref. Designator
StorageLocation StorageLocation
InventoryUsabilityCode Stock Type
CompDisassemblyPermanence
MaterialComponentHasReltdComp
Equipment Equipment check
BusinessProcessConfirmedQty
ProductionUnit
PostingIsRetroactive I_ShopFloorItemConfirmation PostingIsRetroactive Retroactive Action
MfgActionReasonCodeGroupCtlg I_ShopFloorItemConfirmation MfgActionReasonCodeGroupCtlg Catalog
MfgActionReasonCodeGroup I_ShopFloorItemConfirmation MfgActionReasonCodeGroup Code Group
ManufacturingActionReasonCode Water Hazard Cl.
SystemMessageNumber Message Number
SystemMessageIdentification Message ID
MfgExecHistMsgVarblField1 9
MfgExecHistMsgVarblField2 7
MfgExecHistMsgVarblField3 8
KEY ManufacturingExecutionDocument ca ManufacturingExecutionDocument Document Number
KEY MfgExecutionDocumentItem
KEY MfgProcgExecAction ca MfgProcgExecAction
ActionIsSASAction
MfgObjectLogEventType
EventDateTime ca EventDateTime
ShopFloorExecutionUser ca ShopFloorExecutionUser
CreatedByUser ca CreatedByUser User Name
CreationDateTime ca CreationDateTime Timestamp
SortField
ShopFloorItem ca ShopFloorItem Serial.Mat. ID
OperationActivitySFIGroup Serial Number Group
OpActyNtwkInstance ca OpActyNtwkInstance Instance ID
OpActyNtwkElement ca OpActyNtwkElement Element Number
StatusAndActionSchema Status Action Schema
DefectInternalID Internal Defect ID
Notification Notification
NotificationItem Item
MaterialComponent ca MaterialComponent
MaterialComponentName ca MaterialComponentName
AssembledShopFloorItem ca AssembledShopFloorItem
AssembledSerialNumber ca AssembledSerialNumber
AssembledMfrSerialNumber ca AssembledMfrSerialNumber
AssembledBatch ca AssembledBatch
ReferenceDesignatorValue ca ReferenceDesignatorValue Ref. Designator
StorageLocation ca StorageLocation StorageLocation
InventoryUsabilityCode ca InventoryUsabilityCode Stock Type
CompDisassemblyPermanence ca CompDisassemblyPermanence
MaterialComponentHasReltdComp ca MaterialComponentHasReltdComp
Equipment Equipment check
BusinessProcessConfirmedQty ca BusinessProcessConfirmedQty
ProductionUnit ca ProductionUnit
OpActyActualDurnInSeconds
PostingIsRetroactive PostingIsRetroactive Retroactive Action
MfgActionReasonCodeGroupCtlg Catalog
MfgActionReasonCodeGroup Code Group
ManufacturingActionReasonCode Water Hazard Cl.
SystemMessageNumber ca SystemMessageNumber Message Number
SystemMessageIdentification Message ID
MfgExecHistMsgVarblField1 ca MfgExecHistMsgVarblField1
MfgExecHistMsgVarblField2 ca MfgExecHistMsgVarblField2
MfgExecHistMsgVarblField3 ca MfgExecHistMsgVarblField3
KEY ManufacturingExecutionDocument act OperationActivityConfirmation Document Number
KEY MfgExecutionDocumentItem act MfgExecutionDocumentItem
KEY MfgProcgExecAction act MfgProcgExecAction
ActionIsSASAction act ActionIsSASAction
MfgObjectLogEventType
EventDateTime
ShopFloorExecutionUser
CreatedByUser User Name
CreationDateTime Timestamp
SortField
ShopFloorItem Serial.Mat. ID
OperationActivitySFIGroup Serial Number Group
OpActyNtwkInstance act OpActyNtwkInstance Instance ID
OpActyNtwkElement act OpActyNtwkElement Element Number
StatusAndActionSchema act StatusAndActionSchema Status Action Schema
DefectInternalID Internal Defect ID
Notification Notification
NotificationItem Item
MaterialComponent
MaterialComponentName
AssembledShopFloorItem
AssembledSerialNumber
AssembledMfrSerialNumber
AssembledBatch
ReferenceDesignatorValue Ref. Designator
StorageLocation StorageLocation
InventoryUsabilityCode Stock Type
CompDisassemblyPermanence
MaterialComponentHasReltdComp
Equipment Equipment check
BusinessProcessConfirmedQty act BusinessProcessConfirmedQty
ProductionUnit
PostingIsRetroactive act PostingIsRetroactive Retroactive Action
MfgActionReasonCodeGroupCtlg act MfgActionReasonCodeGroupCtlg Catalog
MfgActionReasonCodeGroup act MfgActionReasonCodeGroup Code Group
ManufacturingActionReasonCode Water Hazard Cl.
SystemMessageNumber act SystemMessageNumber Message Number
SystemMessageIdentification act SystemMessageIdentification Message ID
MfgExecHistMsgVarblField1 act MfgExecHistMsgVarblField1
MfgExecHistMsgVarblField2 act MfgExecHistMsgVarblField2
MfgExecHistMsgVarblField3 act MfgExecHistMsgVarblField3
KEY ManufacturingExecutionDocument labor OperationActivityLaborAction Document Number
KEY MfgExecutionDocumentItem
ActionIsSASAction
MfgObjectLogEventType
EventDateTime
ShopFloorExecutionUser
CreatedByUser User Name
CreationDateTime Timestamp
SortField
ShopFloorItem labor ShopFloorItem Serial.Mat. ID
OperationActivitySFIGroup labor OperationActivitySFIGroup Serial Number Group
OpActyNtwkInstance labor OpActyNtwkInstance Instance ID
OpActyNtwkElement labor OpActyNtwkElement Element Number
StatusAndActionSchema Status Action Schema
DefectInternalID Internal Defect ID
Notification Notification
NotificationItem Item
MaterialComponent
MaterialComponentName
AssembledShopFloorItem
AssembledSerialNumber
AssembledMfrSerialNumber
AssembledBatch
ReferenceDesignatorValue Ref. Designator
StorageLocation StorageLocation
InventoryUsabilityCode Stock Type
CompDisassemblyPermanence
MaterialComponentHasReltdComp
Equipment Equipment check
BusinessProcessConfirmedQty
ProductionUnit
PostingIsRetroactive PostingIsRetroactive Retroactive Action
MfgActionReasonCodeGroupCtlg labor MfgActionReasonCodeGroupCtlg Catalog
MfgActionReasonCodeGroup labor MfgActionReasonCodeGroup Code Group
ManufacturingActionReasonCode labor ManufacturingActionReasonCode Water Hazard Cl.
SystemMessageIdentification Message ID
MfgExecHistMsgVarblField1 10
MfgExecHistMsgVarblField2 8
KEY ManufacturingExecutionDocument act ProductionHold Document Number
KEY MfgExecutionDocumentItem act ProductionHoldItem
KEY MfgProcgExecAction act MfgProcgExecAction
ActionIsSASAction
MfgObjectLogEventType
ShopFloorExecutionUser
CreatedByUser User Name
CreationDateTime Timestamp
SortField
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
StatusAndActionSchema Status Action Schema
DefectInternalID I_ProductionHoldBasic DefectInternalID Internal Defect ID
Notification I_ProductionHoldBasic Notification Notification
NotificationItem I_ProductionHoldBasic NotificationItem Item
MaterialComponent
MaterialComponentName
AssembledShopFloorItem
AssembledSerialNumber
AssembledMfrSerialNumber
AssembledBatch
ReferenceDesignatorValue Ref. Designator
StorageLocation StorageLocation
InventoryUsabilityCode Stock Type
CompDisassemblyPermanence
MaterialComponentHasReltdComp
Equipment Equipment check
BusinessProcessConfirmedQty
ProductionUnit
OpActyActualDurnInSeconds
PostingIsRetroactive Retroactive Action
MfgActionReasonCodeGroupCtlg act MfgActionReasonCodeGroupCtlg Catalog
MfgActionReasonCodeGroup act MfgActionReasonCodeGroup Code Group
ManufacturingActionReasonCode act ManufacturingActionReasonCode Water Hazard Cl.
SystemMessageIdentification Message ID
MfgExecHistMsgVarblField1 20
MfgExecHistMsgVarblField2 8
KEY ManufacturingExecutionDocument act ProductionHold Document Number
KEY MfgExecutionDocumentItem act ProductionHoldItem
KEY MfgProcgExecAction act MfgProcgExecAction
ActionIsSASAction
MfgObjectLogEventType
ShopFloorExecutionUser
CreatedByUser User Name
CreationDateTime Timestamp
SortField
ShopFloorItem I_ProductionHoldBasic ShopFloorItem Serial.Mat. ID
OperationActivitySFIGroup I_ProductionHoldBasic OperationActivitySFIGroup Serial Number Group
OpActyNtwkInstance act OpActyNtwkInstance Instance ID
OpActyNtwkElement act OpActyNtwkElement Element Number
StatusAndActionSchema Status Action Schema
DefectInternalID I_ProductionHoldBasic DefectInternalID Internal Defect ID
Notification I_ProductionHoldBasic Notification Notification
NotificationItem I_ProductionHoldBasic NotificationItem Item
MaterialComponent
MaterialComponentName
AssembledShopFloorItem
AssembledSerialNumber
AssembledMfrSerialNumber
AssembledBatch
ReferenceDesignatorValue Ref. Designator
StorageLocation StorageLocation
InventoryUsabilityCode Stock Type
CompDisassemblyPermanence
MaterialComponentHasReltdComp
Equipment Equipment check
BusinessProcessConfirmedQty
ProductionUnit
OpActyActualDurnInSeconds
PostingIsRetroactive Retroactive Action
MfgActionReasonCodeGroupCtlg act MfgActionReasonCodeGroupCtlg Catalog
MfgActionReasonCodeGroup act MfgActionReasonCodeGroup Code Group
ManufacturingActionReasonCode act ManufacturingActionReasonCode Water Hazard Cl.
SystemMessageIdentification Message ID
MfgExecHistMsgVarblField1 20
MfgExecHistMsgVarblField3 6
KEY ManufacturingExecutionDocument I_OpActyInstceEquipRegn OpActyInstanceEquipmentRegn Document Number
KEY MfgExecutionDocumentItem
ActionIsSASAction
MfgObjectLogEventType
EventDateTime
ShopFloorExecutionUser
CreatedByUser User Name
CreationDateTime Timestamp
SortField
ShopFloorItem I_OpActyInstceEquipRegn ShopFloorItem Serial.Mat. ID
OperationActivitySFIGroup I_OpActyInstceEquipRegn OperationActivitySFIGroup Serial Number Group
OpActyNtwkInstance I_OpActyInstceEquipRegn OpActyNtwkInstance Instance ID
OpActyNtwkElement I_OpActyInstceEquipRegn OpActyNtwkElement Element Number
StatusAndActionSchema Status Action Schema
DefectInternalID Internal Defect ID
Notification Notification
NotificationItem Item
MaterialComponent
MaterialComponentName
AssembledShopFloorItem
AssembledSerialNumber
AssembledMfrSerialNumber
AssembledBatch
ReferenceDesignatorValue Ref. Designator
StorageLocation StorageLocation
InventoryUsabilityCode Stock Type
CompDisassemblyPermanence
MaterialComponentHasReltdComp
Equipment I_OpActyInstceEquipRegn Equipment Equipment check
BusinessProcessConfirmedQty
ProductionUnit
OpActyActualDurnInSeconds
PostingIsRetroactive Retroactive Action
MfgActionReasonCodeGroupCtlg I_OpActyInstceEquipRegn MfgActionReasonCodeGroupCtlg Catalog
MfgActionReasonCodeGroup I_OpActyInstceEquipRegn MfgActionReasonCodeGroup Code Group
ManufacturingActionReasonCode Water Hazard Cl.
SystemMessageIdentification Message ID
MfgExecHistMsgVarblField1 50
MfgExecHistMsgVarblField2 8
MfgExecHistMsgVarblField3 18

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_MfgExecEventHistOpActy.
-- 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: PMPEEXECHISTOA

CREATE VIEW P_MfgExecEventHistOpActy AS
SELECT
  cast (2 as mpe_exec_doc_category preserving type) AS MfgExecDocumentCategory,
  sfic.ShopFloorItemStatusChangeDoc AS ManufacturingExecutionDocument,
  cast(0 as mpe_doc_item) AS MfgExecutionDocumentItem,
  cast(sfic.StatusAndActionSchemaAction as mpe_action_name_type preserving type) AS MfgProcgExecAction,
  cast('' as xfeld preserving type) AS ActionIsSASAction,
  cast(0 as mpe_log_event) AS MfgObjectLogEventType,
  cast(sfic.CreationDateTime as mpe_perform_timestamp) AS EventDateTime,
  cast(sfic.CreatedByUserName as mpe_performed_by_user preserving type) AS ShopFloorExecutionUser,
  cast(sfic.CreatedByUserName as mpe_create_user preserving type) AS CreatedByUser,
  cast(sfic.CreationDateTime as mpe_create_timestampl preserving type) AS CreationDateTime,
  cast(300 as rszsort) AS SortField,
  sfic.ShopFloorItem AS ShopFloorItem,
  sfic.OperationActivitySFIGroup AS OperationActivitySFIGroup,
  sfic.OpActyNtwkInstance AS OpActyNtwkInstance,
  sfic.OpActyNtwkElement AS OpActyNtwkElement,
  sfic.StatusAndActionSchema AS StatusAndActionSchema,
  cast('' as qdefectinternalid) AS DefectInternalID,
  cast('' as qmnum) AS Notification,
  cast('0000' as felfd preserving type) AS NotificationItem,
  cast('' as mpe_component_matnr) AS MaterialComponent,
  cast('' as maktx) AS MaterialComponentName,
  cast(0 as mpe_assembled_sfi_id) AS AssembledShopFloorItem,
  cast('' as mpe_assembled_sernr) AS AssembledSerialNumber,
  cast('' as mpe_assembled_mfr_sernr) AS AssembledMfrSerialNumber,
  cast('' as mpe_assembled_batch) AS AssembledBatch,
  cast('' as vmp_ref_des) AS ReferenceDesignatorValue,
  cast(' ' as lgort_d preserving type) AS StorageLocation,
  cast('' as inventoryusabilitycode preserving type) AS InventoryUsabilityCode,
  cast('' as mpe_disassembly_permanence preserving type ) AS CompDisassemblyPermanence,
  cast('' as mpe_is_reassembly preserving type ) AS MaterialComponentHasReltdComp,
  cast('' as equnr) AS Equipment,
  cast(0 as co_iprzs) AS BusinessProcessConfirmedQty,
  cast('' as mpe_log_unit) AS ProductionUnit,
  sfic.PostingIsRetroactive AS PostingIsRetroactive,
  sfic.MfgActionReasonCodeGroupCtlg AS MfgActionReasonCodeGroupCtlg,
  sfic.MfgActionReasonCodeGroup AS MfgActionReasonCodeGroup,
  cast(sfic.ManufacturingActionReasonCode as mpe_action_reason_code preserving type) AS ManufacturingActionReasonCode,
  cast('008' as msgnr) AS SystemMessageNumber,
  cast('MPE_EXEC_SFI' as msgid) AS SystemMessageIdentification,
  9 AS MfgExecHistMsgVarblField1,
  7 AS MfgExecHistMsgVarblField2,
  8 AS MfgExecHistMsgVarblField3,
  cast(0 as mpe_actl_exec_duration) AS OpActyActualDurnInSeconds
FROM I_ShopFloorItemConfirmation AS sfic
INNER JOIN I_ProductionHoldBasic AS hold ON /* join condition not captured in parsed metadata */
-- UNION ALL with additional select branch(es): I_OpActyInstceEquipRegn
;