P_MntrWrkCtrOrderOperations

DDL: P_MNTRWRKCTRORDEROPERATIONS SQL: PMWCORDOP Type: view COMPOSITE Package: PPH_VDM_CAP_EVAL

Work Center Order Operations

P_MntrWrkCtrOrderOperations is a Composite CDS View that provides data about "Work Center Order Operations" in SAP S/4HANA. It reads from 1 data source (P_MntrWrkCtrOrderOps) and exposes 70 fields with key fields OrderID, CapacityRequirementItem, CapacityRqmtItemCapacity, OrderCategory, CapacityRequirement. Part of development package PPH_VDM_CAP_EVAL.

Data Sources (1)

SourceAliasJoin Type
P_MntrWrkCtrOrderOps PMntrWrkCtrOrd from

Annotations (7)

NameValueLevelField
AbapCatalog.sqlViewName PMWCORDOP view
AbapCatalog.compiler.compareFilter true view
AccessControl.authorizationCheck #NOT_REQUIRED view
VDM.viewType #COMPOSITE view
VDM.private true view
ClientHandling.algorithm #SESSION_VARIABLE view
AbapCatalog.preserveKey true view

Fields (70)

KeyFieldSource TableSource FieldDescription
KEY OrderID OrderID Order ID
KEY CapacityRequirementItem CapacityRequirementItem
KEY CapacityRqmtItemCapacity CapacityRqmtItemCapacity
KEY OrderCategory OrderCategory Order Category
KEY CapacityRequirement CapacityRequirement
Operation Operation Transaction
Material Material Vehicle Model
Plant Plant Valuation Area
MRPArea MRPArea MRP Area
MRPController MRPController MRP Controller
LastChangeDateTime LastChangeDateTime Timestamp
WorkCenterInternalID WorkCenterInternalID Work Center
WorkCenter WorkCenter Work Center
WorkCenterCategoryCode WorkCenterCategoryCode
WorkCenterText WorkCenterText Work Center Text
WorkCenterTypeCode WorkCenterTypeCode Object Type
CapacityInternalID CapacityInternalID Capacity ID
CapacityCategoryCode CapacityCategoryCode
WorkCenterResponsible WorkCenterResponsible
CapacityResponsiblePlanner CapacityResponsiblePlanner
OrderInternalID OrderInternalID Plan No.f.Oper.
ManufacturingOrder ManufacturingOrder Order
PlannedOrder PlannedOrder
ProductionVersion ProductionVersion Version ID
ProductionLine ProductionLine Production Line
OperationPlanningStatusCode OperationPlanningStatusCode
ScheduledBasicStartDate ScheduledBasicStartDate Sched. start
ScheduledBasicStartTime ScheduledBasicStartTime
ScheduledBasicEndDate ScheduledBasicEndDate Sched. finish
ScheduledBasicEndTime ScheduledBasicEndTime
OperationLatestStartDate OperationLatestStartDate
OperationLatestStartTime OperationLatestStartTime
LtstSchedldExecStrtDteTme LtstSchedldExecStrtDteTme
OperationLatestEndDate OperationLatestEndDate
OperationLatestEndTime OperationLatestEndTime
LtstSchedldExecEndDteTme LtstSchedldExecEndDteTme
OpLtstSchedldProcgStrtDte OpLtstSchedldProcgStrtDte
OpLtstSchedldProcgStrtTme OpLtstSchedldProcgStrtTme
OpLtstSchedldTrdwnStrtDte OpLtstSchedldTrdwnStrtDte
OpLtstSchedldTrdwnStrtTme OpLtstSchedldTrdwnStrtTme
RequirementDate RequirementDate Requirement Date
OrderPlannedTotalQty OrderPlannedTotalQty
BaseUnit BaseUnit Unit of Measure
CapacityRequirementUnit CapacityRequirementUnit
RemCapReqOpSegSetupDurnInHours RemCapReqOpSegSetupDurnInHours
RemCapReqOpSegProcgDurnInHours RemCapReqOpSegProcgDurnInHours
RemCapReqOpSegTrdwnDurnInHours RemCapReqOpSegTrdwnDurnInHours
BOOExplosionDate BOOExplosionDate
BOMExplosionDate BOMExplosionDate
PlndOrderPlannedStartDate PlndOrderPlannedStartDate
PlndOrderPlannedEndDate PlndOrderPlannedEndDate
OrderObjectInternalID OrderObjectInternalID
OperationSetupGroup OperationSetupGroup Setup group key
OperationSetupGroupCategory OperationSetupGroupCategory Setup group cat
OperationSetupType OperationSetupType Setup Type Key
HorizonStartDate HorizonStartDate
HorizonStartDatetime HorizonStartDatetime
clientNULLendasPlantCurrentDate
clientNULLendasPlantCurrentTime
OrderHasConfiguration OrderHasConfiguration
OperationLatestStartDateTime OperationLatestStartDateTime
OperationLatestEndDateTime OperationLatestEndDateTime
PlantTimeZone PlantTimeZone Time Zone
OrderType OrderType Order Type
OpLtstSchedldSetupStrtDteTme OperationLatestStartDateTime
OpLtstSchedldTrdwnEndDteTme OperationLatestEndDateTime
TotalDuration
SetupDuration
ProcessDuration
TearDownDuration

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_MntrWrkCtrOrderOperations.
-- 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: PMWCORDOP

