P_ProcgExecOperationActivity

DDL: P_PROCGEXECOPERATIONACTIVITY SQL: PMPEOAEXEC Type: view COMPOSITE

P_ProcgExecOperationActivity is a Composite CDS View in SAP S/4HANA. It reads from 4 data sources (I_MfgOrderBasic, I_OrderOperationDateTime, I_OpActyInstanceStatusBasic, I_ExecRlvtOAInstceOANElmnt) and exposes 61 fields with key fields OpActyNtwkInstance, OpActyNtwkElement. It has 6 associations to related views.

Data Sources (4)

SourceAliasJoin Type
I_MfgOrderBasic LogisticsOrder inner
I_OrderOperationDateTime MfgOrderOperation inner
I_OpActyInstanceStatusBasic OpActyInstanceStatusBasic from
I_ExecRlvtOAInstceOANElmnt OpActyInstceOpActyNtwkElmnt inner

Associations (6)

CardinalityTargetAliasCondition
[1..1] I_Plant _ProductionPlant $projection.ProductionPlant = _ProductionPlant.Plant
[0..*] I_MfgOrderDocInfoRecdObjLink _MfgOrderDocInfoRecdObjLink $projection.ManufacturingOrder = _MfgOrderDocInfoRecdObjLink.ManufacturingOrder
[0..*] I_MfgOrderOpDocInfoRecdObjLink _MfgOrderOpDocInfoRecdObjLink $projection.ManufacturingOrder = _MfgOrderOpDocInfoRecdObjLink.ManufacturingOrder and $projection.OrderOperationInternalID = _MfgOrderOpDocInfoRecdObjLink.OrderOperationInternalID
[0..*] I_OpActyDocInfoRecdObjLink _OpActyDocInfoRecdObjLink $projection.OpActyNtwkInstance = _OpActyDocInfoRecdObjLink.OpActyNtwkInstance and $projection.OpActyNtwkElement = _OpActyDocInfoRecdObjLink.OpActyNtwkElement
[0..1] I_WorkCenterBySemanticKey _WorkCenterBySemanticKey $projection.workcenter = _WorkCenterBySemanticKey.WorkCenter and $projection.ProductionPlant = _WorkCenterBySemanticKey.Plant
[0..*] I_OpActyMainWrkCtrMfgUser _OpActyMainWrkCtrMfgUser $projection.OpActyNtwkInstance = _OpActyMainWrkCtrMfgUser.OpActyNtwkInstance and $projection.OpActyNtwkElement = _OpActyMainWrkCtrMfgUser.OpActyNtwkElement

Annotations (9)

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

Fields (61)

