P_MntrWrkCtrOrderOperations
P_MntrWrkCtrOrderOperations is a Composite CDS View in SAP S/4HANA. It reads from 4 data sources (I_CapacityRequirementItemCap, I_CapacityRequirementItemCap, P_ProcCapReqOpDurn, P_ProcCapReqOpDurn) and exposes 106 fields with key fields OrderID, OrderCategory, OrderCategory, CapacityRequirementItem, CapacityRqmtItemCapacity. It has 1 association to related views.
Data Sources (4)
| Source | Alias | Join Type |
|---|---|---|
| I_CapacityRequirementItemCap | CapRqmtItmCap | from |
| I_CapacityRequirementItemCap | CapRqmtItmCap | union_all |
| P_ProcCapReqOpDurn | ProcOpDurn | left_outer |
| P_ProcCapReqOpDurn | ProcOpDurn | left_outer |
Associations (1)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [1..1] | I_StatusObjectStatus | _StatusConfirmed | CapRqmtItmCap.OrderObjectInternalID = _StatusConfirmed.StatusObject and _StatusConfirmed.StatusCode = 'I0009' and _StatusConfirmed.StatusIsActive = 'X' |
Annotations (7)
| Name | Value | Level | Field |
|---|---|---|---|
| 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 (106)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | OrderID | |||
| KEY | OrderCategory | |||
| Operation | ||||
| Material | ||||
| Plant | ||||
| MRPArea | ||||
| MRPController | ||||
| numc15astimestampendasLastChangeDateTime | ||||
| WorkCenterInternalID | ||||
| WorkCenter | ||||
| WorkCenterCategoryCode | ||||
| WorkCenterText | ||||
| WorkCenterTypeCode | ||||
| CapacityCategoryCode | ||||
| WorkCenterResponsible | ||||
| CapacityResponsiblePlanner | ||||
| ManufacturingOrder | ||||
| PlannedOrder | ||||
| ProductionVersion | ||||
| ProductionLine | ||||
| RequirementDate | ||||
| OrderPlannedTotalQty | ||||
| BaseUnit | ||||
| BOOExplosionDate | ||||
| BOMExplosionDate | ||||
| PlndOrderPlannedStartDate | ||||
| PlndOrderPlannedEndDate | ||||
| OperationSetupGroup | ||||
| OperationSetupGroupCategory | ||||
| OperationSetupType | ||||
| HorizonStartDatetime | ||||
| HorizonStartDate | ||||
| clientNULLendasPlantCurrentDate | ||||
| clientNULLendasPlantCurrentTime | ||||
| PlantTimeZone | ||||
| KEY | OrderCategory | |||
| Operation | ||||
| Material | ||||
| Plant | ||||
| MRPArea | ||||
| MRPController | ||||
| LastChangeDateTime | ||||
| WorkCenterInternalID | ||||
| WorkCenter | ||||
| WorkCenterCategoryCode | ||||
| WorkCenterText | ||||
| WorkCenterTypeCode | ||||
| CapacityCategoryCode | ||||
| WorkCenterResponsible | ||||
| CapacityResponsiblePlanner | ||||
| ManufacturingOrder | ||||
| PlannedOrder | ||||
| ProductionVersion | ||||
| ProductionLine | ||||
| OrderPlannedTotalQty | ||||
| BaseUnit | ||||
| BOOExplosionDate | ||||
| BOMExplosionDate | ||||
| PlndOrderPlannedStartDate | ||||
| PlndOrderPlannedEndDate | ||||
| OperationSetupGroup | ||||
| OperationSetupGroupCategory | ||||
| OperationSetupType | ||||
| HorizonStartDatetime | ||||
| HorizonStartDate | ||||
| clientNULLendasPlantCurrentDate | ||||
| clientNULLendasPlantCurrentTime | ||||
| OrderHasConfiguration | ||||
| PlantTimeZone | ||||
| OrderType | ||||
| KEY | CapacityRequirementItem | I_CapacityRequirementItemCap | CapacityRequirementItem | |
| KEY | CapacityRqmtItemCapacity | I_CapacityRequirementItemCap | CapacityRqmtItemCapacity | |
| CapacityRequirement | I_CapacityRequirementItemCap | CapacityRequirement | Id number | |
| CapacityInternalID | I_CapacityRequirementItemCap | CapacityInternalID | Capacity ID | |
| OrderInternalID | I_CapacityRequirementItemCap | OrderInternalID | Plan No.f.Oper. | |
| OperationLatestStartDate | I_CapacityRequirementItemCap | OperationLatestStartDate | Ltst Start Date | |
| OperationLatestStartTime | I_CapacityRequirementItemCap | OperationLatestStartTime | Ltst Start Time | |
| OperationLatestEndDate | I_CapacityRequirementItemCap | OperationLatestEndDate | Ltst End Date | |
| OperationLatestEndTime | I_CapacityRequirementItemCap | OperationLatestEndTime | Ltst End Time | |
| OpLtstSchedldProcgStrtDte | I_CapacityRequirementItemCap | LtstSchedldProcStrtDte | ||
| OpLtstSchedldProcgStrtTme | I_CapacityRequirementItemCap | LtstSchedldProcStrtTime | ||
| OpLtstSchedldTrdwnStrtDte | I_CapacityRequirementItemCap | LtstSchedldTrdwnStrtDte | ||
| OpLtstSchedldTrdwnStrtTme | I_CapacityRequirementItemCap | LtstSchedldTrdwnStrtTime | ||
| OrderObjectInternalID | I_CapacityRequirementItemCap | OrderObjectInternalID | ||
| KEY | CapacityRequirementItem | I_CapacityRequirementItemCap | CapacityRequirementItem | |
| KEY | CapacityRqmtItemCapacity | I_CapacityRequirementItemCap | CapacityRqmtItemCapacity | |
| CapacityRequirement | I_CapacityRequirementItemCap | CapacityRequirement | Id number | |
| CapacityInternalID | I_CapacityRequirementItemCap | CapacityInternalID | Capacity ID | |
| OrderInternalID | I_CapacityRequirementItemCap | OrderInternalID | Plan No.f.Oper. | |
| OperationLatestStartDate | I_CapacityRequirementItemCap | OperationLatestStartDate | Ltst Start Date | |
| OperationLatestStartTime | I_CapacityRequirementItemCap | OperationLatestStartTime | Ltst Start Time | |
| OperationLatestEndDate | I_CapacityRequirementItemCap | OperationLatestEndDate | Ltst End Date | |
| OperationLatestEndTime | I_CapacityRequirementItemCap | OperationLatestEndTime | Ltst End Time | |
| OpLtstSchedldProcgStrtDte | I_CapacityRequirementItemCap | LtstSchedldProcStrtDte | ||
| OpLtstSchedldProcgStrtTme | I_CapacityRequirementItemCap | LtstSchedldProcStrtTime | ||
| OpLtstSchedldTrdwnStrtDte | I_CapacityRequirementItemCap | LtstSchedldTrdwnStrtDte | ||
| OpLtstSchedldTrdwnStrtTme | I_CapacityRequirementItemCap | LtstSchedldTrdwnStrtTime | ||
| OrderObjectInternalID | I_CapacityRequirementItemCap | OrderObjectInternalID | ||
| ScheduledBasicStartDate | _CapacityRequirement | ScheduledBasicStartDate | Sched. start | |
| ScheduledBasicStartTime | _CapacityRequirement | ScheduledBasicStartTime | ||
| ScheduledBasicEndDate | _CapacityRequirement | ScheduledBasicEndDate | Sched. finish | |
| ScheduledBasicEndTime | _CapacityRequirement | ScheduledBasicEndTime | ||
| ScheduledBasicStartDate | _Order | ScheduledBasicStartDate | Sched. start | |
| ScheduledBasicStartTime | _Order | ScheduledBasicStartTime | ||
| ScheduledBasicEndDate | _Order | ScheduledBasicEndDate | Sched. finish | |
| ScheduledBasicEndTime | _Order | ScheduledBasicEndTime |
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
cast( CapRqmtItmCap.OrderID as pph_cfs_ordernumber ) AS OrderID,
cast(CapRqmtItmCap._Order.OrderCategory as pph_cfs_sch_ordercategory) AS OrderCategory,
cast( CapRqmtItmCap.Operation as vornr) AS Operation,
cast( CapRqmtItmCap._Order.Material as productnumber) AS Material,
CapRqmtItmCap._WorkCenter.Plant AS Plant,
cast( _Order._OrderMainItem.MRPArea as berid) AS MRPArea,
cast( CapRqmtItmCap._Order.MRPController as dispo) AS MRPController,
case CapRqmtItmCap._Order.LastChangeDate when '00000000' then cast(cast( concat( CapRqmtItmCap._Order.CreationDate, CapRqmtItmCap._Order.CreationTime)as abap.numc(15)) as timestamp) else cast(cast( concat( CapRqmtItmCap._Order.LastChangeDate, CapRqmtItmCap._Order.LastChangeTime)as abap.numc(15)) as timestamp) end as LastChangeDateTime AS numc15astimestampendasLastChangeDateTime,
CapRqmtItmCap._WorkCenter.WorkCenterInternalID AS WorkCenterInternalID,
CapRqmtItmCap._WorkCenter.WorkCenter AS WorkCenter,
CapRqmtItmCap._WorkCenter.WorkCenterCategoryCode AS WorkCenterCategoryCode,
CapRqmtItmCap._WorkCenter._Text[1:Language=$session.system_language].WorkCenterText AS WorkCenterText,
cast(CapRqmtItmCap.WorkCenterTypeCode as cr_objty) AS WorkCenterTypeCode,
CapRqmtItmCap._Capacity.CapacityCategoryCode AS CapacityCategoryCode,
CapRqmtItmCap._WorkCenter.WorkCenterResponsible AS WorkCenterResponsible,
CapRqmtItmCap._Capacity.CapacityResponsiblePlanner AS CapacityResponsiblePlanner,
cast(CapRqmtItmCap.OrderID as aufnr) AS ManufacturingOrder,
cast(CapRqmtItmCap.PlannedOrder as plnum) AS PlannedOrder,
cast( _Order._OrderMainItem.ProductionVersion as verid) AS ProductionVersion,
_Order._OrderMainItem._ProductionVersion.ProductionLine AS ProductionLine,
CapRqmtItmCap._Order.PlannedEndDate AS RequirementDate,
cast ( CapRqmtItmCap._Order.OrderPlannedTotalQty as mgvrg ) AS OrderPlannedTotalQty,
cast (CapRqmtItmCap._Order.BaseUnit as meins preserving type) AS BaseUnit,
CapRqmtItmCap._Order.BOOExplosionDate AS BOOExplosionDate,
CapRqmtItmCap._Order.BOOExplosionDate AS BOMExplosionDate,
CapRqmtItmCap._PlannedOrder.PlndOrderPlannedStartDate AS PlndOrderPlannedStartDate,
CapRqmtItmCap._PlannedOrder.PlndOrderPlannedEndDate AS PlndOrderPlannedEndDate,
CapRqmtItmCap._OrderOperation.OperationSetupGroup AS OperationSetupGroup,
CapRqmtItmCap._OrderOperation.OperationSetupGroupCategory AS OperationSetupGroupCategory,
CapRqmtItmCap._OrderOperation.OperationSetupType AS OperationSetupType,
cast(cast(concat(dats_add_days(cast($session.system_date as sydatum),-90,'NULL'),'000000')as abap.numc(15) ) as timestamp) AS HorizonStartDatetime,
cast (dats_add_days(cast ($session.system_date as sydatum),-90,'FAIL') as sydatum) AS HorizonStartDate,
case when CapRqmtItmCap._WorkCenter._Plant._Address.AddressTimeZone is null then tstmp_to_dats( tstmp_current_utctimestamp(), abap_system_timezone($session.client, 'NULL'), $session.client, 'NULL' ) when CapRqmtItmCap._WorkCenter._Plant._Address.AddressTimeZone is not null then tstmp_to_dats( tstmp_current_utctimestamp(), CapRqmtItmCap._WorkCenter._Plant._Address.AddressTimeZone, $session.client, 'NULL' ) end as PlantCurrentDate AS clientNULLendasPlantCurrentDate,
case when CapRqmtItmCap._WorkCenter._Plant._Address.AddressTimeZone is null then tstmp_to_tims( tstmp_current_utctimestamp(), abap_system_timezone($session.client, 'NULL'), $session.client, 'NULL' ) when CapRqmtItmCap._WorkCenter._Plant._Address.AddressTimeZone is not null then tstmp_to_tims( tstmp_current_utctimestamp(), CapRqmtItmCap._WorkCenter._Plant._Address.AddressTimeZone, $session.client, 'NULL' ) end as PlantCurrentTime AS clientNULLendasPlantCurrentTime,
CapRqmtItmCap._WorkCenter._Plant._Address.AddressTimeZone AS PlantTimeZone,
cast( CapRqmtItmCap._PlannedOrder.LastChangeDateTime as timestamp) AS LastChangeDateTime,
cast('' as boole_d preserving type ) AS OrderHasConfiguration,
CapRqmtItmCap._PlannedOrder.PlannedOrderType AS OrderType,
CapRqmtItmCap.CapacityRequirementItem AS CapacityRequirementItem,
CapRqmtItmCap.CapacityRqmtItemCapacity AS CapacityRqmtItemCapacity,
CapRqmtItmCap.CapacityRequirement AS CapacityRequirement,
CapRqmtItmCap.CapacityInternalID AS CapacityInternalID,
CapRqmtItmCap.OrderInternalID AS OrderInternalID,
CapRqmtItmCap.OperationLatestStartDate AS OperationLatestStartDate,
CapRqmtItmCap.OperationLatestStartTime AS OperationLatestStartTime,
CapRqmtItmCap.OperationLatestEndDate AS OperationLatestEndDate,
CapRqmtItmCap.OperationLatestEndTime AS OperationLatestEndTime,
CapRqmtItmCap.LtstSchedldProcStrtDte AS OpLtstSchedldProcgStrtDte,
CapRqmtItmCap.LtstSchedldProcStrtTime AS OpLtstSchedldProcgStrtTme,
CapRqmtItmCap.LtstSchedldTrdwnStrtDte AS OpLtstSchedldTrdwnStrtDte,
CapRqmtItmCap.LtstSchedldTrdwnStrtTime AS OpLtstSchedldTrdwnStrtTme,
CapRqmtItmCap.OrderObjectInternalID AS OrderObjectInternalID,
_CapacityRequirement.ScheduledBasicStartDate AS ScheduledBasicStartDate,
_CapacityRequirement.ScheduledBasicStartTime AS ScheduledBasicStartTime,
_CapacityRequirement.ScheduledBasicEndDate AS ScheduledBasicEndDate,
_CapacityRequirement.ScheduledBasicEndTime AS ScheduledBasicEndTime
FROM I_CapacityRequirementItemCap AS CapRqmtItmCap
LEFT OUTER JOIN P_ProcCapReqOpDurn AS ProcOpDurn ON /* join condition not captured in parsed metadata */
LEFT OUTER JOIN I_StatusObjectStatus AS _StatusConfirmed ON CapRqmtItmCap.OrderObjectInternalID = _StatusConfirmed.StatusObject AND _StatusConfirmed.StatusCode = 'I0009' AND _StatusConfirmed.StatusIsActive = 'X' -- association [1..1]
-- UNION ALL with additional select branch(es): I_CapacityRequirementItemCap
;
Learn More
- VDM (Virtual Data Model) in SAP S/4HANA Explained
- Types of CDS Views: Basic, Composite, Consumption, and Transactional
- CDS View Annotations — A Complete Guide
- What Is a CDS View in SAP S/4HANA?
- SAP Tables vs CDS Views — Key Differences
- Understanding Data Lineage in SAP S/4HANA
- CDS View Field Mapping and Associations
- Understanding the SAP S/4HANA Data Model
- CDS View Extensions and Custom Fields in SAP S/4HANA
- Released APIs and Stability Contracts in SAP S/4HANA
- BSEG to ACDOCA: The Universal Journal Migration
- Business Partner Migration: KNA1/LFA1 to BUT000
- Material Document Migration: MSEG/MKPF to MATDOC
- How to Find the Right CDS View for an SAP Table
- BW Extractor to CDS View Migration Guide
- S/4HANA CDS View Deprecation: What You Need to Know
- ABAP CDS View Tutorial — From Basics to Real-World Examples
- RAP and CDS Views — Building Transactional Apps in SAP S/4HANA
- Sales Document Status Migration: VBUP/VBUK Removal in S/4HANA
- CO Tables in S/4HANA: COEP, COBK, COSS, COSP to ACDOCA