I_ProcOrdOpsMgmtAllOperations

DDL: I_PROCORDOPSMGMTALLOPERATIONS SQL: IPRCORDOPALLOPS Type: view COMPOSITE Package: VDM_PP_PROC_ORD_MNG

Process Order Operations All Operations

I_ProcOrdOpsMgmtAllOperations is a Composite CDS View that provides data about "Process Order Operations All Operations" in SAP S/4HANA. It reads from 2 data sources (P_ProcOrdOperationWithStatus, P_ProcOrdOperationWithStatus) and exposes 36 fields with key fields OrderInternalBillOfOperations, OrderOperationInternalID, OrderIntBillOfOperationsItem. It has 6 associations to related views. Part of development package VDM_PP_PROC_ORD_MNG.

Data Sources (2)

SourceAliasJoin Type
P_ProcOrdOperationWithStatus _Operation from
P_ProcOrdOperationWithStatus _RelatedOperation inner

Associations (6)

CardinalityTargetAliasCondition
[0..1] P_NmbrOfProcOrdOpValidPhases _OpPhaseCount $projection.OrderInternalBillOfOperations = _OpPhaseCount.MfgOrderInternalID and $projection.OrderIntBillOfOperationsItem = _OpPhaseCount.OrderIntBillOfOperationsItem and $projection.ProcessOrder = _OpPhaseCount.ProcessOrder and $projection.ProductionPlant = _OpPhaseCount.ProductionPlant and $projection.ProductionSupervisor = _OpPhaseCount.ProductionSupervisor
[0..1] P_ProcOrdOpCompIssAggrgn _OpCompIss $projection.OrderInternalBillOfOperations = _OpCompIss.OrderInternalBillOfOperations and $projection.OrderIntBillOfOperationsItem = _OpCompIss.OrderIntBillOfOperationsItem and $projection.ProcessOrder = _OpCompIss.ProcessOrder and $projection.ProductionPlant = _OpCompIss.ProductionPlant and $projection.ProductionSupervisor = _OpCompIss.ProductionSupervisor
[0..1] P_ProcOrdOpScrapIssAggrgn _OpScrapIss $projection.OrderInternalBillOfOperations = _OpScrapIss.OrderInternalBillOfOperations and $projection.OrderIntBillOfOperationsItem = _OpScrapIss.OrderIntBillOfOpItemOfPhase and $projection.ProcessOrder = _OpScrapIss.ProcessOrder and $projection.ProductionPlant = _OpScrapIss.ProductionPlant and $projection.ProductionSupervisor = _OpScrapIss.ProductionSupervisor
[0..1] P_ProcOrdOpInspLotIssuesAggrgn _OpInspLotsIss $projection.OrderInternalBillOfOperations = _OpInspLotsIss.OrderInternalBillOfOperations and $projection.OrderIntBillOfOperationsItem = _OpInspLotsIss.OrderIntBillOfOpItemOfPhase and $projection.ProcessOrder = _OpInspLotsIss.ProcessOrder and $projection.ProductionPlant = _OpInspLotsIss.ProductionPlant and $projection.ProductionSupervisor = _OpInspLotsIss.ProductionSupervisor
[1..1] I_OrderItem afpo $projection.ProcessOrder = afpo.OrderID and afpo.OrderItem = '0001'
[1..1] E_ProcessOrderOperation _Extension $projection.OrderInternalBillOfOperations = _Extension.OrderInternalID and $projection.OrderIntBillOfOperationsItem = _Extension.OrderOperationInternalID

Annotations (11)

NameValueLevelField
AbapCatalog.sqlViewName IPRCORDOPALLOPS view
AbapCatalog.compiler.compareFilter true view
AbapCatalog.preserveKey true view
AccessControl.authorizationCheck #CHECK view
EndUserText.label Process Order Operations All Operations view
ObjectModel.usageType.serviceQuality #D view
ObjectModel.usageType.sizeCategory #XL view
ObjectModel.usageType.dataClass #MIXED view
ClientHandling.algorithm #SESSION_VARIABLE view
VDM.viewType #COMPOSITE view
AccessControl.personalData.blocking #NOT_REQUIRED view

Fields (36)

