C_OrderWorkCenterSchedule

DDL: C_ORDERWORKCENTERSCHEDULE Type: view_entity CONSUMPTION

Order Operation Work Center Schedule

C_OrderWorkCenterSchedule is a Consumption CDS View that provides data about "Order Operation Work Center Schedule" in SAP S/4HANA. It reads from 1 data source (P_ManageOperations) and exposes 70 fields with key fields OrderInternalBillOfOperations, OrderIntBillOfOperationsItem. It has 7 associations to related views.

Data Sources (1)

SourceAliasJoin Type
P_ManageOperations _OrderOperation from

Associations (7)

CardinalityTargetAliasCondition
[0..1] P_Mfgcompsmissaggr _Component $projection.OrderInternalBillOfOperations = _Component.OrderInternalBillOfOperations and $projection.OrderIntBillOfOperationsItem = _Component.OrderIntBillOfOperationsItem
[1..1] P_MfgOrderOperationIsOnHold _MfgOrderOperationIsOnHold $projection.OrderInternalBillOfOperations = _MfgOrderOperationIsOnHold.OrderInternalID and $projection.OrderIntBillOfOperationsItem = _MfgOrderOperationIsOnHold.OrderOperationInternalID
[0..1] I_ManufacturingFeatureStatus _ManufacturingFeatureStatus $projection.ProductionPlant = _ManufacturingFeatureStatus.Plant and _ManufacturingFeatureStatus.ManufacturingFeature = 'EPO'
[0..1] P_MPEInspIssuesByOperation _QualityIssue $projection.OrderInternalBillOfOperations = _QualityIssue.OrderInternalBillOfOperations and $projection.OrderIntBillOfOperationsItem = _QualityIssue.InspPlanOperationInternalID and $projection.InspectionLot = _QualityIssue.InspectionLot
[0..1] I_OrderItem _OrderItem $projection.ManufacturingOrder = _OrderItem.OrderID and _OrderItem.OrderItem = '0001'
[0..1] I_MfgOrderOperationOrigin _MfgOrderOperationOrigin $projection.MfgOrderOperationOrigin = _MfgOrderOperationOrigin.MfgOrderOperationOrigin
[1..1] E_OrderOperation _Extension $projection.OrderInternalBillOfOperations = _Extension.OrderInternalID and $projection.OrderIntBillOfOperationsItem = _Extension.OrderOperationInternalID

Annotations (12)

NameValueLevelField
AccessControl.authorizationCheck #CHECK view
EndUserText.label Order Operation Work Center Schedule view
ObjectModel.usageType.serviceQuality #D view
ObjectModel.usageType.sizeCategory #XL view
ObjectModel.usageType.dataClass #MIXED view
UI.headerInfo.title.type #STANDARD view
UI.headerInfo.title.value ManufacturingOrder view
UI.headerInfo.description.type #STANDARD view
UI.headerInfo.description.value ManufacturingOrderOperation view
UI.headerInfo.typeName Work Center Operation view
UI.headerInfo.typeNamePlural Work Center Operations view
VDM.viewType #CONSUMPTION view

Fields (70)

