P_WrkCtrOpShiftLoadDistr
P_WrkCtrOpShiftLoadDistr is a Composite CDS View in SAP S/4HANA. It reads from 2 data sources (P_WorkCenterOpDistrPct, P_WrkCtrCapOpWrkDays) and exposes 54 fields with key fields WorkCenterInternalID, WorkCenterTypeCode, CapacityCategoryAllocation, CapacityInternalID, CapacityActiveVersion.
Data Sources (2)
| Source | Alias | Join Type |
|---|---|---|
| P_WorkCenterOpDistrPct | P_WorkCenterOpDistrPct | inner |
| P_WrkCtrCapOpWrkDays | P_WrkCtrCapOpWrkDays | from |
Parameters (2)
| Name | Type | Default |
|---|---|---|
| P_StartDate | datum | |
| P_EndDate | datum |
Annotations (6)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | PWCSHIFTLOADDIST | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| AccessControl.authorizationCheck | #NOT_REQUIRED | view | |
| VDM.viewType | #COMPOSITE | view | |
| VDM.private | true | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view |
Fields (54)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | WorkCenterInternalID | OperationCapacityPerShift | WorkCenterInternalID | Work Center |
| KEY | WorkCenterTypeCode | OperationCapacityPerShift | WorkCenterTypeCode | Object Type |
| KEY | CapacityCategoryAllocation | OperationCapacityPerShift | CapacityCategoryAllocation | |
| KEY | CapacityInternalID | OperationCapacityPerShift | CapacityInternalID | Capacity ID |
| KEY | CapacityActiveVersion | OperationCapacityPerShift | CapacityActiveVersion | |
| KEY | AvailableCapacityShift | OperationCapacityPerShift | AvailableCapacityShift | Capacity Shift |
| KEY | WeekDay | OperationCapacityPerShift | WeekDay | Weekdays |
| KEY | ValidityEndDate | OperationCapacityPerShift | ValidityEndDate | ValidTo |
| KEY | CalendarDate | OperationCapacityPerShift | CalendarDate | Calendar Date |
| Material | OperationCapacityPerShift | Material | Vehicle Model | |
| OrderID | OperationCapacityPerShift | OrderID | Order ID | |
| Operation | OperationCapacityPerShift | Operation | Transaction | |
| ShiftName | OperationCapacityPerShift | ShiftName | ||
| Plant | OperationCapacityPerShift | Plant | Valuation Area | |
| MRPController | OperationCapacityPerShift | MRPController | MRP Controller | |
| WorkCenter | OperationCapacityPerShift | WorkCenter | Work Center | |
| FactoryCalendar | OperationCapacityPerShift | FactoryCalendar | Factory Calendar | |
| CalendarWeek | OperationCapacityPerShift | CalendarWeek | Calendar Week | |
| CalendarMonth | OperationCapacityPerShift | CalendarMonth | Calendar Month | |
| CalendarYear | OperationCapacityPerShift | CalendarYear | Year | |
| FactoryCalendarDate | OperationCapacityPerShift | FactoryCalendarDate | ||
| CapacityRequirement | OperationCapacityPerShift | CapacityRequirement | ||
| dec102asCapacityStartTime | ||||
| CapacityEndTime | ||||
| CapacityRequirementOrigin | OperationCapacityPerShift | CapacityRequirementOrigin | ||
| CapacityRequirementUnit | OperationCapacityPerShift | CapacityRequirementUnit | ||
| OrderInternalID | OperationCapacityPerShift | OrderInternalID | Plan No.f.Oper. | |
| OrderType | OperationCapacityPerShift | OrderType | Order Type | |
| OrderCategory | OperationCapacityPerShift | OrderCategory | Order Category | |
| ProductionVersion | OperationCapacityPerShift | ProductionVersion | Version ID | |
| OrderPlannedTotalQty | OperationCapacityPerShift | OrderPlannedTotalQty | ||
| BaseUnit | OperationCapacityPerShift | BaseUnit | Unit of Measure | |
| OperationPlanningStatusCode | OperationCapacityPerShift | OperationPlanningStatusCode | ||
| OperationLatestStartDate | OperationCapacityPerShift | OperationLatestStartDate | ||
| OperationLatestStartTime | OperationCapacityPerShift | OperationLatestStartTime | ||
| OperationLatestEndDate | OperationCapacityPerShift | OperationLatestEndDate | ||
| OperationLatestEndTime | OperationCapacityPerShift | OperationLatestEndTime | ||
| OpLtstSchedldExecStrtTme | OperationCapacityPerShift | OpLtstSchedldExecStrtTme | ||
| OpLtstSchedldExecEndTme | OperationCapacityPerShift | OpLtstSchedldExecEndTme | ||
| OpLtstSchedldProcgStrtDte | OperationCapacityPerShift | OpLtstSchedldProcgStrtDte | ||
| OpLtstSchedldProcgStrtTme | OperationCapacityPerShift | OpLtstSchedldProcgStrtTme | ||
| OpLtstSchedldTrdwnStrtDte | OperationCapacityPerShift | OpLtstSchedldTrdwnStrtDte | ||
| OpLtstSchedldTrdwnStrtTme | OperationCapacityPerShift | OpLtstSchedldTrdwnStrtTme | ||
| RemainingCapReqOpSegSetupDurn | OperationCapacityPerShift | RemainingCapReqOpSegSetupDurn | ||
| RemainingCapReqOpSegProcgDurn | OperationCapacityPerShift | RemainingCapReqOpSegProcgDurn | ||
| RemainingCapReqOpSegTrdwnDurn | OperationCapacityPerShift | RemainingCapReqOpSegTrdwnDurn | ||
| RequirementHours | OperationCapacityPerShift | RequirementHours | ||
| OrderStatusCode | OperationCapacityPerShift | OrderStatusCode | ||
| OrderFirmingStatusCode | OperationCapacityPerShift | OrderFirmingStatusCode | ||
| WorkCenterCapacityUnit | ||||
| WorkCenterResponsible | OperationCapacityPerShift | WorkCenterResponsible | ||
| WorkCenterCategoryCode | OperationCapacityPerShift | WorkCenterCategoryCode | ||
| WorkCenterAvailableCapacity | ||||
| fltpasWorkCenterCapacityRequirement |
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_WrkCtrOpShiftLoadDistr.
-- 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: PWCSHIFTLOADDIST
-- Parameters: P_StartDate : datum, P_EndDate : datum
CREATE VIEW P_WrkCtrOpShiftLoadDistr AS
SELECT
OperationCapacityPerShift.WorkCenterInternalID AS WorkCenterInternalID,
OperationCapacityPerShift.WorkCenterTypeCode AS WorkCenterTypeCode,
OperationCapacityPerShift.CapacityCategoryAllocation AS CapacityCategoryAllocation,
OperationCapacityPerShift.CapacityInternalID AS CapacityInternalID,
OperationCapacityPerShift.CapacityActiveVersion AS CapacityActiveVersion,
OperationCapacityPerShift.AvailableCapacityShift AS AvailableCapacityShift,
OperationCapacityPerShift.WeekDay AS WeekDay,
OperationCapacityPerShift.ValidityEndDate AS ValidityEndDate,
OperationCapacityPerShift.CalendarDate AS CalendarDate,
OperationCapacityPerShift.Material AS Material,
OperationCapacityPerShift.OrderID AS OrderID,
OperationCapacityPerShift.Operation AS Operation,
OperationCapacityPerShift.ShiftName AS ShiftName,
OperationCapacityPerShift.Plant AS Plant,
OperationCapacityPerShift.MRPController AS MRPController,
OperationCapacityPerShift.WorkCenter AS WorkCenter,
OperationCapacityPerShift.FactoryCalendar AS FactoryCalendar,
OperationCapacityPerShift.CalendarWeek AS CalendarWeek,
OperationCapacityPerShift.CalendarMonth AS CalendarMonth,
OperationCapacityPerShift.CalendarYear AS CalendarYear,
OperationCapacityPerShift.FactoryCalendarDate AS FactoryCalendarDate,
OperationCapacityPerShift.CapacityRequirement AS CapacityRequirement,
fltp_to_dec(OperationCapacityPerShift.CapacityStartTime as abap.dec(10,2))as CapacityStartTime AS dec102asCapacityStartTime,
fltp_to_dec(OperationCapacityPerShift.CapacityEndTime as abap.dec(10,2)) AS CapacityEndTime,
OperationCapacityPerShift.CapacityRequirementOrigin AS CapacityRequirementOrigin,
OperationCapacityPerShift.CapacityRequirementUnit AS CapacityRequirementUnit,
OperationCapacityPerShift.OrderInternalID AS OrderInternalID,
OperationCapacityPerShift.OrderType AS OrderType,
OperationCapacityPerShift.OrderCategory AS OrderCategory,
OperationCapacityPerShift.ProductionVersion AS ProductionVersion,
OperationCapacityPerShift.OrderPlannedTotalQty AS OrderPlannedTotalQty,
OperationCapacityPerShift.BaseUnit AS BaseUnit,
OperationCapacityPerShift.OperationPlanningStatusCode AS OperationPlanningStatusCode,
OperationCapacityPerShift.OperationLatestStartDate AS OperationLatestStartDate,
OperationCapacityPerShift.OperationLatestStartTime AS OperationLatestStartTime,
OperationCapacityPerShift.OperationLatestEndDate AS OperationLatestEndDate,
OperationCapacityPerShift.OperationLatestEndTime AS OperationLatestEndTime,
OperationCapacityPerShift.OpLtstSchedldExecStrtTme AS OpLtstSchedldExecStrtTme,
OperationCapacityPerShift.OpLtstSchedldExecEndTme AS OpLtstSchedldExecEndTme,
OperationCapacityPerShift.OpLtstSchedldProcgStrtDte AS OpLtstSchedldProcgStrtDte,
OperationCapacityPerShift.OpLtstSchedldProcgStrtTme AS OpLtstSchedldProcgStrtTme,
OperationCapacityPerShift.OpLtstSchedldTrdwnStrtDte AS OpLtstSchedldTrdwnStrtDte,
OperationCapacityPerShift.OpLtstSchedldTrdwnStrtTme AS OpLtstSchedldTrdwnStrtTme,
OperationCapacityPerShift.RemainingCapReqOpSegSetupDurn AS RemainingCapReqOpSegSetupDurn,
OperationCapacityPerShift.RemainingCapReqOpSegProcgDurn AS RemainingCapReqOpSegProcgDurn,
OperationCapacityPerShift.RemainingCapReqOpSegTrdwnDurn AS RemainingCapReqOpSegTrdwnDurn,
OperationCapacityPerShift.RequirementHours AS RequirementHours,
OperationCapacityPerShift.OrderStatusCode AS OrderStatusCode,
OperationCapacityPerShift.OrderFirmingStatusCode AS OrderFirmingStatusCode,
cast ('H' as meins) AS WorkCenterCapacityUnit,
OperationCapacityPerShift.WorkCenterResponsible AS WorkCenterResponsible,
OperationCapacityPerShift.WorkCenterCategoryCode AS WorkCenterCategoryCode,
(OperationCapacityPerShift.TotOperatingDurationInSeconds) / cast(3600 as abap.fltp) AS WorkCenterAvailableCapacity,
(cast(OperationCapacityPerShift.CalCapacityInParallel as abap.fltp) / cast(3600 as abap.fltp)) * OperationDistrpercPct.CapacityDistrPercent / cast(100 as abap.fltp) as WorkCenterCapacityRequirement AS fltpasWorkCenterCapacityRequirement
FROM P_WrkCtrCapOpWrkDays
INNER JOIN P_WorkCenterOpDistrPct ON /* join condition not captured in parsed metadata */
;
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