P_ProcOrdMgmtOperationCalc

DDL: P_PROCORDMGMTOPERATIONCALC SQL: PPROCORDOPCALC Type: view COMPOSITE Package: VDM_PP_PROC_ORD_MNG

Process Order Operation Calculations

P_ProcOrdMgmtOperationCalc is a Composite CDS View that provides data about "Process Order Operation Calculations" in SAP S/4HANA. It reads from 1 data source (P_ProcOrdOperationWithStatus) and exposes 152 fields with key fields OrderInternalBillOfOperations, OrderIntBillOfOperationsItem. It has 1 association to related views. Part of development package VDM_PP_PROC_ORD_MNG.

Data Sources (1)

SourceAliasJoin Type
P_ProcOrdOperationWithStatus P_ProcOrdOperationWithStatus from

Associations (1)

CardinalityTargetAliasCondition
[1..1] I_OrderItem afpo $projection.ProcessOrder = afpo.OrderID and afpo.OrderItem = '0001'

Annotations (10)

NameValueLevelField
AbapCatalog.sqlViewName PPROCORDOPCALC view
AbapCatalog.compiler.compareFilter true view
AbapCatalog.preserveKey true 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 #COMPOSITE view
VDM.private true view

Fields (152)

KeyFieldSource TableSource FieldDescription
KEY OrderInternalBillOfOperations MfgOrderInternalID
KEY OrderIntBillOfOperationsItem OrderOperationInternalID
ManufacturingOrder ManufacturingOrder Order
ProcessOrder ManufacturingOrder Order
ManufacturingOrderSequence ManufacturingOrderSequence
ManufacturingOrderOperation ManufacturingOrderOperation Activity
OperationText Activity
ManufacturingOrderSubOperation ManufacturingOrderSubOperation
ManufacturingOrderCategory ManufacturingOrderCategory
ManufacturingOrderType ManufacturingOrderType
ProductionPlant ProductionPlant Prod plnt
ProductionSupervisor ProductionSupervisor Prodn Supervisor
MRPController MRPController MRP Controller
ResponsiblePlannerGroup ResponsiblePlannerGroup
ProductConfiguration ProductConfiguration
InspectionLot InspectionLot Inspection Lot
ManufacturingOrderImportance ManufacturingOrderImportance
MfgOrderOperationText MfgOrderOperationText
OperationHasLongText OperationHasLongText
LongTextLanguageCode LongTextLanguageCode Language
OperationStandardTextCode OperationStandardTextCode Std Text Key
OperationIsToBeDeleted OperationIsToBeDeleted
MfgOrderOperationIsPhase MfgOrderOperationIsPhase
MfgOrderPhaseSuperiorOperation MfgOrderPhaseSuperiorOperation
ObjectInternalID ObjectInternalID Object number
OperationImportance OperationImportance
OperationIsCreated OperationIsCreated
OperationIsReleased OperationIsReleased
OperationIsPrinted OperationIsPrinted
OperationIsConfirmed OperationIsConfirmed
OperationIsPartiallyConfirmed OperationIsPartiallyConfirmed
OperationIsDeleted OperationIsDeleted
OperationIsTechlyCompleted OperationIsTechlyCompleted
OperationIsClosed OperationIsClosed
OperationIsScheduled OperationIsScheduled
OperationIsPartiallyDelivered OperationIsPartiallyDelivered
OperationIsDelivered OperationIsDelivered
OperationIsInterrupted OperationIsInterrupted
SuperiorOperationInternalID SuperiorOperationInternalID Sup. Op. Node
Plant Plant Valuation Area
WorkCenterInternalID WorkCenterInternalID Work Center
WorkCenterTypeCode WorkCenterTypeCode Object Type
WorkCenter WorkCenter Work Center
WorkCenterText WorkCenterText Work Center Text
CapacityInternalID CapacityInternalID Capacity ID
CapacityCategoryAllocation CapacityCategoryAllocation
OpErlstSchedldExecStrtDte OpErlstSchedldExecStrtDte Earl.start date
OpErlstSchedldExecStrtTme OpErlstSchedldExecStrtTme
OpErlstSchedldExecEndDte OpErlstSchedldExecEndDte EarliestEndDate
OpErlstSchedldExecEndTme OpErlstSchedldExecEndTme
OpLtstSchedldExecStrtDte OpLtstSchedldExecStrtDte Latest start
OpLtstSchedldExecStrtTme OpLtstSchedldExecStrtTme
OpLtstSchedldExecEndDte OpLtstSchedldExecEndDte Lat.finish date
OpLtstSchedldExecEndTme OpLtstSchedldExecEndTme
OperationConfirmedStartDate OperationConfirmedStartDate
OperationConfirmedEndDate OperationConfirmedEndDate
OpActualExecutionStartDate OpActualExecutionStartDate Execution Start Date
OpActualExecutionStartTime OpActualExecutionStartTime
OpActualExecutionEndDate OpActualExecutionEndDate Execution End Date
OpActualExecutionEndTime OpActualExecutionEndTime
ProcOrdOpSchedldStartDateTime ProcOrdOpSchedldStartDateTime
ProcOrdOpSchedldEndDateTime ProcOrdOpSchedldEndDateTime
ProcOrdOpActualStartDateTime ProcOrdOpActualStartDateTime
ProcOrdOpActualEndDateTime ProcOrdOpActualEndDateTime
OpActualProcessingStartDteTme OpActualProcessingStartDteTme
OpActualProcessingEndDateTime OpActualProcessingEndDateTime
PlannedCurrentStrtDateDvtnDurn PlannedCurrentStrtDateDvtnDurn
PlannedCurrentEndDateDvtnDurn PlannedCurrentEndDateDvtnDurn
PlannedActualStartDateDvtnDurn PlannedActualStartDateDvtnDurn
PlannedActualEndDateDvtnDurn PlannedActualEndDateDvtnDurn
OperationUnit OperationUnit Act/op UoM
OpPlannedTotalQuantity OpPlannedTotalQuantity
OpPlannedScrapQuantity OpPlannedScrapQuantity
OpPlannedYieldQuantity OpPlannedYieldQuantity
OpTotalConfirmedYieldQty OpTotalConfirmedYieldQty
OpTotalConfirmedScrapQty OpTotalConfirmedScrapQty
OperationConfirmedReworkQty OperationConfirmedReworkQty
ProductionUnit ProductionUnit
OpPlannedProcessingDurn
OrderIntBillOfOpItemOfPhase OrderIntBillOfOpItemOfPhase
OperationReferenceQuantity OperationReferenceQuantity Base Quantity
OpQtyToBaseQtyNmrtr OpQtyToBaseQtyNmrtr
OperationControlProfile OperationControlProfile Control Key
StandardWorkFormulaParamGroup StandardWorkFormulaParamGroup
WorkCenterStandardWorkQtyUnit1
WorkCenterStandardWorkQty1
CostCtrActivityType1 Activity Type
WorkCenterStandardWorkQtyUnit2
WorkCenterStandardWorkQty2
CostCtrActivityType2 Activity Type
WorkCenterStandardWorkQtyUnit3
WorkCenterStandardWorkQty3
CostCtrActivityType3 Activity Type
WorkCenterStandardWorkQtyUnit4
WorkCenterStandardWorkQty4
CostCtrActivityType4 Activity Type
WorkCenterStandardWorkQtyUnit5
WorkCenterStandardWorkQty5
CostCtrActivityType5 Activity Type
WorkCenterStandardWorkQtyUnit6
WorkCenterStandardWorkQty6
CostCtrActivityType6 Activity Type
OpWorkQuantityUnit1 OpWorkQuantityUnit1
OpWorkQuantityUnit2 OpWorkQuantityUnit2
OpWorkQuantityUnit3 OpWorkQuantityUnit3
OpWorkQuantityUnit4 OpWorkQuantityUnit4
OpWorkQuantityUnit5 OpWorkQuantityUnit5
OpWorkQuantityUnit6 OpWorkQuantityUnit6
OpConfirmedWorkQuantity1 OpConfirmedWorkQuantity1
OpConfirmedWorkQuantity2 OpConfirmedWorkQuantity2
OpConfirmedWorkQuantity3 OpConfirmedWorkQuantity3
OpConfirmedWorkQuantity4 OpConfirmedWorkQuantity4
OpConfirmedWorkQuantity5 OpConfirmedWorkQuantity5
OpConfirmedWorkQuantity6 OpConfirmedWorkQuantity6
ConfirmationIsNotPossible ConfirmationIsNotPossible
Material Material Vehicle Model
MaterialName MaterialName Material Description
ProcOrdConfIsAtHeader ProcOrdConfIsAtHeader
TodayDate
ProcessOrderHasNoLongText ProcessOrderHasNoLongText
OperationControlProfileName OperationControlProfileName
ProductionPlantName ProductionPlantName
ProductionSupervisorName ProductionSupervisorName
MRPControllerName MRPControllerName Controller name
ManufacturingOrderTypeName ManufacturingOrderTypeName
StockSegment afpo StockSegment Stock Segment
PlantTimeZone PlantTimeZone Time Zone
ScheduledBasicStartDate ScheduledBasicStartDate Sched. start
ScheduledBasicEndDate ScheduledBasicEndDate Sched. finish
_Language _Language
_LongText _LongText
_ManufacturingOrder _ManufacturingOrder
_MfgOrderCategory _MfgOrderCategory
_MfgOrderOpComponent _MfgOrderOpComponent
_MfgOrderOpDocInfoRecord _MfgOrderOpDocInfoRecord
_MfgOrderOperationConf _MfgOrderOperationConf
_MfgOrderOperationPRT _MfgOrderOperationPRT
_MfgOrderOpTriggerPoint _MfgOrderOpTriggerPoint
_MfgOrderSequence _MfgOrderSequence
_MfgOrderType _MfgOrderType
_MRPController _MRPController
_OperationStandardTextCode _OperationStandardTextCode
_OperationUnit _OperationUnit
_OrderInternalID _OrderInternalID
_Plant _Plant
_ProductionSupervisor _ProductionSupervisor
_ProductionUnit _ProductionUnit
_ResponsiblePlannerGroup _ResponsiblePlannerGroup
_SuperiorOperation _SuperiorOperation
_WorkCenter _WorkCenter
_WorkCenterType _WorkCenterType
_OperationControlProfile _OperationControlProfile

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_ProcOrdMgmtOperationCalc.
-- 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: PPROCORDOPCALC

