P_RSHWorkCenterWrkgTmeIntvl

DDL: P_RSHWORKCENTERWRKGTMEINTVL SQL: PRSHWRKGINT Type: view CONSUMPTION

Working Interval for the work center is returned

P_RSHWorkCenterWrkgTmeIntvl is a Consumption CDS View that provides data about "Working Interval for the work center is returned" in SAP S/4HANA. It reads from 2 data sources (P_RSHCALWORKDAYS, P_RSHWCCapacityPerDayForPeriod) and exposes 15 fields with key fields WorkCenterInternalID, WorkCenterTypeCode, CapacityInternalID, CalendarDate, CapacityStartTime.

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

NameValueLevelField
AbapCatalog.sqlViewName PRSHWRKGINT view
VDM.private true view
VDM.viewType #CONSUMPTION view
AbapCatalog.preserveKey true view
AbapCatalog.compiler.compareFilter true view
ClientHandling.algorithm #SESSION_VARIABLE view
EndUserText.label Working Interval for the work center is returned view

Fields (15)

KeyFieldSource TableSource FieldDescription
KEY WorkCenterInternalID CapacityPerDay WorkCenterInternalID Work Center
KEY WorkCenterTypeCode CapacityPerDay WorkCenterTypeCode Object Type
KEY CapacityInternalID CapacityPerDay CapacityInternalID Capacity ID
KEY CalendarDate CapacityPerDay CalendarDate Calendar Date
KEY CapacityStartTime CapacityPerDay CapacityStartTime
WorkCenter WorkCenter Work Center
WorkCenterCategoryCode WorkCenterCategoryCode
Plant Plant Valuation Area
WorkDayRule WorkDayRule Recurrence Weekdays
WorkDays WorkDays
CapacityEndTime CapacityEndTime
OperatingDurationInSeconds
TotOperatingDurationInSeconds
ValidityStartDateTime
ValidityEndDateTime

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_RSHWorkCenterWrkgTmeIntvl.
-- 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: PRSHWRKGINT
-- Parameters: P_StartDate : datum, P_EndDate : datum

CREATE VIEW P_RSHWorkCenterWrkgTmeIntvl AS
SELECT
  CapacityPerDay.WorkCenterInternalID AS WorkCenterInternalID,
  CapacityPerDay.WorkCenterTypeCode AS WorkCenterTypeCode,
  CapacityPerDay.CapacityInternalID AS CapacityInternalID,
  CapacityPerDay.CalendarDate AS CalendarDate,
  CapacityPerDay.CapacityStartTime AS CapacityStartTime,
  WorkCenter,
  WorkCenterCategoryCode,
  Plant,
  WorkDayRule,
  WorkDays,
  CapacityEndTime,
  FLTP_TO_DEC( CapacityPerDay.OperatingDurationInSeconds as abap.dec(24,0) ) AS OperatingDurationInSeconds,
  FLTP_TO_DEC( CapacityPerDay.TotOperatingDurationInSeconds as abap.dec(24,0) ) AS TotOperatingDurationInSeconds,
  cast(dats_tims_to_tstmp( '00000000', cast('000000' as tims),abap_system_timezone( $session.client,'NULL'),$session.client,'NULL') as timestamp preserving type) AS ValidityStartDateTime,
  cast(dats_tims_to_tstmp( '00000000', cast('235959' as tims),abap_system_timezone( $session.client,'NULL'),$session.client,'NULL') as timestamp preserving type) AS ValidityEndDateTime
FROM P_RSHWCCapacityPerDayForPeriod
INNER JOIN P_RSHCALWORKDAYS ON /* join condition not captured in parsed metadata */
;