P_Actualcalendardate

DDL: P_ACTUALCALENDARDATE SQL: PACTCALDATE Type: view COMPOSITE

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

Data Sources (1)

SourceAliasJoin Type
I_CalendarDate I_CalendarDate from

Parameters (1)

NameTypeDefault
P_DueDaysRange VDM_V_INTERVAL_DAY

Annotations (5)

NameValueLevelField
AbapCatalog.sqlViewName PACTCALDATE view
VDM.private true view
VDM.viewType #COMPOSITE view
AbapCatalog.compiler.compareFilter true view
AccessControl.authorizationCheck #NOT_REQUIRED view

Fields (2)

KeyFieldSource TableSource FieldDescription
KEY CalendarDate I_CalendarDate CalendarDate Calendar Date
ActualDate

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_Actualcalendardate.
-- 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: PACTCALDATE
-- Parameters: P_DueDaysRange : VDM_V_INTERVAL_DAY

CREATE VIEW P_Actualcalendardate AS
SELECT
  I_CalendarDate.CalendarDate AS CalendarDate,
  DATS_ADD_DAYS(CalendarDate, $parameters.P_DueDaysRange * -1, 'INITIAL') AS ActualDate
FROM I_CalendarDate
;