@AbapCatalog.sqlViewName : 'PSLSINDURATION'
@AbapCatalog.compiler.compareFilter: true
@AccessControl.authorizationCheck: #CHECK
@VDM.private: true
@VDM.viewType: #COMPOSITE
define view P_SalesInsightDuration as select from I_CalendarDate {
key CalendarDate as CurrentDate,
// CalendarYear as CurrentYear,
// YearQuarter as CurrentYearQuarter,
@Semantics.calendar.yearMonth: true
YearMonth as CurrentYearMonth,
// @Semantics.calendar.yearMonth: true
// left (dats_add_months(CalendarDate, -1,'FAIL'), 6) as LastYearMonth,
@Semantics.calendar.yearMonth: true
left (dats_add_months(CalendarDate, -5,'FAIL'), 6) as StartDateYearMonth,
@Semantics.calendar.yearMonth: true
cast ( left (dats_add_months(CalendarDate, -12,'FAIL'), 6) as vdm_yearmonth ) as ValidityStartYearMonth,
@Semantics.calendar.yearMonth: true
cast ( left (dats_add_months(CalendarDate, 1,'FAIL'), 6) as vdm_yearmonth ) as ValidityEndYearMonth,
// For year over year data
@Semantics.calendar.yearMonth: true
left (dats_add_months(CalendarDate, -24,'FAIL'), 6) as YoYStartYearMonth,
@Semantics.calendar.yearMonth: true
left (dats_add_months(CalendarDate, -11,'FAIL'), 6) as YoYEndYearMonth
}
where CalendarDate = $session.system_date
/*+[internal] {
"BASEINFO":
{
"FROM ":
[
"I_CALENDARDATE"
],
"ASSOCIATED":
[],
"BASE":
[],
"ANNO_REF":
[],
"VERSION":0,
"ANNOREF_EVALUATION_ERROR":""
}
}*/
Depth:
1
2
3
4
5
All
Reload
P_SalesInsightDuration view