P_RSHResourceWeeklyUtilization

DDL: P_RSHRESOURCEWEEKLYUTILIZATION SQL: PRSHRESWEEKLYUTL Type: view COMPOSITE

P_RSHResourceWeeklyUtilization is a Composite CDS View in SAP S/4HANA. It reads from 2 data sources (I_CalendarDate, P_RSHResourceUtilization) and exposes 6 fields with key fields EmploymentInternalID, YearWeek.

Data Sources (2)

SourceAliasJoin Type
I_CalendarDate _CalendarDate inner
P_RSHResourceUtilization _ResourceUtilization from

Parameters (3)

NameTypeDefault
P_StartDate syst_datum
P_EndDate syst_datum
P_WeekStart abap.int1

Annotations (9)

NameValueLevelField
AbapCatalog.sqlViewName PRSHRESWEEKLYUTL view
AbapCatalog.compiler.compareFilter true view
AccessControl.authorizationCheck #NOT_ALLOWED view
VDM.viewType #COMPOSITE view
VDM.private true view
ObjectModel.usageType.serviceQuality #X view
ObjectModel.usageType.dataClass #MIXED view
ObjectModel.usageType.sizeCategory #XL view
ClientHandling.algorithm #SESSION_VARIABLE view

Fields (6)

KeyFieldSource TableSource FieldDescription
KEY EmploymentInternalID EmploymentInternalId WorkForce Assgmt ID
KEY YearWeek YearWeek Year and Calendar Week
StartDate
EndDate
EmployeeAvailabilityInHours
EmployeeStaffedHours

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_RSHResourceWeeklyUtilization.
-- 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: PRSHRESWEEKLYUTL
-- Parameters: P_StartDate : syst_datum, P_EndDate : syst_datum, P_WeekStart : abap.int1

CREATE VIEW P_RSHResourceWeeklyUtilization AS
SELECT
  EmploymentInternalID,
  YearWeek,
  min(_ResourceUtilization.CalendarDate) AS StartDate,
  max(_ResourceUtilization.CalendarDate) AS EndDate,
  sum(EmployeeAvailableHours ) AS EmployeeAvailabilityInHours,
  sum(EmployeeStaffedHours ) AS EmployeeStaffedHours
FROM P_RSHResourceUtilization AS _ResourceUtilization
INNER JOIN I_CalendarDate AS _CalendarDate ON /* join condition not captured in parsed metadata */
;