P_Calendar

DDL: P_CALENDAR Type: view_entity COMPOSITE Package: CRMS4_ANALYTICS_COMMON

Calendar

P_Calendar is a Composite CDS View that provides data about "Calendar" in SAP S/4HANA. It reads from 1 data source (I_CalendarDate) and exposes 5 fields. Part of development package CRMS4_ANALYTICS_COMMON.

Data Sources (1)

SourceAliasJoin Type
I_CalendarDate I_CalendarDate from

Annotations (6)

NameValueLevelField
AccessControl.authorizationCheck #NOT_REQUIRED view
ObjectModel.usageType.dataClass #TRANSACTIONAL view
ObjectModel.usageType.serviceQuality #B view
ObjectModel.usageType.sizeCategory #XXL view
VDM.viewType #COMPOSITE view
VDM.private true view

Fields (5)

KeyFieldSource TableSource FieldDescription
FirstDayOfYearDate
CalendarDate CalendarDate Calendar Date
YearMonth YearMonth Year Month
YearQuarter YearQuarter Year Quarter
YearDay YearDay Day of the year

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_Calendar.
-- 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.

CREATE VIEW P_Calendar AS
SELECT
  cast(concat(CalendarYear, '0101') as abap.dats(8)) AS FirstDayOfYearDate,
  CalendarDate,
  YearMonth,
  YearQuarter,
  YearDay
FROM I_CalendarDate
;