KeyFieldSource TableSource FieldDescription
KEY OpActyNtwkInstance I_ExecRlvtOAInstceOANElmnt OpActyNtwkInstance Instance ID
KEY OpActyNtwkElement I_ExecRlvtOAInstceOANElmnt OpActyNtwkElement Element Number
OperationActivityNetwork I_ExecRlvtOAInstceOANElmnt OperationActivityNetwork
OpActyNtwkVersionCounter I_ExecRlvtOAInstceOANElmnt OpActyNtwkVersionCounter
OpPlannedScrapQuantity I_ExecRlvtOAInstceOANElmnt OpPlannedScrapQuantity
OpPlannedYieldQuantity I_ExecRlvtOAInstceOANElmnt OpPlannedYieldQuantity
ProductionUnit I_ExecRlvtOAInstceOANElmnt ProductionUnit
OpActyExpdExecDurnInSeconds I_ExecRlvtOAInstceOANElmnt OpActyExpdExecDurnInSeconds
OpActyExpdExecLaborDurnInSecs I_ExecRlvtOAInstceOANElmnt OpActyExpdExecLaborDurnInSecs
OrderInternalID I_ExecRlvtOAInstceOANElmnt OrderInternalID Plan No.f.Oper.
OrderOperationInternalID I_ExecRlvtOAInstceOANElmnt OrderOperationInternalID
StatusAndActionSchema I_ExecRlvtOAInstceOANElmnt StatusAndActionSchema
StatusAndActionSchemaStatus I_OpActyInstanceStatusBasic StatusAndActionSchemaStatus Status
OpActyConfIsSFIBased
OpActyNtwkElementExternalID I_ExecRlvtOAInstceOANElmnt OpActyNtwkElementExternalID Op. Activity
OperationActivity I_ExecRlvtOAInstceOANElmnt OperationActivity Operation Activity
OperationActyVersionCounter I_ExecRlvtOAInstceOANElmnt OperationActyVersionCounter OA Version
OpActyNtwkElementElement I_ExecRlvtOAInstceOANElmnt OpActyNtwkElementElement Operation Activity
OpActyNtwkElementElmntVersCntr I_ExecRlvtOAInstceOANElmnt OpActyNtwkElementElmntVersCntr OA Version
OpActyNtwkSegmentType I_ExecRlvtOAInstceOANElmnt OpActyNtwkSegmentType
OANElementDisplaySqncNumber I_ExecRlvtOAInstceOANElmnt OANElementDisplaySqncNumber
SASStatusCategory
OpActualExecutionStartDate I_OrderOperationDateTime OpActualExecutionStartDate Execution Start Date
OpActualExecutionStartTime I_OrderOperationDateTime OpActualExecutionStartTime
OpLtstSchedldExecStrtDte I_OrderOperationDateTime OpLtstSchedldExecStrtDte Latest start
OpLtstSchedldExecStrtTme I_OrderOperationDateTime OpLtstSchedldExecStrtTme
OpLtstSchedldProcgStrtDte I_OrderOperationDateTime OpLtstSchedldProcgStrtDte
OpLtstSchedldProcgStrtTme I_OrderOperationDateTime OpLtstSchedldProcgStrtTme
OpLtstSchedldTrdwnStrtDte I_OrderOperationDateTime OpLtstSchedldTrdwnStrtDte
OpLtstSchedldTrdwnStrtTme I_OrderOperationDateTime OpLtstSchedldTrdwnStrtTme
ManufacturingOrder I_ExecRlvtOAInstceOANElmnt ManufacturingOrder Order
ManufacturingOrderText I_MfgOrderBasic ManufacturingOrderText
ManufacturingOrderImportance I_MfgOrderBasic ManufacturingOrderImportance
ManufacturingOrderOperation I_OrderOperationDateTime Operation Transaction
MfgOrderOperationText I_OrderOperationDateTime OperationText Description
MfgOrderOperationOrSubOp I_OrderOperationDateTime Operation Transaction
ProductionPlant I_OrderOperationDateTime Plant Valuation Area
ProductionPlantName I_OrderOperationDateTime PlantName Plant Name
WorkCenterInternalID I_OrderOperationDateTime WorkCenterInternalID Work Center
WorkCenterTypeCode I_OrderOperationDateTime WorkCenterTypeCode Object Type
WorkCenter
WorkCenterText
LaborTrackingIsRequired
OpPlannedTotalQuantity I_OrderOperationDateTime OpPlannedTotalQuantity
OperationUnit I_OrderOperationDateTime OperationUnit Act/op UoM
_OpActyNtwkInstance I_ExecRlvtOAInstceOANElmnt _OpActyNtwkInstance
_SASSchema I_ExecRlvtOAInstceOANElmnt _SASSchema
_SASStatus I_OpActyInstanceStatusBasic _SASStatus
_OpActyNtwkInternalId I_ExecRlvtOAInstceOANElmnt _OpActyNtwkInternalId
_OperationActivityNetwork I_ExecRlvtOAInstceOANElmnt _OperationActivityNetwork
_OrderInternalID I_ExecRlvtOAInstceOANElmnt _OrderInternalID
_MfgOrder I_ExecRlvtOAInstceOANElmnt _MfgOrder
_OperationActivityText I_ExecRlvtOAInstceOANElmnt _OperationActivityText
_ProductionPlant _ProductionPlant
_WorkCenter I_OrderOperationDateTime _WorkCenter
_WorkCenterType _WorkCenterType
_WorkCenterBySemanticKey _WorkCenterBySemanticKey
_MfgOrderDocInfoRecdObjLink _MfgOrderDocInfoRecdObjLink
_MfgOrderOpDocInfoRecdObjLink _MfgOrderOpDocInfoRecdObjLink
_OpActyDocInfoRecdObjLink _OpActyDocInfoRecdObjLink
_OpActyMainWrkCtrMfgUser _OpActyMainWrkCtrMfgUser

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_ProcgExecOperationActivity.
-- 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: PMPEOAEXEC