CREATE VIEW P_MntrWrkCtrOrderOperations AS
SELECT
  OrderID,
  CapacityRequirementItem,
  CapacityRqmtItemCapacity,
  OrderCategory,
  CapacityRequirement,
  Operation,
  Material,
  Plant,
  MRPArea,
  MRPController,
  LastChangeDateTime,
  WorkCenterInternalID,
  WorkCenter,
  WorkCenterCategoryCode,
  WorkCenterText,
  WorkCenterTypeCode,
  CapacityInternalID,
  CapacityCategoryCode,
  WorkCenterResponsible,
  CapacityResponsiblePlanner,
  OrderInternalID,
  ManufacturingOrder,
  PlannedOrder,
  ProductionVersion,
  ProductionLine,
  OperationPlanningStatusCode,
  ScheduledBasicStartDate,
  ScheduledBasicStartTime,
  ScheduledBasicEndDate,
  ScheduledBasicEndTime,
  OperationLatestStartDate,
  OperationLatestStartTime,
  LtstSchedldExecStrtDteTme,
  OperationLatestEndDate,
  OperationLatestEndTime,
  LtstSchedldExecEndDteTme,
  OpLtstSchedldProcgStrtDte,
  OpLtstSchedldProcgStrtTme,
  OpLtstSchedldTrdwnStrtDte,
  OpLtstSchedldTrdwnStrtTme,
  RequirementDate,
  OrderPlannedTotalQty,
  BaseUnit,
  CapacityRequirementUnit,
  RemCapReqOpSegSetupDurnInHours,
  RemCapReqOpSegProcgDurnInHours,
  RemCapReqOpSegTrdwnDurnInHours,
  BOOExplosionDate,
  BOMExplosionDate,
  PlndOrderPlannedStartDate,
  PlndOrderPlannedEndDate,
  OrderObjectInternalID,
  OperationSetupGroup,
  OperationSetupGroupCategory,
  OperationSetupType,
  HorizonStartDate,
  HorizonStartDatetime,
  case when PlantTimeZone is null then tstmp_to_dats( tstmp_current_utctimestamp(),abap_system_timezone($session.client, 'NULL'), $session.client, 'NULL' ) when PlantTimeZone is not null then tstmp_to_dats( tstmp_current_utctimestamp(), PlantTimeZone, $session.client, 'NULL' ) end as PlantCurrentDate AS clientNULLendasPlantCurrentDate,
  case when PlantTimeZone is null then tstmp_to_tims( tstmp_current_utctimestamp(), abap_system_timezone($session.client, 'NULL'), $session.client, 'NULL' ) when PlantTimeZone is not null then tstmp_to_tims( tstmp_current_utctimestamp(), PlantTimeZone, $session.client,'NULL' ) end as PlantCurrentTime AS clientNULLendasPlantCurrentTime,
  OrderHasConfiguration,
  OperationLatestStartDateTime,
  OperationLatestEndDateTime,
  PlantTimeZone,
  OrderType,
  OperationLatestStartDateTime AS OpLtstSchedldSetupStrtDteTme,
  OperationLatestEndDateTime AS OpLtstSchedldTrdwnEndDteTme,
  tstmp_seconds_between(cast(LtstSchedldExecStrtDteTme as abap.dec(15,0)), cast(LtstSchedldExecEndDteTme as abap.dec(15,0)), 'FAIL' ) AS TotalDuration,
  tstmp_seconds_between(cast(LtstSchedldExecStrtDteTme as abap.dec(15,0)) , cast(LtstSchdlProcStrtDteTime as abap.dec(15,0)), 'FAIL') AS SetupDuration,
  tstmp_seconds_between(cast( LtstSchdlProcStrtDteTime as abap.dec(15,0)), cast(LtstSchdlTrdwnStrtDteTime as abap.dec(15,0)), 'FAIL') AS ProcessDuration,
  tstmp_seconds_between(cast(LtstSchdlTrdwnStrtDteTime as abap.dec(15,0)), cast(LtstSchedldExecEndDteTme as abap.dec(15,0)), 'FAIL') AS TearDownDuration
FROM P_MntrWrkCtrOrderOps AS PMntrWrkCtrOrd
;