P_WorkCenterHeaderCapacity
Work Center Header Capacity
P_WorkCenterHeaderCapacity is a Composite CDS View that provides data about "Work Center Header Capacity" in SAP S/4HANA. It reads from 1 data source (P_WorkCenterHeaderCapDef) and exposes 31 fields with key fields WorkCenterInternalID, WorkCenterTypeCode, CapacityCategoryAllocation, CapacityInternalID. Part of development package PPH_VDM_CAP_EVAL.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| P_WorkCenterHeaderCapDef | Capacity | from |
Annotations (6)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | PWORKCTRHDRCAP | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| AccessControl.authorizationCheck | #NOT_REQUIRED | view | |
| VDM.private | true | view | |
| VDM.viewType | #COMPOSITE | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view |
Fields (31)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | WorkCenterInternalID | P_WorkCenterHeaderCapDef | WorkCenterInternalID | Work Center |
| KEY | WorkCenterTypeCode | P_WorkCenterHeaderCapDef | WorkCenterTypeCode | Object Type |
| KEY | CapacityCategoryAllocation | P_WorkCenterHeaderCapDef | CapacityCategoryAllocation | |
| KEY | CapacityInternalID | P_WorkCenterHeaderCapDef | CapacityInternalID | Capacity ID |
| WorkCenter | P_WorkCenterHeaderCapDef | WorkCenter | Work Center | |
| Plant | P_WorkCenterHeaderCapDef | Plant | Valuation Area | |
| FactoryCalendar | P_WorkCenterHeaderCapDef | FactoryCalendar | Factory Calendar | |
| WorkCenterResponsible | P_WorkCenterHeaderCapDef | WorkCenterResponsible | ||
| WorkCenterDesc | P_WorkCenterHeaderCapDef | WorkCenterDesc | ||
| WorkCenterCategoryCode | P_WorkCenterHeaderCapDef | WorkCenterCategoryCode | ||
| ValidityBeginDate | ||||
| ValidityEndDate | ||||
| CapacityEndTime | P_WorkCenterHeaderCapDef | CapacityEndTime | ||
| CapacityStartTime | P_WorkCenterHeaderCapDef | CapacityStartTime | ||
| CapacityNumberOfCapacities | P_WorkCenterHeaderCapDef | CapacityNumberOfCapacities | ||
| CapacityPlanUtilizationPercent | P_WorkCenterHeaderCapDef | CapacityPlanUtilizationPercent | ||
| CapacityBreakDuration | P_WorkCenterHeaderCapDef | CapacityBreakDuration | ||
| CapacityCategoryCode | P_WorkCenterHeaderCapDef | CapacityCategoryCode | ||
| CapacityCategoryName | P_WorkCenterHeaderCapDef | CapacityCategoryName | ||
| Capacity | P_WorkCenterHeaderCapDef | Capacity | Engine Capacity | |
| CapacityResponsiblePlanner | P_WorkCenterHeaderCapDef | CapacityResponsiblePlanner | ||
| wehave0capacitythen0Calculatethecapacity | ||||
| basedonCapacityStartDate | ||||
| EndDate | ||||
| BreakdownDuration | ||||
| fltpendasOverallCapacity | ||||
| wehave0capacitythen0Calculatethecapacity | ||||
| basedonCapacityStartDate | ||||
| fltpendasCapacityOperatingDuration | ||||
| ShiftGroup | P_WorkCenterHeaderCapDef | ShiftGroup | Shift Grouping | |
| CapacityActiveVersion | P_WorkCenterHeaderCapDef | CapacityActiveVersion |
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_WorkCenterHeaderCapacity.
-- 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: PWORKCTRHDRCAP
CREATE VIEW P_WorkCenterHeaderCapacity AS
SELECT
Capacity.WorkCenterInternalID AS WorkCenterInternalID,
Capacity.WorkCenterTypeCode AS WorkCenterTypeCode,
Capacity.CapacityCategoryAllocation AS CapacityCategoryAllocation,
Capacity.CapacityInternalID AS CapacityInternalID,
Capacity.WorkCenter AS WorkCenter,
Capacity.Plant AS Plant,
Capacity.FactoryCalendar AS FactoryCalendar,
Capacity.WorkCenterResponsible AS WorkCenterResponsible,
Capacity.WorkCenterDesc AS WorkCenterDesc,
Capacity.WorkCenterCategoryCode AS WorkCenterCategoryCode,
cast('00000000' as dats) AS ValidityBeginDate,
cast('99991231' as dats) AS ValidityEndDate,
Capacity.CapacityEndTime AS CapacityEndTime,
Capacity.CapacityStartTime AS CapacityStartTime,
Capacity.CapacityNumberOfCapacities AS CapacityNumberOfCapacities,
Capacity.CapacityPlanUtilizationPercent AS CapacityPlanUtilizationPercent,
Capacity.CapacityBreakDuration AS CapacityBreakDuration,
Capacity.CapacityCategoryCode AS CapacityCategoryCode,
Capacity.CapacityCategoryName AS CapacityCategoryName,
Capacity.Capacity AS Capacity,
Capacity.CapacityResponsiblePlanner AS CapacityResponsiblePlanner,
we have 0 capacity then 0 AS wehave0capacitythen0Calculatethecapacity,
based on Capacity Start Date AS basedonCapacityStartDate,
End Date AS EndDate,
Break down Duration AS BreakdownDuration,
number of Capacities and plan utilization percent else cast((OperatingDurationWithoutBreak - CapacityBreakDuration) as abap.fltp) * cast(CapacityNumberOfCapacities as abap.fltp) * cast(CapacityPlanUtilizationPercent as abap.fltp )/ cast(100 as abap.fltp) end as OverallCapacity AS fltpendasOverallCapacity,
End Date and plan utilization percent else cast((OperatingDurationWithoutBreak - CapacityBreakDuration) as abap.fltp) * cast(CapacityPlanUtilizationPercent as abap.fltp )/ cast(100 as abap.fltp) end as CapacityOperatingDuration AS fltpendasCapacityOperatingDuration,
Capacity.ShiftGroup AS ShiftGroup,
Capacity.CapacityActiveVersion AS CapacityActiveVersion
FROM P_WorkCenterHeaderCapDef AS Capacity
;
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