CREATE VIEW P_ProcOrdMgmtOperationCalc AS
SELECT
  MfgOrderInternalID AS OrderInternalBillOfOperations,
  OrderOperationInternalID AS OrderIntBillOfOperationsItem,
  ManufacturingOrder,
  ManufacturingOrder AS ProcessOrder,
  ManufacturingOrderSequence,
  ManufacturingOrderOperation,
  cast(ManufacturingOrderOperation as text4 preserving type ) AS OperationText,
  ManufacturingOrderSubOperation,
  ManufacturingOrderCategory,
  ManufacturingOrderType,
  ProductionPlant,
  ProductionSupervisor,
  MRPController,
  ResponsiblePlannerGroup,
  ProductConfiguration,
  InspectionLot,
  ManufacturingOrderImportance,
  MfgOrderOperationText,
  OperationHasLongText,
  LongTextLanguageCode,
  OperationStandardTextCode,
  OperationIsToBeDeleted,
  MfgOrderOperationIsPhase,
  MfgOrderPhaseSuperiorOperation,
  ObjectInternalID,
  OperationImportance,
  OperationIsCreated,
  OperationIsReleased,
  OperationIsPrinted,
  OperationIsConfirmed,
  OperationIsPartiallyConfirmed,
  OperationIsDeleted,
  OperationIsTechlyCompleted,
  OperationIsClosed,
  OperationIsScheduled,
  OperationIsPartiallyDelivered,
  OperationIsDelivered,
  OperationIsInterrupted,
  SuperiorOperationInternalID,
  Plant,
  WorkCenterInternalID,
  WorkCenterTypeCode,
  WorkCenter,
  WorkCenterText,
  CapacityInternalID,
  CapacityCategoryAllocation,
  OpErlstSchedldExecStrtDte,
  OpErlstSchedldExecStrtTme,
  OpErlstSchedldExecEndDte,
  OpErlstSchedldExecEndTme,
  OpLtstSchedldExecStrtDte,
  OpLtstSchedldExecStrtTme,
  OpLtstSchedldExecEndDte,
  OpLtstSchedldExecEndTme,
  OperationConfirmedStartDate,
  OperationConfirmedEndDate,
  OpActualExecutionStartDate,
  OpActualExecutionStartTime,
  OpActualExecutionEndDate,
  OpActualExecutionEndTime,
  ProcOrdOpSchedldStartDateTime,
  ProcOrdOpSchedldEndDateTime,
  ProcOrdOpActualStartDateTime,
  ProcOrdOpActualEndDateTime,
  OpActualProcessingStartDteTme,
  OpActualProcessingEndDateTime,
  PlannedCurrentStrtDateDvtnDurn,
  PlannedCurrentEndDateDvtnDurn,
  PlannedActualStartDateDvtnDurn,
  PlannedActualEndDateDvtnDurn,
  OperationUnit,
  OpPlannedTotalQuantity,
  OpPlannedScrapQuantity,
  OpPlannedYieldQuantity,
  OpTotalConfirmedYieldQty,
  OpTotalConfirmedScrapQty,
  OperationConfirmedReworkQty,
  ProductionUnit,
  tstmp_seconds_between(ProcOrdOpSchedldStartDateTime, ProcOrdOpSchedldEndDateTime, 'INITIAL') AS OpPlannedProcessingDurn,
  OrderIntBillOfOpItemOfPhase,
  OperationReferenceQuantity,
  OpQtyToBaseQtyNmrtr,
  OperationControlProfile,
  StandardWorkFormulaParamGroup,
  cast(WorkCenterStandardWorkQtyUnit1 as pph_vge01 preserving type) AS WorkCenterStandardWorkQtyUnit1,
  cast(WorkCenterStandardWorkQty1 as vdm_vgw01 preserving type) AS WorkCenterStandardWorkQty1,
  cast(CostCtrActivityType1 as vdm_lar01 preserving type) AS CostCtrActivityType1,
  cast(WorkCenterStandardWorkQtyUnit2 as pph_vge02 preserving type) AS WorkCenterStandardWorkQtyUnit2,
  cast(WorkCenterStandardWorkQty2 as vdm_vgw02 preserving type) AS WorkCenterStandardWorkQty2,
  cast(CostCtrActivityType2 as vdm_lar02 preserving type) AS CostCtrActivityType2,
  cast(WorkCenterStandardWorkQtyUnit3 as pph_vge03 preserving type) AS WorkCenterStandardWorkQtyUnit3,
  cast(WorkCenterStandardWorkQty3 as vdm_vgw03 preserving type) AS WorkCenterStandardWorkQty3,
  cast(CostCtrActivityType3 as vdm_lar03 preserving type) AS CostCtrActivityType3,
  cast(WorkCenterStandardWorkQtyUnit4 as pph_vge04 preserving type) AS WorkCenterStandardWorkQtyUnit4,
  cast(WorkCenterStandardWorkQty4 as vdm_vgw04 preserving type) AS WorkCenterStandardWorkQty4,
  cast(CostCtrActivityType4 as vdm_lar04 preserving type) AS CostCtrActivityType4,
  cast(WorkCenterStandardWorkQtyUnit5 as pph_vge05 preserving type) AS WorkCenterStandardWorkQtyUnit5,
  cast(WorkCenterStandardWorkQty5 as vdm_vgw05 preserving type) AS WorkCenterStandardWorkQty5,
  cast(CostCtrActivityType5 as vdm_lar05 preserving type) AS CostCtrActivityType5,
  cast(WorkCenterStandardWorkQtyUnit6 as pph_vge06 preserving type) AS WorkCenterStandardWorkQtyUnit6,
  cast(WorkCenterStandardWorkQty6 as vdm_vgw06 preserving type) AS WorkCenterStandardWorkQty6,
  cast(CostCtrActivityType6 as vdm_lar06 preserving type) AS CostCtrActivityType6,
  OpWorkQuantityUnit1,
  OpWorkQuantityUnit2,
  OpWorkQuantityUnit3,
  OpWorkQuantityUnit4,
  OpWorkQuantityUnit5,
  OpWorkQuantityUnit6,
  OpConfirmedWorkQuantity1,
  OpConfirmedWorkQuantity2,
  OpConfirmedWorkQuantity3,
  OpConfirmedWorkQuantity4,
  OpConfirmedWorkQuantity5,
  OpConfirmedWorkQuantity6,
  ConfirmationIsNotPossible,
  Material,
  MaterialName,
  ProcOrdConfIsAtHeader,
  $session.system_date AS TodayDate,
  ProcessOrderHasNoLongText,
  OperationControlProfileName,
  ProductionPlantName,
  ProductionSupervisorName,
  MRPControllerName,
  ManufacturingOrderTypeName,
  afpo.StockSegment AS StockSegment,
  PlantTimeZone,
  ScheduledBasicStartDate,
  ScheduledBasicEndDate
FROM P_ProcOrdOperationWithStatus
LEFT OUTER JOIN I_OrderItem AS afpo ON ProcessOrder = afpo.OrderID AND afpo.OrderItem = '0001'  -- association [1..1]
;