P_MfgExecEventHistOpActy2

DDL: P_MFGEXECEVENTHISTOPACTY2 SQL: PMPEEXECHISTOA2 Type: view COMPOSITE

P_MfgExecEventHistOpActy2 is a Composite CDS View in SAP S/4HANA. It reads from 2 data sources (I_MfgBuyOffActionHistory, P_MfgExecEventHistOpActy) and exposes 234 fields with key fields MfgExecDocumentCategory, ManufacturingExecutionDocument, MfgExecutionDocumentItem, MfgProcgExecAction, ManufacturingExecutionDocument.

Data Sources (2)

SourceAliasJoin Type
I_MfgBuyOffActionHistory buyoff union_all
P_MfgExecEventHistOpActy u from

Annotations (9)

NameValueLevelField
AbapCatalog.sqlViewName PMPEEXECHISTOA2 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 (234)

KeyFieldSource TableSource FieldDescription
KEY MfgExecDocumentCategory P_MfgExecEventHistOpActy MfgExecDocumentCategory
KEY ManufacturingExecutionDocument P_MfgExecEventHistOpActy ManufacturingExecutionDocument
KEY MfgExecutionDocumentItem P_MfgExecEventHistOpActy MfgExecutionDocumentItem
KEY MfgProcgExecAction P_MfgExecEventHistOpActy MfgProcgExecAction
ActionIsSASAction P_MfgExecEventHistOpActy ActionIsSASAction
MfgBuyOffAction
MfgObjectLogEventType P_MfgExecEventHistOpActy MfgObjectLogEventType
EventDateTime P_MfgExecEventHistOpActy EventDateTime
ShopFloorExecutionUser P_MfgExecEventHistOpActy ShopFloorExecutionUser
CreatedByUser P_MfgExecEventHistOpActy CreatedByUser User Name
CreationDateTime P_MfgExecEventHistOpActy CreationDateTime Timestamp
SortField P_MfgExecEventHistOpActy SortField
ShopFloorItem P_MfgExecEventHistOpActy ShopFloorItem Serial.Mat. ID
OperationActivitySFIGroup P_MfgExecEventHistOpActy OperationActivitySFIGroup
OpActyNtwkInstance P_MfgExecEventHistOpActy OpActyNtwkInstance Instance ID
OpActyNtwkElement P_MfgExecEventHistOpActy OpActyNtwkElement Element Number
StatusAndActionSchema P_MfgExecEventHistOpActy StatusAndActionSchema
DefectInternalID P_MfgExecEventHistOpActy DefectInternalID Internal Defect ID
Notification P_MfgExecEventHistOpActy Notification Notification
NotificationItem P_MfgExecEventHistOpActy NotificationItem
MaterialComponent P_MfgExecEventHistOpActy MaterialComponent Vehicle Model
MaterialComponentName P_MfgExecEventHistOpActy MaterialComponentName
AssembledShopFloorItem P_MfgExecEventHistOpActy AssembledShopFloorItem
AssembledSerialNumber P_MfgExecEventHistOpActy AssembledSerialNumber
AssembledMfrSerialNumber P_MfgExecEventHistOpActy AssembledMfrSerialNumber
AssembledBatch P_MfgExecEventHistOpActy AssembledBatch
ReferenceDesignatorValue P_MfgExecEventHistOpActy ReferenceDesignatorValue Ref. Designator
ReplacedShopFloorItem P_MfgExecEventHistOpActy ReplacedShopFloorItem
ReplacedSerialNumber P_MfgExecEventHistOpActy ReplacedSerialNumber
ReplacedBatch P_MfgExecEventHistOpActy ReplacedBatch
SubstitutedProduct
SubstitutedProductName
AlternativeItemGroup P_MfgExecEventHistOpActy AlternativeItemGroup AltItemGroup
StorageLocation P_MfgExecEventHistOpActy StorageLocation StorageLocation
InventoryUsabilityCode P_MfgExecEventHistOpActy InventoryUsabilityCode Stock Type
CompDisassemblyPermanence P_MfgExecEventHistOpActy CompDisassemblyPermanence
MaterialComponentHasReltdComp P_MfgExecEventHistOpActy MaterialComponentHasReltdComp
MfgBuyOffInternalID ID
MfgBuyOffReferencedStep ID
MfgBuyOffAdhocStepDescription Buyoff Description
MfgBuyOffCycle Buyoff
RespyMgmtTeamID Team ID
RespyMgmtFunction Function
BusinessProcessConfirmedQty P_MfgExecEventHistOpActy BusinessProcessConfirmedQty Quantity in Unit of Entry
ProductionUnit P_MfgExecEventHistOpActy ProductionUnit Unit of Entry
OpActyActualDurnInSeconds P_MfgExecEventHistOpActy OpActyActualDurnInSeconds
PostingIsRetroactive P_MfgExecEventHistOpActy PostingIsRetroactive
MfgActionReasonCodeGroupCtlg P_MfgExecEventHistOpActy MfgActionReasonCodeGroupCtlg
MfgActionReasonCodeGroup P_MfgExecEventHistOpActy MfgActionReasonCodeGroup
ManufacturingActionReasonCode P_MfgExecEventHistOpActy ManufacturingActionReasonCode
MfgExecutionDocumentNote note MfgExecutionDocumentNote
Equipment P_MfgExecEventHistOpActy Equipment Equipment check
SystemMessageNumber P_MfgExecEventHistOpActy SystemMessageNumber Message Number
SystemMessageIdentification P_MfgExecEventHistOpActy SystemMessageIdentification Message ID
MfgExecHistMsgVarblField1 P_MfgExecEventHistOpActy MfgExecHistMsgVarblField1
MfgExecHistMsgVarblField2 P_MfgExecEventHistOpActy MfgExecHistMsgVarblField2
MfgExecHistMsgVarblField3 P_MfgExecEventHistOpActy MfgExecHistMsgVarblField3
MfgExecHistMsgVarblField4 P_MfgExecEventHistOpActy MfgExecHistMsgVarblField4
Defect
MfgProcgExecAttachmentName
KEY ManufacturingExecutionDocument
KEY MfgExecutionDocumentItem I_MfgBuyOffActionHistory MfgExecutionDocumentItem
KEY MfgProcgExecAction I_MfgBuyOffActionHistory MfgProcgExecAction
ActionIsSASAction
MfgBuyOffAction I_MfgBuyOffActionHistory MfgBuyOffAction
MfgObjectLogEventType
EventDateTime
ShopFloorExecutionUser
CreatedByUser User Name
CreationDateTime Timestamp
SortField
ShopFloorItem I_MfgBuyOffActionHistory ShopFloorItem Serial.Mat. ID
OperationActivitySFIGroup I_MfgBuyOffActionHistory OperationActivitySFIGroup
OpActyNtwkInstance I_MfgBuyOffActionHistory OpActyNtwkInstance Instance ID
OpActyNtwkElement I_MfgBuyOffActionHistory OpActyNtwkElement Element Number
StatusAndActionSchema
DefectInternalID Internal Defect ID
Notification Notification
NotificationItem
MaterialComponent Vehicle Model
MaterialComponentName
AssembledShopFloorItem
AssembledSerialNumber
AssembledMfrSerialNumber
AssembledBatch
ReferenceDesignatorValue Ref. Designator
ReplacedShopFloorItem
ReplacedSerialNumber
ReplacedBatch
SubstitutedProduct
SubstitutedProductName
AlternativeItemGroup AltItemGroup
StorageLocation StorageLocation
InventoryUsabilityCode Stock Type
CompDisassemblyPermanence
MaterialComponentHasReltdComp
MfgBuyOffInternalID I_MfgBuyOffActionHistory MfgBuyOffInternalID ID
MfgBuyOffReferencedStep I_MfgBuyOffActionHistory MfgBuyOffReferencedStep ID
MfgBuyOffAdhocStepDescription I_MfgBuyOffActionHistory MfgBuyOffAdhocStepDescription Buyoff Description
MfgBuyOffCycle I_MfgBuyOffActionHistory ManufacturingExecutionDocument Buyoff
RespyMgmtTeamID I_MfgBuyOffActionHistory RespyMgmtTeamID Team ID
RespyMgmtFunction I_MfgBuyOffActionHistory RespyMgmtFunction Function
BusinessProcessConfirmedQty Quantity in Unit of Entry
ProductionUnit Unit of Entry
OpActyActualDurnInSeconds
PostingIsRetroactive
MfgActionReasonCodeGroupCtlg I_MfgBuyOffActionHistory MfgActionReasonCodeGroupCtlg
MfgActionReasonCodeGroup I_MfgBuyOffActionHistory MfgActionReasonCodeGroup
ManufacturingActionReasonCode I_MfgBuyOffActionHistory ManufacturingActionReasonCode
MfgExecutionDocumentNote I_MfgBuyOffActionHistory MfgBuyOffComment
Equipment Equipment check
SystemMessageNumber I_MfgBuyOffActionHistory SystemMessageNumber Message Number
SystemMessageIdentification I_MfgBuyOffActionHistory SystemMessageIdentification Message ID
MfgExecHistMsgVarblField1 I_MfgBuyOffActionHistory MfgExecHistMsgVarblField1
MfgExecHistMsgVarblField2 I_MfgBuyOffActionHistory MfgExecHistMsgVarblField2
MfgExecHistMsgVarblField3 I_MfgBuyOffActionHistory MfgExecHistMsgVarblField3
MfgExecHistMsgVarblField4 I_MfgBuyOffActionHistory MfgExecHistMsgVarblField4
Defect
MfgProcgExecAttachmentName
KEY ManufacturingExecutionDocument
KEY MfgExecutionDocumentItem
MfgProcgExecActionasMfgProcgExecAction
ActionIsSASAction
MfgBuyOffAction
MfgObjectLogEventType
clientNULLasEventDateTime
ShopFloorExecutionUser
CreatedByUser User Name
clientNULLasCreationDateTime
SortField
ShopFloorItem Defect ShopFloorItem Serial.Mat. ID
OperationActivitySFIGroup
OpActyNtwkInstance Defect OpActyNtwkInstance Instance ID
OpActyNtwkElement Defect OpActyNtwkElement Element Number
StatusAndActionSchema Defect StatusAndActionSchema
DefectInternalID Internal Defect ID
Notification Defect Notification Notification
NotificationItem Defect NotificationItem
MaterialComponent Vehicle Model
MaterialComponentName
AssembledShopFloorItem
AssembledSerialNumber
AssembledMfrSerialNumber
AssembledBatch
ReferenceDesignatorValue Ref. Designator
ReplacedShopFloorItem
ReplacedSerialNumber
ReplacedBatch
SubstitutedProduct
SubstitutedProductName
AlternativeItemGroup AltItemGroup
StorageLocation StorageLocation
InventoryUsabilityCode Stock Type
CompDisassemblyPermanence
MaterialComponentHasReltdComp
MfgBuyOffInternalID ID
MfgBuyOffReferencedStep ID
MfgBuyOffAdhocStepDescription Buyoff Description
MfgBuyOffCycle Buyoff
RespyMgmtTeamID Team ID
RespyMgmtFunction Function
BusinessProcessConfirmedQty Quantity in Unit of Entry
ProductionUnit Unit of Entry
OpActyActualDurnInSeconds
PostingIsRetroactive
MfgActionReasonCodeGroupCtlg
MfgActionReasonCodeGroup
ManufacturingActionReasonCode
MfgExecutionDocumentNote
Equipment Defect Equipment Equipment check
SystemMessageIdentification Message ID
MfgExecHistMsgVarblField1 27
MfgExecHistMsgVarblField3 20
Defect Defect Defect
MfgProcgExecAttachmentName
KEY ManufacturingExecutionDocument log ManufacturingObjectLog
KEY MfgExecutionDocumentItem
KEY MfgProcgExecAction ManufacturingAction MfgProcgExecAction
ActionIsSASAction
MfgBuyOffAction
MfgObjectLogEventType log MfgObjectLogEventType
EventDateTime
ShopFloorExecutionUser
CreatedByUser User Name
CreationDateTime Timestamp
ShopFloorItem log ShopFloorItem Serial.Mat. ID
OperationActivitySFIGroup
OpActyNtwkInstance log OpActyNtwkInstance Instance ID
OpActyNtwkElement log OpActyNtwkElement Element Number
StatusAndActionSchema
DefectInternalID Internal Defect ID
Notification Notification
NotificationItem
MaterialComponent Vehicle Model
MaterialComponentName
AssembledShopFloorItem
AssembledSerialNumber
AssembledMfrSerialNumber
AssembledBatch
ReferenceDesignatorValue Ref. Designator
ReplacedShopFloorItem
ReplacedSerialNumber
ReplacedBatch
SubstitutedProduct log SubstitutedProduct
SubstitutedProductName
AlternativeItemGroup AltItemGroup
StorageLocation StorageLocation
InventoryUsabilityCode Stock Type
CompDisassemblyPermanence
MaterialComponentHasReltdComp
MfgBuyOffInternalID ID
MfgBuyOffReferencedStep ID
MfgBuyOffAdhocStepDescription Buyoff Description
MfgBuyOffCycle Buyoff
RespyMgmtTeamID Team ID
RespyMgmtFunction Function
BusinessProcessConfirmedQty Quantity in Unit of Entry
ProductionUnit Unit of Entry
OpActyActualDurnInSeconds
PostingIsRetroactive
MfgActionReasonCodeGroupCtlg log MfgActionReasonCodeGroupCtlg
MfgActionReasonCodeGroup log MfgActionReasonCodeGroup
ManufacturingActionReasonCode log ManufacturingActionReasonCode
MfgExecutionDocumentNote
Equipment Equipment check
SystemMessageNumber log SystemMessageNumber Message Number
SystemMessageIdentification log SystemMessageIdentification Message ID
MfgExecHistMsgVarblField1 log MfgExecHistMsgVarblField1
MfgExecHistMsgVarblField2 log MfgExecHistMsgVarblField2
MfgExecHistMsgVarblField3 log MfgExecHistMsgVarblField3
MfgExecHistMsgVarblField4 log MfgExecHistMsgVarblField4
Defect
MfgProcgExecAttachmentName log MfgProcgExecAttachmentName
MfgBuyoffDescription

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_MfgExecEventHistOpActy2.
-- 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: PMPEEXECHISTOA2

