P_RshDatsFirstLastDayMonths

DDL: P_RSHDATSFIRSTLASTDAYMONTHS SQL: P_RSHDATSFRSTLST Type: view COMPOSITE

P_RshDatsFirstLastDayMonths is a Composite CDS View in SAP S/4HANA. It reads from 1 data source (I_CalendarDate) and exposes 3 fields with key field firstDate.

Data Sources (1)

SourceAliasJoin Type
I_CalendarDate I_CalendarDate from

Parameters (2)

NameTypeDefault
P_CalendarDate dats
P_NumberOfMonths rsh_number_of_months

Annotations (9)

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

Fields (3)

KeyFieldSource TableSource FieldDescription
KEY firstDate I_CalendarDate FirstDayOfMonthDate First Day of Month
calendarDate
numberOfMonths

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_RshDatsFirstLastDayMonths.
-- 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: P_RSHDATSFRSTLST
-- Parameters: P_CalendarDate : dats, P_NumberOfMonths : rsh_number_of_months

CREATE VIEW P_RshDatsFirstLastDayMonths AS
SELECT
  I_CalendarDate.FirstDayOfMonthDate AS firstDate,
  $parameters.P_CalendarDate AS calendarDate,
  $parameters.P_NumberOfMonths AS numberOfMonths
FROM I_CalendarDate
;