I_WorkCtrOpLoadDistrAggrgd
Load Distribution at shift level for operations
I_WorkCtrOpLoadDistrAggrgd is a Composite CDS View that provides data about "Load Distribution at shift level for operations" in SAP S/4HANA. It reads from 1 data source (P_WRKCTROPSHIFTLOADAGGRGD) and exposes 47 fields with key fields WorkCenterInternalID, WorkCenterTypeCode, CapacityCategoryAllocation, CapacityInternalID, CapacityRequirement. Part of development package ODATA_PP_WORKCENTER_API.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| P_WRKCTROPSHIFTLOADAGGRGD | P_WRKCTROPSHIFTLOADAGGRGD | from |
Parameters (3)
| Name | Type | Default |
|---|---|---|
| P_CapacityPlanningStartDate | datum | |
| P_CapacityPlanningEndDate | datum | |
| P_CapacityEvalTimePerdCode | char1 |
Annotations (11)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | IWCLOADDISTAGG | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| AccessControl.authorizationCheck | #CHECK | view | |
| AccessControl.personalData.blocking | #NOT_REQUIRED | view | |
| ObjectModel.usageType.serviceQuality | #D | view | |
| ObjectModel.usageType.sizeCategory | #XL | view | |
| ObjectModel.usageType.dataClass | #TRANSACTIONAL | view | |
| VDM.viewType | #COMPOSITE | view | |
| Metadata.ignorePropagatedAnnotations | true | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| EndUserText.label | Load Distribution at shift level for operations | view |
Fields (47)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | WorkCenterInternalID | CapacityPerDailyShift | WorkCenterInternalID | Work Center |
| KEY | WorkCenterTypeCode | CapacityPerDailyShift | WorkCenterTypeCode | Object Type |
| KEY | CapacityCategoryAllocation | CapacityPerDailyShift | CapacityCategoryAllocation | |
| KEY | CapacityInternalID | CapacityPerDailyShift | CapacityInternalID | Capacity ID |
| KEY | CapacityRequirement | CapacityPerDailyShift | CapacityRequirement | |
| KEY | Material | CapacityPerDailyShift | Material | Vehicle Model |
| KEY | OrderID | CapacityPerDailyShift | OrderID | Order ID |
| KEY | Operation | CapacityPerDailyShift | Operation | Transaction |
| KEY | char4endasShiftName | |||
| KEY | char10endasCapacityEvaluationTimePeriod | Calendar Date | ||
| Plant | CapacityPerDailyShift | Plant | Valuation Area | |
| MRPController | CapacityPerDailyShift | MRPController | MRP Controller | |
| WorkCenter | CapacityPerDailyShift | WorkCenter | Work Center | |
| FactoryCalendar | CapacityPerDailyShift | FactoryCalendar | Factory Calendar | |
| CapacityEvaluationTimePerdCode | ||||
| CapacityStartTimeendasCapacityStartTime | ||||
| CapacityEndTimeendasCapacityEndTime | ||||
| WorkCenterResponsible | CapacityPerDailyShift | WorkCenterResponsible | ||
| WorkCenterCategoryCode | CapacityPerDailyShift | WorkCenterCategoryCode | ||
| CapacityRequirementOrigin | CapacityPerDailyShift | CapacityRequirementOrigin | ||
| CapacityRequirementUnit | CapacityPerDailyShift | CapacityRequirementUnit | ||
| OrderInternalID | CapacityPerDailyShift | OrderInternalID | Plan No.f.Oper. | |
| OrderType | CapacityPerDailyShift | OrderType | Order Type | |
| OrderCategory | CapacityPerDailyShift | OrderCategory | Order Category | |
| ProductionVersion | CapacityPerDailyShift | ProductionVersion | Version ID | |
| OrderPlannedTotalQty | CapacityPerDailyShift | OrderPlannedTotalQty | ||
| BaseUnit | CapacityPerDailyShift | BaseUnit | Unit of Measure | |
| OperationPlanningStatusCode | CapacityPerDailyShift | OperationPlanningStatusCode | ||
| OperationLatestStartDate | CapacityPerDailyShift | OperationLatestStartDate | ||
| OperationLatestStartTime | CapacityPerDailyShift | OperationLatestStartTime | ||
| OperationLatestEndDate | CapacityPerDailyShift | OperationLatestEndDate | ||
| OperationLatestEndTime | CapacityPerDailyShift | OperationLatestEndTime | ||
| OpLtstSchedldExecStrtTme | CapacityPerDailyShift | OpLtstSchedldExecStrtTme | ||
| OpLtstSchedldExecEndTme | CapacityPerDailyShift | OpLtstSchedldExecEndTme | ||
| OpLtstSchedldProcgStrtDte | CapacityPerDailyShift | OpLtstSchedldProcgStrtDte | ||
| OpLtstSchedldProcgStrtTme | CapacityPerDailyShift | OpLtstSchedldProcgStrtTme | ||
| OpLtstSchedldTrdwnStrtDte | CapacityPerDailyShift | OpLtstSchedldTrdwnStrtDte | ||
| OpLtstSchedldTrdwnStrtTme | CapacityPerDailyShift | OpLtstSchedldTrdwnStrtTme | ||
| RemainingCapReqOpSegSetupDurn | CapacityPerDailyShift | RemainingCapReqOpSegSetupDurn | ||
| RemainingCapReqOpSegProcgDurn | CapacityPerDailyShift | RemainingCapReqOpSegProcgDurn | ||
| RemainingCapReqOpSegTrdwnDurn | CapacityPerDailyShift | RemainingCapReqOpSegTrdwnDurn | ||
| OpCompltnRqmtInCapUnit | ||||
| OrderStatusCode | CapacityPerDailyShift | OrderStatusCode | ||
| OrderFirmingStatusCode | CapacityPerDailyShift | OrderFirmingStatusCode | ||
| WorkCenterCapacityUnit | CapacityPerDailyShift | WorkCenterCapacityUnit | ||
| WorkCenterAvailableCapacity | ||||
| WorkCenterCapRqmtInCapUnit |
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_WorkCtrOpLoadDistrAggrgd.
-- 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: IWCLOADDISTAGG
-- Parameters: P_CapacityPlanningStartDate : datum, P_CapacityPlanningEndDate : datum, P_CapacityEvalTimePerdCode : char1
CREATE VIEW I_WorkCtrOpLoadDistrAggrgd AS
SELECT
CapacityPerDailyShift.WorkCenterInternalID AS WorkCenterInternalID,
CapacityPerDailyShift.WorkCenterTypeCode AS WorkCenterTypeCode,
CapacityPerDailyShift.CapacityCategoryAllocation AS CapacityCategoryAllocation,
CapacityPerDailyShift.CapacityInternalID AS CapacityInternalID,
CapacityPerDailyShift.CapacityRequirement AS CapacityRequirement,
CapacityPerDailyShift.Material AS Material,
CapacityPerDailyShift.OrderID AS OrderID,
CapacityPerDailyShift.Operation AS Operation,
case $parameters.P_CapacityEvalTimePerdCode when 'D' then cast('' as abap.char(4)) when 'W' then cast('' as abap.char(4)) when 'M' then cast('' as abap.char(4)) when 'Y' then cast('' as abap.char(4)) when 'S' then cast(CapacityPerDailyShift.ShiftName as abap.char(4)) else cast('' as abap.char(4)) end as ShiftName AS char4endasShiftName,
case $parameters.P_CapacityEvalTimePerdCode when 'D' then cast(CalendarDate as abap.char(10)) when 'W' then cast(CalendarWeek as abap.char(10)) when 'M' then cast(CalendarMonth as abap.char(10)) when 'Y' then cast(CalendarYear as abap.char(10)) else cast(CalendarDate as abap.char(10)) end as CapacityEvaluationTimePeriod AS char10endasCapacityEvaluationTimePeriod,
CapacityPerDailyShift.Plant AS Plant,
CapacityPerDailyShift.MRPController AS MRPController,
CapacityPerDailyShift.WorkCenter AS WorkCenter,
CapacityPerDailyShift.FactoryCalendar AS FactoryCalendar,
$parameters.P_CapacityEvalTimePerdCode AS CapacityEvaluationTimePerdCode,
case $parameters.P_CapacityEvalTimePerdCode when 'S' then CapacityPerDailyShift.CapacityStartTime end as CapacityStartTime AS CapacityStartTimeendasCapacityStartTime,
case $parameters.P_CapacityEvalTimePerdCode when 'S' then CapacityPerDailyShift.CapacityEndTime end as CapacityEndTime AS CapacityEndTimeendasCapacityEndTime,
CapacityPerDailyShift.WorkCenterResponsible AS WorkCenterResponsible,
CapacityPerDailyShift.WorkCenterCategoryCode AS WorkCenterCategoryCode,
CapacityPerDailyShift.CapacityRequirementOrigin AS CapacityRequirementOrigin,
CapacityPerDailyShift.CapacityRequirementUnit AS CapacityRequirementUnit,
CapacityPerDailyShift.OrderInternalID AS OrderInternalID,
CapacityPerDailyShift.OrderType AS OrderType,
CapacityPerDailyShift.OrderCategory AS OrderCategory,
CapacityPerDailyShift.ProductionVersion AS ProductionVersion,
CapacityPerDailyShift.OrderPlannedTotalQty AS OrderPlannedTotalQty,
CapacityPerDailyShift.BaseUnit AS BaseUnit,
CapacityPerDailyShift.OperationPlanningStatusCode AS OperationPlanningStatusCode,
CapacityPerDailyShift.OperationLatestStartDate AS OperationLatestStartDate,
CapacityPerDailyShift.OperationLatestStartTime AS OperationLatestStartTime,
CapacityPerDailyShift.OperationLatestEndDate AS OperationLatestEndDate,
CapacityPerDailyShift.OperationLatestEndTime AS OperationLatestEndTime,
CapacityPerDailyShift.OpLtstSchedldExecStrtTme AS OpLtstSchedldExecStrtTme,
CapacityPerDailyShift.OpLtstSchedldExecEndTme AS OpLtstSchedldExecEndTme,
CapacityPerDailyShift.OpLtstSchedldProcgStrtDte AS OpLtstSchedldProcgStrtDte,
CapacityPerDailyShift.OpLtstSchedldProcgStrtTme AS OpLtstSchedldProcgStrtTme,
CapacityPerDailyShift.OpLtstSchedldTrdwnStrtDte AS OpLtstSchedldTrdwnStrtDte,
CapacityPerDailyShift.OpLtstSchedldTrdwnStrtTme AS OpLtstSchedldTrdwnStrtTme,
CapacityPerDailyShift.RemainingCapReqOpSegSetupDurn AS RemainingCapReqOpSegSetupDurn,
CapacityPerDailyShift.RemainingCapReqOpSegProcgDurn AS RemainingCapReqOpSegProcgDurn,
CapacityPerDailyShift.RemainingCapReqOpSegTrdwnDurn AS RemainingCapReqOpSegTrdwnDurn,
fltp_to_dec(CapacityPerDailyShift.RequirementHours as abap.dec( 10,2)) AS OpCompltnRqmtInCapUnit,
CapacityPerDailyShift.OrderStatusCode AS OrderStatusCode,
CapacityPerDailyShift.OrderFirmingStatusCode AS OrderFirmingStatusCode,
CapacityPerDailyShift.WorkCenterCapacityUnit AS WorkCenterCapacityUnit,
fltp_to_dec(CapacityPerDailyShift.WorkCenterAvailableCapacity as abap.dec( 10,2)) AS WorkCenterAvailableCapacity,
fltp_to_dec(CapacityPerDailyShift.WorkCenterCapacityRequirement as abap.dec(10,2)) AS WorkCenterCapRqmtInCapUnit
FROM P_WRKCTROPSHIFTLOADAGGRGD
;
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