CREATE VIEW P_MfgExecEventHistOpActy2 AS
SELECT
  u.MfgExecDocumentCategory AS MfgExecDocumentCategory,
  u.ManufacturingExecutionDocument AS ManufacturingExecutionDocument,
  u.MfgExecutionDocumentItem AS MfgExecutionDocumentItem,
  u.MfgProcgExecAction AS MfgProcgExecAction,
  u.ActionIsSASAction AS ActionIsSASAction,
  cast(' ' as mpe_buyoff_action preserving type) AS MfgBuyOffAction,
  u.MfgObjectLogEventType AS MfgObjectLogEventType,
  u.EventDateTime AS EventDateTime,
  u.ShopFloorExecutionUser AS ShopFloorExecutionUser,
  u.CreatedByUser AS CreatedByUser,
  u.CreationDateTime AS CreationDateTime,
  u.SortField AS SortField,
  u.ShopFloorItem AS ShopFloorItem,
  u.OperationActivitySFIGroup AS OperationActivitySFIGroup,
  u.OpActyNtwkInstance AS OpActyNtwkInstance,
  u.OpActyNtwkElement AS OpActyNtwkElement,
  u.StatusAndActionSchema AS StatusAndActionSchema,
  u.DefectInternalID AS DefectInternalID,
  u.Notification AS Notification,
  u.NotificationItem AS NotificationItem,
  u.MaterialComponent AS MaterialComponent,
  u.MaterialComponentName AS MaterialComponentName,
  u.AssembledShopFloorItem AS AssembledShopFloorItem,
  u.AssembledSerialNumber AS AssembledSerialNumber,
  u.AssembledMfrSerialNumber AS AssembledMfrSerialNumber,
  u.AssembledBatch AS AssembledBatch,
  u.ReferenceDesignatorValue AS ReferenceDesignatorValue,
  u.ReplacedShopFloorItem AS ReplacedShopFloorItem,
  u.ReplacedSerialNumber AS ReplacedSerialNumber,
  u.ReplacedBatch AS ReplacedBatch,
  cast('' as mpe_exchanged_material) AS SubstitutedProduct,
  cast('' as maktx) AS SubstitutedProductName,
  u.AlternativeItemGroup AS AlternativeItemGroup,
  u.StorageLocation AS StorageLocation,
  u.InventoryUsabilityCode AS InventoryUsabilityCode,
  u.CompDisassemblyPermanence AS CompDisassemblyPermanence,
  u.MaterialComponentHasReltdComp AS MaterialComponentHasReltdComp,
  cast(0 as mpe_buyoff_step) AS MfgBuyOffInternalID,
  cast(0 as mpe_buyoff_step) AS MfgBuyOffReferencedStep,
  cast('' as mpe_buyoffsqnc_desc) AS MfgBuyOffAdhocStepDescription,
  cast('000000000000000' as mpe_buyoff_cycle_id preserving type) AS MfgBuyOffCycle,
  cast('00000000' as hrobjid preserving type) AS RespyMgmtTeamID,
  cast('' as rsm_de_function) AS RespyMgmtFunction,
  u.BusinessProcessConfirmedQty AS BusinessProcessConfirmedQty,
  u.ProductionUnit AS ProductionUnit,
  u.OpActyActualDurnInSeconds AS OpActyActualDurnInSeconds,
  u.PostingIsRetroactive AS PostingIsRetroactive,
  u.MfgActionReasonCodeGroupCtlg AS MfgActionReasonCodeGroupCtlg,
  u.MfgActionReasonCodeGroup AS MfgActionReasonCodeGroup,
  u.ManufacturingActionReasonCode AS ManufacturingActionReasonCode,
  note.MfgExecutionDocumentNote AS MfgExecutionDocumentNote,
  u.Equipment AS Equipment,
  u.SystemMessageNumber AS SystemMessageNumber,
  u.SystemMessageIdentification AS SystemMessageIdentification,
  u.MfgExecHistMsgVarblField1 AS MfgExecHistMsgVarblField1,
  u.MfgExecHistMsgVarblField2 AS MfgExecHistMsgVarblField2,
  u.MfgExecHistMsgVarblField3 AS MfgExecHistMsgVarblField3,
  u.MfgExecHistMsgVarblField4 AS MfgExecHistMsgVarblField4,
  cast('' as qdefectid) AS Defect,
  cast('' as mpe_file_name) AS MfgProcgExecAttachmentName,
  dats_tims_to_tstmp(Defect.CreationDate,Defect.CreationTime,abap_system_timezone( $session.client,'NULL' ), $session.client, 'NULL' ) as EventDateTime AS clientNULLasEventDateTime,
  dats_tims_to_tstmp(Defect.CreationDate,Defect.CreationTime,abap_system_timezone( $session.client,'NULL' ), $session.client, 'NULL' ) as CreationDateTime AS clientNULLasCreationDateTime,
  cast('' as mpe_buyoffsqnc_desc ) AS MfgBuyoffDescription
FROM P_MfgExecEventHistOpActy AS u
-- UNION ALL with additional select branch(es): I_MfgBuyOffActionHistory
;