P_WorkCenterHeaderCapacity

DDL: P_WORKCENTERHEADERCAPACITY SQL: PWORKCTRHDRCAP Type: view COMPOSITE Package: PPH_VDM_CAP_EVAL

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)

SourceAliasJoin Type
P_WorkCenterHeaderCapDef Capacity from

Annotations (6)

NameValueLevelField
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)

KeyFieldSource TableSource FieldDescription
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
;