P_EvaluationStartDate

DDL: P_EVALUATIONSTARTDATE SQL: PMMEVALSTARTDATE Type: view CONSUMPTION

Evaluation Start Date

P_EvaluationStartDate is a Consumption CDS View that provides data about "Evaluation Start Date" in SAP S/4HANA. It reads from 1 data source (I_CalendarDate) and exposes 6 fields with key field CalendarDate.

Data Sources (1)

SourceAliasJoin Type
I_CalendarDate I_CalendarDate from

Parameters (2)

NameTypeDefault
P_Date sydate
P_EvaluationTimeFrameInDays mm_a_evaluation_period

Annotations (8)

NameValueLevelField
AbapCatalog.sqlViewName PMMEVALSTARTDATE view
ClientDependent true view
AbapCatalog.compiler.compareFilter true view
VDM.viewType #CONSUMPTION view
VDM.private true view
AccessControl.authorizationCheck #PRIVILEGED_ONLY view
EndUserText.label Evaluation Start Date view
AccessControl.personalData.blocking #NOT_REQUIRED view

Fields (6)

KeyFieldSource TableSource FieldDescription
KEY CalendarDate CalendarDate Calendar Date
mykey
CurrentYearMonth YearMonth Year Month
CalendarMonth CalendarMonth Calendar Month
CalendarYear CalendarYear Year
int4FAILendasStartDate 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_EvaluationStartDate.
-- 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: PMMEVALSTARTDATE
-- Parameters: P_Date : sydate, P_EvaluationTimeFrameInDays : mm_a_evaluation_period

CREATE VIEW P_EvaluationStartDate AS
SELECT
  CalendarDate,
  'X' AS mykey,
  YearMonth AS CurrentYearMonth,
  CalendarMonth,
  CalendarYear,
  case :P_EvaluationTimeFrameInDays when 0 then cast(( concat(cast((cast(CalendarYear as abap.int4)-1) as abap.char(16 )), '0101')) as abap.dats ) else DATS_ADD_DAYS( :P_Date , -cast( :P_EvaluationTimeFrameInDays - 1 as abap.int4 ) , 'FAIL') end as StartDate AS int4FAILendasStartDate
FROM I_CalendarDate
;