KeyFieldSource TableSource FieldDescription
KEY OrderInternalBillOfOperations OrderInternalBillOfOperations Order Internal Bill of Operations
KEY OrderIntBillOfOperationsItem OrderIntBillOfOperationsItem Order Internal Bill of Operations Item
ManufacturingOrder Order
ManufacturingOrderOperation ManufacturingOrderOperation Activity
MfgOrderOperationText MfgOrderOperationText
MaterialName
Material
ManufacturingOrderSequence ManufacturingOrderSequence
ProductionPlant ProductionPlant Prod plnt
WorkCenterInternalID WorkCenterInternalID Work Center
WorkCenter WorkCenter Work Center
WorkCenterTypeCode WorkCenterTypeCode Object Type
ManufacturingOrderCategory ManufacturingOrderCategory
ManufacturingOrderType ManufacturingOrderType
ProductionSupervisor ProductionSupervisor Prodn Supervisor
ProductionSupervisorName
MRPController MRPController MRP Controller
MRPControllerName MRPControllerName Controller name
ProductionPlantName
PlantTimeZone
OperationIsClosed OperationIsClosed
OperationIsTechlyCompleted OperationIsTechlyCompleted
OperationIsDelivered OperationIsDelivered
OperationIsPartiallyDelivered OperationIsPartiallyDelivered
OperationIsPartiallyConfirmed OperationIsPartiallyConfirmed
OperationIsPrinted OperationIsPrinted
OperationIsReleased OperationIsReleased
OperationIsCreated OperationIsCreated
OperationIsScheduled OperationIsScheduled
OperationIsConfirmed OperationIsConfirmed
OperationIsDeleted OperationIsDeleted
numc2asOperationStatusInternalID
OpPlannedTotalQuantity OpPlannedTotalQuantity
OpTotalConfirmedYieldQty OpTotalConfirmedYieldQty
OperationReferenceQuantity OperationReferenceQuantity Base Quantity
OperationConfirmedReworkQty OperationConfirmedReworkQty
OpTotalConfirmedScrapQty OpTotalConfirmedScrapQty
OperationUnit OperationUnit Act/op UoM
OpLtstSchedldExecStrtDte OpLtstSchedldExecStrtDte Latest start
OpLtstSchedldExecStrtTme OpLtstSchedldExecStrtTme
OpLtstSchedldExecEndDte OpLtstSchedldExecEndDte Lat.finish date
OpLtstSchedldExecEndTme OpLtstSchedldExecEndTme
OpActualExecutionStartDate OpActualExecutionStartDate Execution Start Date
OpActualExecutionStartTime OpActualExecutionStartTime
MissingQuantity
OperationExecutionEndIsLate OperationExecutionEndIsLate
OperationExecutionStartIsLate OperationExecutionStartIsLate
OperationYieldDeviationQty OperationYieldDeviationQty
ExecutionStartLatenessInMins ExecutionStartLatenessInMins
ExecutionEndLatenessInMinutes ExecutionEndLatenessInMinutes
InspectionLot InspectionLot Inspection Lot
InspHasRejectedCharc _QualityIssue InspHasRejectedCharc
InspHasRejectedInspSubset _QualityIssue InspHasRejectedInspSubset
InspHasRejectedInspLot _QualityIssue InspHasRejectedInspLot
_MfgOrder _MfgOrder
_WorkCenter _WorkCenter
_WorkCenterBySemanticKey _WorkCenterBySemanticKey
_ProductionPlant _ProductionPlant
_Material _MfgOrder _Material
_OperationUnit _OperationUnit
MfgFeatureIsActiveInAnyPlant _ManufacturingFeatureStatus MfgFeatureIsActiveInAnyPlant
EffectivityParameterVariant
EffectivityParameterDesc
EffctyTypeCnctntdParamDesc
BOOVersionChangeRecordIsRqd
BillOfOperationsType BillOfOperationsType Task List Type
BillOfOperationsGroup Group
BillOfOperationsVariant Group Counter
BillOfOperationsVersion BillOfOperationsVersion Routing Version
MfgOrderOperationOrigin MfgOrderOperationOrigin

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 C_OrderWorkCenterSchedule.
-- 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.