CREATE VIEW P_ProcgExecOperationActivity AS
SELECT
  OpActyInstceOpActyNtwkElmnt.OpActyNtwkInstance AS OpActyNtwkInstance,
  OpActyInstceOpActyNtwkElmnt.OpActyNtwkElement AS OpActyNtwkElement,
  OpActyInstceOpActyNtwkElmnt.OperationActivityNetwork AS OperationActivityNetwork,
  OpActyInstceOpActyNtwkElmnt.OpActyNtwkVersionCounter AS OpActyNtwkVersionCounter,
  OpActyInstceOpActyNtwkElmnt.OpPlannedScrapQuantity AS OpPlannedScrapQuantity,
  OpActyInstceOpActyNtwkElmnt.OpPlannedYieldQuantity AS OpPlannedYieldQuantity,
  OpActyInstceOpActyNtwkElmnt.ProductionUnit AS ProductionUnit,
  OpActyInstceOpActyNtwkElmnt.OpActyExpdExecDurnInSeconds AS OpActyExpdExecDurnInSeconds,
  OpActyInstceOpActyNtwkElmnt.OpActyExpdExecLaborDurnInSecs AS OpActyExpdExecLaborDurnInSecs,
  OpActyInstceOpActyNtwkElmnt.OrderInternalID AS OrderInternalID,
  OpActyInstceOpActyNtwkElmnt.OrderOperationInternalID AS OrderOperationInternalID,
  OpActyInstceOpActyNtwkElmnt.StatusAndActionSchema AS StatusAndActionSchema,
  OpActyInstanceStatusBasic.StatusAndActionSchemaStatus AS StatusAndActionSchemaStatus,
  cast(OpActyInstceOpActyNtwkElmnt.OpActyConfIsSFIBased as boolean preserving type) AS OpActyConfIsSFIBased,
  OpActyInstceOpActyNtwkElmnt.OpActyNtwkElementExternalID AS OpActyNtwkElementExternalID,
  OpActyInstceOpActyNtwkElmnt.OperationActivity AS OperationActivity,
  OpActyInstceOpActyNtwkElmnt.OperationActyVersionCounter AS OperationActyVersionCounter,
  OpActyInstceOpActyNtwkElmnt.OpActyNtwkElementElement AS OpActyNtwkElementElement,
  OpActyInstceOpActyNtwkElmnt.OpActyNtwkElementElmntVersCntr AS OpActyNtwkElementElmntVersCntr,
  OpActyInstceOpActyNtwkElmnt.OpActyNtwkSegmentType AS OpActyNtwkSegmentType,
  OpActyInstceOpActyNtwkElmnt.OANElementDisplaySqncNumber AS OANElementDisplaySqncNumber,
  OpActyInstanceStatusBasic._SASStatus.SASStatusCategory AS SASStatusCategory,
  MfgOrderOperation.OpActualExecutionStartDate AS OpActualExecutionStartDate,
  MfgOrderOperation.OpActualExecutionStartTime AS OpActualExecutionStartTime,
  MfgOrderOperation.OpLtstSchedldExecStrtDte AS OpLtstSchedldExecStrtDte,
  MfgOrderOperation.OpLtstSchedldExecStrtTme AS OpLtstSchedldExecStrtTme,
  MfgOrderOperation.OpLtstSchedldProcgStrtDte AS OpLtstSchedldProcgStrtDte,
  MfgOrderOperation.OpLtstSchedldProcgStrtTme AS OpLtstSchedldProcgStrtTme,
  MfgOrderOperation.OpLtstSchedldTrdwnStrtDte AS OpLtstSchedldTrdwnStrtDte,
  MfgOrderOperation.OpLtstSchedldTrdwnStrtTme AS OpLtstSchedldTrdwnStrtTme,
  OpActyInstceOpActyNtwkElmnt.ManufacturingOrder AS ManufacturingOrder,
  LogisticsOrder.ManufacturingOrderText AS ManufacturingOrderText,
  LogisticsOrder.ManufacturingOrderImportance AS ManufacturingOrderImportance,
  MfgOrderOperation.Operation AS ManufacturingOrderOperation,
  MfgOrderOperation.OperationText AS MfgOrderOperationText,
  MfgOrderOperation.Operation AS MfgOrderOperationOrSubOp,
  MfgOrderOperation.Plant AS ProductionPlant,
  MfgOrderOperation.PlantName AS ProductionPlantName,
  MfgOrderOperation.WorkCenterInternalID AS WorkCenterInternalID,
  MfgOrderOperation.WorkCenterTypeCode AS WorkCenterTypeCode,
  MfgOrderOperation._WorkCenter.WorkCenter AS WorkCenter,
  MfgOrderOperation._WorkCenter._Text[1: Language=$session.system_language].WorkCenterText AS WorkCenterText,
  MfgOrderOperation._WorkCenter.LaborTrackingIsRequired AS LaborTrackingIsRequired,
  MfgOrderOperation.OpPlannedTotalQuantity AS OpPlannedTotalQuantity,
  MfgOrderOperation.OperationUnit AS OperationUnit,
  OpActyInstceOpActyNtwkElmnt._OpActyNtwkInstance AS _OpActyNtwkInstance,
  OpActyInstceOpActyNtwkElmnt._SASSchema AS _SASSchema,
  OpActyInstanceStatusBasic._SASStatus AS _SASStatus,
  OpActyInstceOpActyNtwkElmnt._OpActyNtwkInternalId AS _OpActyNtwkInternalId,
  OpActyInstceOpActyNtwkElmnt._OperationActivityNetwork AS _OperationActivityNetwork,
  OpActyInstceOpActyNtwkElmnt._OrderInternalID AS _OrderInternalID,
  OpActyInstceOpActyNtwkElmnt._MfgOrder AS _MfgOrder,
  OpActyInstceOpActyNtwkElmnt._OperationActivityText AS _OperationActivityText,
  MfgOrderOperation._WorkCenter AS _WorkCenter