KeyFieldSource TableSource FieldDescription
KEY OrderInternalBillOfOperations P_ProcOrdOperationWithStatus MfgOrderInternalID
KEY OrderOperationInternalID P_ProcOrdOperationWithStatus OrderOperationInternalID
KEY OrderIntBillOfOperationsItem P_ProcOrdOperationWithStatus OrderOperationInternalID
ProcessOrder P_ProcOrdOperationWithStatus ManufacturingOrder Order
OperationText
ManufacturingOrderSequence P_ProcOrdOperationWithStatus ManufacturingOrderSequence
ManufacturingOrderCategory P_ProcOrdOperationWithStatus ManufacturingOrderCategory
ManufacturingOrderType P_ProcOrdOperationWithStatus ManufacturingOrderType
ProductionPlant P_ProcOrdOperationWithStatus ProductionPlant Prod plnt
ProductionSupervisor P_ProcOrdOperationWithStatus ProductionSupervisor Prodn Supervisor
MRPController P_ProcOrdOperationWithStatus MRPController MRP Controller
TotNmbrOfProcOrdOpConfdPhases _OpPhaseCount TotNmbrOfProcOrdOpConfdPhases
TotNmbrOfProcOrdOpPhases _OpPhaseCount TotNmbrOfProcOrdOpPhases
ProcOrdOpProgressPercent
NmbrOfInterruptedProcOrdPhases 0
OperationIsInterrupted P_ProcOrdOperationWithStatus OperationIsInterrupted
WorkCenterInternalID P_ProcOrdOperationWithStatus WorkCenterInternalID Work Center
WorkCenter P_ProcOrdOperationWithStatus WorkCenter Work Center
WorkCenterText P_ProcOrdOperationWithStatus WorkCenterText Work Center Text
OperationUnit P_ProcOrdOperationWithStatus OperationUnit Act/op UoM
OpPlannedTotalQuantity P_ProcOrdOperationWithStatus OpPlannedTotalQuantity
Material P_ProcOrdOperationWithStatus Material Vehicle Model
MaterialName P_ProcOrdOperationWithStatus MaterialName Material Description
ProcOrdOpSchedldStartDateTime P_ProcOrdOperationWithStatus ProcOrdOpSchedldStartDateTime
ProcOrdOpSchedldEndDateTime P_ProcOrdOperationWithStatus ProcOrdOpSchedldEndDateTime
ProcOrdOpActualStartDateTime P_ProcOrdOperationWithStatus ProcOrdOpActualStartDateTime
ProcOrdOpActualEndDateTime P_ProcOrdOperationWithStatus ProcOrdOpActualEndDateTime
PlannedActualStartDateDvtnDurn P_ProcOrdOperationWithStatus PlannedActualStartDateDvtnDurn
PlannedCurrentStrtDateDvtnDurn P_ProcOrdOperationWithStatus PlannedCurrentStrtDateDvtnDurn
PlannedActualEndDateDvtnDurn P_ProcOrdOperationWithStatus PlannedActualEndDateDvtnDurn
PlannedCurrentEndDateDvtnDurn P_ProcOrdOperationWithStatus PlannedCurrentEndDateDvtnDurn
OperationIsConfirmed P_ProcOrdOperationWithStatus OperationIsConfirmed
ProcOrdOpCompAvailyStatusCode
MfgOrderOperationIsPhase P_ProcOrdOperationWithStatus MfgOrderOperationIsPhase
StockSegment afpo StockSegment Stock Segment
_ProcOrdMgmtOp _ProcOrdMgmtOp

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 I_ProcOrdOpsMgmtAllOperations.
-- 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: IPRCORDOPALLOPS

