P_RSHWCCapPerWorkDayForPeriod

DDL: P_RSHWCCAPPERWORKDAYFORPERIOD SQL: PRSHWCCAPWRKDPER Type: view CONSUMPTION

P_RSHWCCapPerWorkDayForPeriod is a Consumption CDS View in SAP S/4HANA. It reads from 2 data sources (P_RSHCALWORKDAYS, P_RSHWCCapacityPerDayForPeriod) and exposes 20 fields with key fields CapacityInternalID, CalendarDate, CapacityStartTime, WeekDay, WorkCenterInternalID.

Data Sources (2)

SourceAliasJoin Type
P_RSHCALWORKDAYS P_RSHCALWORKDAYS inner
P_RSHWCCapacityPerDayForPeriod P_RSHWCCapacityPerDayForPeriod from

Parameters (2)

NameTypeDefault
P_StartDate datum
P_EndDate datum

Annotations (9)

NameValueLevelField
AbapCatalog.sqlViewName PRSHWCCAPWRKDPER view
AbapCatalog.compiler.compareFilter true view
AccessControl.authorizationCheck #NOT_REQUIRED view
VDM.private true view
VDM.viewType #CONSUMPTION view
ClientHandling.algorithm #SESSION_VARIABLE view
ObjectModel.usageType.dataClass #MASTER view
ObjectModel.usageType.serviceQuality #X view
ObjectModel.usageType.sizeCategory #L view

Fields (20)

KeyFieldSource TableSource FieldDescription
KEY CapacityInternalID CapacityPerDay CapacityInternalID Capacity ID
KEY CalendarDate CapacityPerDay CalendarDate Calendar Date
KEY CapacityStartTime CapacityPerDay CapacityStartTime
KEY WeekDay CapacityPerDay WeekDay Weekdays
KEY WorkCenterInternalID
WorkCenter WorkCenter Work Center
WorkCenterCategoryCode WorkCenterCategoryCode
WorkCenterTypeCode WorkCenterTypeCode Object Type
Plant Plant Valuation Area
AvailableCapacityShift AvailableCapacityShift Capacity Shift
NightSplitDate NightSplitDate
AvailableCapacityIntervalDurn AvailableCapacityIntervalDurn
WorkDayRule WorkDayRule Recurrence Weekdays
CapacityBreakDuration CapacityBreakDuration
WorkDays WorkDays
CapacityEndTime CapacityEndTime
CapacityNumberOfCapacities CapacityNumberOfCapacities
CapacityPlanUtilizationPercent CapacityPlanUtilizationPercent
FactoryCalendar FactoryCalendar Factory Calendar
YearWeek YearWeek Year and Calendar Week

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_RSHWCCapPerWorkDayForPeriod.
-- 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: PRSHWCCAPWRKDPER
-- Parameters: P_StartDate : datum, P_EndDate : datum

CREATE VIEW P_RSHWCCapPerWorkDayForPeriod AS
SELECT
  CapacityPerDay.CapacityInternalID AS CapacityInternalID,
  CapacityPerDay.CalendarDate AS CalendarDate,
  CapacityPerDay.CapacityStartTime AS CapacityStartTime,
  CapacityPerDay.WeekDay AS WeekDay,
  CapacityPerDay. WorkCenterInternalID AS WorkCenterInternalID,
  WorkCenter,
  WorkCenterCategoryCode,
  WorkCenterTypeCode,
  Plant,
  AvailableCapacityShift,
  NightSplitDate,
  AvailableCapacityIntervalDurn,
  WorkDayRule,
  CapacityBreakDuration,
  WorkDays,
  CapacityEndTime,
  CapacityNumberOfCapacities,
  CapacityPlanUtilizationPercent,
  FactoryCalendar,
  YearWeek
FROM P_RSHWCCapacityPerDayForPeriod
INNER JOIN P_RSHCALWORKDAYS ON /* join condition not captured in parsed metadata */
;