FROM I_OpActyInstanceStatusBasic AS OpActyInstanceStatusBasic
INNER JOIN I_ExecRlvtOAInstceOANElmnt AS OpActyInstceOpActyNtwkElmnt ON /* join condition not captured in parsed metadata */
INNER JOIN I_OrderOperationDateTime AS MfgOrderOperation ON /* join condition not captured in parsed metadata */
INNER JOIN I_MfgOrderBasic AS LogisticsOrder ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN I_Plant AS _ProductionPlant ON ProductionPlant = _ProductionPlant.Plant  -- association [1..1]
LEFT OUTER JOIN I_MfgOrderDocInfoRecdObjLink AS _MfgOrderDocInfoRecdObjLink ON ManufacturingOrder = _MfgOrderDocInfoRecdObjLink.ManufacturingOrder  -- association [0..*]
LEFT OUTER JOIN I_MfgOrderOpDocInfoRecdObjLink AS _MfgOrderOpDocInfoRecdObjLink ON ManufacturingOrder = _MfgOrderOpDocInfoRecdObjLink.ManufacturingOrder AND OrderOperationInternalID = _MfgOrderOpDocInfoRecdObjLink.OrderOperationInternalID  -- association [0..*]
LEFT OUTER JOIN I_OpActyDocInfoRecdObjLink AS _OpActyDocInfoRecdObjLink ON OpActyNtwkInstance = _OpActyDocInfoRecdObjLink.OpActyNtwkInstance AND OpActyNtwkElement = _OpActyDocInfoRecdObjLink.OpActyNtwkElement  -- association [0..*]
LEFT OUTER JOIN I_WorkCenterBySemanticKey AS _WorkCenterBySemanticKey ON workcenter = _WorkCenterBySemanticKey.WorkCenter AND ProductionPlant = _WorkCenterBySemanticKey.Plant  -- association [0..1]
LEFT OUTER JOIN I_OpActyMainWrkCtrMfgUser AS _OpActyMainWrkCtrMfgUser ON OpActyNtwkInstance = _OpActyMainWrkCtrMfgUser.OpActyNtwkInstance AND OpActyNtwkElement = _OpActyMainWrkCtrMfgUser.OpActyNtwkElement  -- association [0..*]
;