CREATE VIEW I_ProcOrdOpsMgmtAllOperations AS
SELECT
  _Operation.MfgOrderInternalID AS OrderInternalBillOfOperations,
  _Operation.OrderOperationInternalID AS OrderOperationInternalID,
  _RelatedOperation.OrderOperationInternalID AS OrderIntBillOfOperationsItem,
  _RelatedOperation.ManufacturingOrder AS ProcessOrder,
  cast(_RelatedOperation.ManufacturingOrderOperation as text4 preserving type ) AS OperationText,
  _RelatedOperation.ManufacturingOrderSequence AS ManufacturingOrderSequence,
  _RelatedOperation.ManufacturingOrderCategory AS ManufacturingOrderCategory,
  _RelatedOperation.ManufacturingOrderType AS ManufacturingOrderType,
  _RelatedOperation.ProductionPlant AS ProductionPlant,
  _RelatedOperation.ProductionSupervisor AS ProductionSupervisor,
  _RelatedOperation.MRPController AS MRPController,
  _OpPhaseCount.TotNmbrOfProcOrdOpConfdPhases AS TotNmbrOfProcOrdOpConfdPhases,
  _OpPhaseCount.TotNmbrOfProcOrdOpPhases AS TotNmbrOfProcOrdOpPhases,
  '000' AS ProcOrdOpProgressPercent,
  0 AS NmbrOfInterruptedProcOrdPhases,
  _RelatedOperation.OperationIsInterrupted AS OperationIsInterrupted,
  _RelatedOperation.WorkCenterInternalID AS WorkCenterInternalID,
  _RelatedOperation.WorkCenter AS WorkCenter,
  _RelatedOperation.WorkCenterText AS WorkCenterText,
  _RelatedOperation.OperationUnit AS OperationUnit,
  _RelatedOperation.OpPlannedTotalQuantity AS OpPlannedTotalQuantity,
  _RelatedOperation.Material AS Material,
  _RelatedOperation.MaterialName AS MaterialName,
  _RelatedOperation.ProcOrdOpSchedldStartDateTime AS ProcOrdOpSchedldStartDateTime,
  _RelatedOperation.ProcOrdOpSchedldEndDateTime AS ProcOrdOpSchedldEndDateTime,
  _RelatedOperation.ProcOrdOpActualStartDateTime AS ProcOrdOpActualStartDateTime,
  _RelatedOperation.ProcOrdOpActualEndDateTime AS ProcOrdOpActualEndDateTime,
  _RelatedOperation.PlannedActualStartDateDvtnDurn AS PlannedActualStartDateDvtnDurn,
  _RelatedOperation.PlannedCurrentStrtDateDvtnDurn AS PlannedCurrentStrtDateDvtnDurn,
  _RelatedOperation.PlannedActualEndDateDvtnDurn AS PlannedActualEndDateDvtnDurn,
  _RelatedOperation.PlannedCurrentEndDateDvtnDurn AS PlannedCurrentEndDateDvtnDurn,
  _RelatedOperation.OperationIsConfirmed AS OperationIsConfirmed,
  coalesce(_OpCompIss.ProcOrdOpCompAvailyStatusCode,'04') AS ProcOrdOpCompAvailyStatusCode,
  _RelatedOperation.MfgOrderOperationIsPhase AS MfgOrderOperationIsPhase,
  afpo.StockSegment AS StockSegment
FROM P_ProcOrdOperationWithStatus AS _Operation
INNER JOIN P_ProcOrdOperationWithStatus AS _RelatedOperation ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN P_NmbrOfProcOrdOpValidPhases AS _OpPhaseCount ON OrderInternalBillOfOperations = _OpPhaseCount.MfgOrderInternalID AND OrderIntBillOfOperationsItem = _OpPhaseCount.OrderIntBillOfOperationsItem AND ProcessOrder = _OpPhaseCount.ProcessOrder AND ProductionPlant = _OpPhaseCount.ProductionPlant AND ProductionSupervisor = _OpPhaseCount.ProductionSupervisor  -- association [0..1]
LEFT OUTER JOIN P_ProcOrdOpCompIssAggrgn AS _OpCompIss ON OrderInternalBillOfOperations = _OpCompIss.OrderInternalBillOfOperations AND OrderIntBillOfOperationsItem = _OpCompIss.OrderIntBillOfOperationsItem AND ProcessOrder = _OpCompIss.ProcessOrder AND ProductionPlant = _OpCompIss.ProductionPlant AND ProductionSupervisor = _OpCompIss.ProductionSupervisor  -- association [0..1]
LEFT OUTER JOIN P_ProcOrdOpScrapIssAggrgn AS _OpScrapIss ON OrderInternalBillOfOperations = _OpScrapIss.OrderInternalBillOfOperations AND OrderIntBillOfOperationsItem = _OpScrapIss.OrderIntBillOfOpItemOfPhase AND ProcessOrder = _OpScrapIss.ProcessOrder AND ProductionPlant = _OpScrapIss.ProductionPlant AND ProductionSupervisor = _OpScrapIss.ProductionSupervisor  -- association [0..1]
LEFT OUTER JOIN P_ProcOrdOpInspLotIssuesAggrgn AS _OpInspLotsIss ON OrderInternalBillOfOperations = _OpInspLotsIss.OrderInternalBillOfOperations AND OrderIntBillOfOperationsItem = _OpInspLotsIss.OrderIntBillOfOpItemOfPhase AND ProcessOrder = _OpInspLotsIss.ProcessOrder AND ProductionPlant = _OpInspLotsIss.ProductionPlant AND ProductionSupervisor = _OpInspLotsIss.ProductionSupervisor  -- association [0..1]
LEFT OUTER JOIN I_OrderItem AS afpo ON ProcessOrder = afpo.OrderID AND afpo.OrderItem = '0001'  -- association [1..1]
LEFT OUTER JOIN E_ProcessOrderOperation AS _Extension ON OrderInternalBillOfOperations = _Extension.OrderInternalID AND OrderIntBillOfOperationsItem = _Extension.OrderOperationInternalID  -- association [1..1]
;