CREATE VIEW C_OrderWorkCenterSchedule AS
SELECT
  OrderInternalBillOfOperations,
  OrderIntBillOfOperationsItem,
  cast(ManufacturingOrder as aufnr preserving type) AS ManufacturingOrder,
  ManufacturingOrderOperation,
  MfgOrderOperationText,
  _MfgOrder._Material._Text[1: Language=$session.system_language].MaterialName AS MaterialName,
  _OrderOperation._MfgOrder.Material AS Material,
  ManufacturingOrderSequence,
  ProductionPlant,
  WorkCenterInternalID,
  WorkCenter,
  WorkCenterTypeCode,
  ManufacturingOrderCategory,
  ManufacturingOrderType,
  ProductionSupervisor,
  _OrderOperation._ProductionSupervisor.ProductionSupervisorName AS ProductionSupervisorName,
  MRPController,
  MRPControllerName,
  _OrderOperation._ProductionPlant.PlantName AS ProductionPlantName,
  cast(_ProductionPlant._Address.AddressTimeZone as co_plant_timezone ) AS PlantTimeZone,
  OperationIsClosed,
  OperationIsTechlyCompleted,
  OperationIsDelivered,
  OperationIsPartiallyDelivered,
  OperationIsPartiallyConfirmed,
  OperationIsPrinted,
  OperationIsReleased,
  OperationIsCreated,
  OperationIsScheduled,
  OperationIsConfirmed,
  OperationIsDeleted,
  cast( case when OperationIsDeleted = 'X' then '10' when OperationIsClosed = 'X' then '09' when OperationIsTechlyCompleted = 'X' then '08' when OperationIsDelivered = 'X' then '07' when OperationIsPartiallyDelivered = 'X' then '06' when OperationIsConfirmed = 'X' then '05' when OperationIsPartiallyConfirmed = 'X' then '04' when OperationIsReleased = 'X' then '03' when OperationIsScheduled = 'X' then '02' when OperationIsCreated = 'X' then '01' end as abap.numc(2)) as OperationStatusInternalID AS numc2asOperationStatusInternalID,
  OpPlannedTotalQuantity,
  OpTotalConfirmedYieldQty,
  OperationReferenceQuantity,
  OperationConfirmedReworkQty,
  OpTotalConfirmedScrapQty,
  OperationUnit,
  OpLtstSchedldExecStrtDte,
  OpLtstSchedldExecStrtTme,
  OpLtstSchedldExecEndDte,
  OpLtstSchedldExecEndTme,
  OpActualExecutionStartDate,
  OpActualExecutionStartTime,
  cast( case when _OrderOperation.OperationYieldDeviationQty < 0 then ( - 1 * _OrderOperation.OperationYieldDeviationQty ) else 0 end as abap.quan(13,3) ) AS MissingQuantity,
  OperationExecutionEndIsLate,
  OperationExecutionStartIsLate,
  OperationYieldDeviationQty,
  ExecutionStartLatenessInMins,
  ExecutionEndLatenessInMinutes,
  InspectionLot,
  _QualityIssue.InspHasRejectedCharc AS InspHasRejectedCharc,
  _QualityIssue.InspHasRejectedInspSubset AS InspHasRejectedInspSubset,
  _QualityIssue.InspHasRejectedInspLot AS InspHasRejectedInspLot,
  _MfgOrder._Material AS _Material,
  _ManufacturingFeatureStatus.MfgFeatureIsActiveInAnyPlant AS MfgFeatureIsActiveInAnyPlant,
  cast('' as mpe_effectivity_parameter_desc) AS EffectivityParameterDesc,
  cast('' as abap.sstring( 256 )) AS EffctyTypeCnctntdParamDesc,
  _OrderOperation._MfgOrder._BillOfOperations._BillOfOperationsVersionType.BOOVersionChangeRecordIsRqd AS BOOVersionChangeRecordIsRqd,
  BillOfOperationsType,
  cast(BillOfOperationsGroup as mpe_rtg_routing_group preserving type ) AS BillOfOperationsGroup,
  cast(BillOfOperationsVariant as mpe_rtg_routing_variant preserving type) AS BillOfOperationsVariant,
  BillOfOperationsVersion,
  MfgOrderOperationOrigin
FROM P_ManageOperations AS _OrderOperation
LEFT OUTER JOIN P_Mfgcompsmissaggr AS _Component ON OrderInternalBillOfOperations = _Component.OrderInternalBillOfOperations AND OrderIntBillOfOperationsItem = _Component.OrderIntBillOfOperationsItem  -- association [0..1]
LEFT OUTER JOIN P_MfgOrderOperationIsOnHold AS _MfgOrderOperationIsOnHold ON OrderInternalBillOfOperations = _MfgOrderOperationIsOnHold.OrderInternalID AND OrderIntBillOfOperationsItem = _MfgOrderOperationIsOnHold.OrderOperationInternalID  -- association [1..1]
LEFT OUTER JOIN I_ManufacturingFeatureStatus AS _ManufacturingFeatureStatus ON ProductionPlant = _ManufacturingFeatureStatus.Plant AND _ManufacturingFeatureStatus.ManufacturingFeature = 'EPO'  -- association [0..1]
LEFT OUTER JOIN P_MPEInspIssuesByOperation AS _QualityIssue ON OrderInternalBillOfOperations = _QualityIssue.OrderInternalBillOfOperations AND OrderIntBillOfOperationsItem = _QualityIssue.InspPlanOperationInternalID AND InspectionLot = _QualityIssue.InspectionLot  -- association [0..1]
LEFT OUTER JOIN I_OrderItem AS _OrderItem ON ManufacturingOrder = _OrderItem.OrderID AND _OrderItem.OrderItem = '0001'  -- association [0..1]
LEFT OUTER JOIN I_MfgOrderOperationOrigin AS _MfgOrderOperationOrigin ON MfgOrderOperationOrigin = _MfgOrderOperationOrigin.MfgOrderOperationOrigin  -- association [0..1]
LEFT OUTER JOIN E_OrderOperation AS _Extension ON OrderInternalBillOfOperations = _Extension.OrderInternalID AND OrderIntBillOfOperationsItem = _Extension.OrderOperationInternalID  -- association [1..1]
;