P_OpActyConfirmationHistory

DDL: P_OPACTYCONFIRMATIONHISTORY SQL: PMPEOACHIST Type: view COMPOSITE

P_OpActyConfirmationHistory is a Composite CDS View in SAP S/4HANA. It reads from 2 data sources (I_OpActyConfirmationAction, I_OpActyConfirmation) and exposes 24 fields. It has 2 associations to related views.

Data Sources (2)

SourceAliasJoin Type
I_OpActyConfirmationAction act from
I_OpActyConfirmation oac inner

Associations (2)

CardinalityTargetAliasCondition
[1..1] I_OpActyNtwkInstanceBasic _OpActyNtwkInstanceBasic $projection.OpActyNtwkInstance = _OpActyNtwkInstanceBasic.OpActyNtwkInstance --
[1..1] I_OperationActivityInstance _OperationActivityInstance $projection.OpActyNtwkInstance = _OperationActivityInstance.OpActyNtwkInstance -- and $projection.OpActyNtwkElement = _OperationActivityInstance.OpActyNtwkElement

Annotations (9)

NameValueLevelField
AbapCatalog.sqlViewName PMPEOACHIST view
AbapCatalog.compiler.compareFilter true view
AccessControl.authorizationCheck #NOT_REQUIRED view
ClientHandling.algorithm #SESSION_VARIABLE view
ObjectModel.usageType.serviceQuality #B view
ObjectModel.usageType.sizeCategory #XL view
ObjectModel.usageType.dataClass #TRANSACTIONAL view
VDM.viewType #COMPOSITE view
VDM.private true view

Fields (24)

KeyFieldSource TableSource FieldDescription
OperationActivityConfirmation I_OpActyConfirmationAction OperationActivityConfirmation Document Number
MfgExecutionDocumentItem I_OpActyConfirmationAction MfgExecutionDocumentItem Item Number
OpActyConfirmationDateTime I_OpActyConfirmation OpActyConfirmationDateTime Executed On
CreatedByUser I_OpActyConfirmation CreatedByUser User Name
CreationDateTime I_OpActyConfirmation CreationDateTime Timestamp
SortField
ShopFloorItem
OpActyNtwkInstance I_OpActyConfirmation OpActyNtwkInstance Instance ID
OpActyNtwkElement I_OpActyConfirmation OpActyNtwkElement Element Number
StatusAndActionSchema
StatusAndActionSchema
MfgProcgExecActionasMfgProcgExecAction
ProductionUnit
OpActyActualDurnInSeconds I_OpActyConfirmation OpActyActualDurnInSeconds Actual Time (s)
WorkCenterBsdNetDurnInSeconds I_OpActyConfirmation WorkCenterBsdNetDurnInSeconds Duration (Op. Time)
CalendarBasedNetDurnInSeconds I_OpActyConfirmation CalendarBasedNetDurnInSeconds Duration (Work Days)
PostingIsRetroactive I_OpActyConfirmation PostingIsRetroactive Retroactive Action
MfgActionReasonCodeGroupCtlg I_OpActyConfirmationAction MfgActionReasonCodeGroupCtlg Catalog
MfgActionReasonCodeGroup I_OpActyConfirmationAction MfgActionReasonCodeGroup Code Group
ManufacturingActionReasonCode I_OpActyConfirmationAction ManufacturingActionReasonCode Water Hazard Cl.
SystemMessageIdentification
MfgExecHistMsgVarblField2 8
MfgExecHistMsgVarblField3 0
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_OpActyConfirmationHistory.
-- 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: PMPEOACHIST

CREATE VIEW P_OpActyConfirmationHistory AS
SELECT
  act.OperationActivityConfirmation AS OperationActivityConfirmation,
  act.MfgExecutionDocumentItem AS MfgExecutionDocumentItem,
  oac.OpActyConfirmationDateTime AS OpActyConfirmationDateTime,
  oac.CreatedByUser AS CreatedByUser,
  oac.CreationDateTime AS CreationDateTime,
  cast(500 as rszsort) AS SortField,
  cast(0 as mpe_sfi_id) AS ShopFloorItem,
  oac.OpActyNtwkInstance AS OpActyNtwkInstance,
  oac.OpActyNtwkElement AS OpActyNtwkElement,
  cast('' as mpe_sasname_type) AS StatusAndActionSchema,
  cast(oac.ConfirmationQuantityUnit as mpe_log_unit preserving type) AS ProductionUnit,
  oac.OpActyActualDurnInSeconds AS OpActyActualDurnInSeconds,
  oac.WorkCenterBsdNetDurnInSeconds AS WorkCenterBsdNetDurnInSeconds,
  oac.CalendarBasedNetDurnInSeconds AS CalendarBasedNetDurnInSeconds,
  oac.PostingIsRetroactive AS PostingIsRetroactive,
  act.MfgActionReasonCodeGroupCtlg AS MfgActionReasonCodeGroupCtlg,
  act.MfgActionReasonCodeGroup AS MfgActionReasonCodeGroup,
  act.ManufacturingActionReasonCode AS ManufacturingActionReasonCode,
  cast('MPE_EXEC_CONF' as msgid) AS SystemMessageIdentification,
  8 AS MfgExecHistMsgVarblField2,
  0 AS MfgExecHistMsgVarblField3,
  0 AS MfgExecHistMsgVarblField4
FROM I_OpActyConfirmationAction AS act
INNER JOIN I_OpActyConfirmation AS oac ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN I_OpActyNtwkInstanceBasic AS _OpActyNtwkInstanceBasic ON OpActyNtwkInstance = _OpActyNtwkInstanceBasic.OpActyNtwkInstance  -- association [1..1]
LEFT OUTER JOIN I_OperationActivityInstance AS _OperationActivityInstance ON OpActyNtwkInstance = _OperationActivityInstance.OpActyNtwkInstance  -- association [1..1]
;