P_RPTCYL_WEEK_DATE

DDL: P_RPTCYL_WEEK_DATE SQL: PRPTCY_WKDT Type: view COMPOSITE

P_RPTCYL_WEEK_DATE is a Composite CDS View in SAP S/4HANA. It reads from 1 data source (I_CalendarDate) and exposes 3 fields with key fields CalendarYear, CalendarWeek.

Data Sources (1)

SourceAliasJoin Type
I_CalendarDate I_CalendarDate from

Parameters (2)

NameTypeDefault
p_date datum
p_week numc2

Annotations (8)

NameValueLevelField
AbapCatalog.sqlViewName PRPTCY_WKDT view
AbapCatalog.compiler.compareFilter true view
ObjectModel.usageType.serviceQuality #D view
ObjectModel.usageType.sizeCategory #S view
VDM.private true view
VDM.viewType #COMPOSITE view
AccessControl.authorizationCheck #NOT_REQUIRED view
ClientHandling.algorithm #SESSION_VARIABLE view

Fields (3)

KeyFieldSource TableSource FieldDescription
KEY CalendarYear CalendarYear Year
KEY CalendarWeek CalendarWeek Calendar Week
daycount

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_RPTCYL_WEEK_DATE.
-- 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: PRPTCY_WKDT
-- Parameters: p_date : datum, p_week : numc2

CREATE VIEW P_RPTCYL_WEEK_DATE AS
SELECT
  CalendarYear,
  CalendarWeek,
  count( * ) AS daycount
FROM I_CalendarDate
;