@VDM.viewType: #COMPOSITE
@AccessControl.authorizationCheck: #NOT_REQUIRED
@AbapCatalog.sqlViewName : 'PGLEFFCAL'
@Analytics: { dataExtraction.enabled: false }
@ClientHandling.algorithm: #SESSION_VARIABLE
@ObjectModel.usageType.sizeCategory: #S
@ObjectModel.usageType.serviceQuality: #B
@ObjectModel.usageType.dataClass: #CUSTOMIZING
@VDM.private:true
define view P_GLEffectivityCalendar
as select from I_CalendarDate as _c1
join I_CalendarDate as _c3 on _c3.CalendarDate = DATS_ADD_MONTHS(_c1.CalendarDate, - 12, 'FAIL')
inner join I_YearMonth as _c2 on _c2.CalendarYear = _c1.CalendarYear
or _c2.CalendarYear = _c3.CalendarYear
{
key _c2.YearMonth,
_c1.CalendarDate,
@ObjectModel.text.element: ['CalendarMonthName']
//cast (1 + DIV(DATS_DAYS_BETWEEN(cast (CONCAT(_c2.YearMonth, '01') as sydate), _c1.CalendarDate), 30) as fac_gl_ovp_timeperiod_month) as EvaluationTimeFrameInMonths,
cast (1 + DIV(DATS_DAYS_BETWEEN(cast (CONCAT(_c2.YearMonth, '01') as sydate), _c1.CalendarDate), 30) as fac_gl_ovp_timeperiod_month) as EvaluationTimeFrameInMonths,
// 1 + DIV(DATS_DAYS_BETWEEN(cast (CONCAT(_c2.YearMonth, '01') as sydate), _c1.CalendarDate), 30) as EvaluationTimeFrameInMonths,
@Semantics.text:true
_c2._CalendarMonth._Text[1: Language = $session.system_language ].CalendarMonthName
}
where
_c1.CalendarDate > '20000101'
/*+[internal] {
"BASEINFO":
{
"FROM ":
[
"I_CALENDARDATE",
"I_CALENDARMONTH",
"I_CALENDARMONTHTEXT",
"I_YEARMONTH"
],
"ASSOCIATED":
[],
"BASE":
[],
"ANNO_REF":
[],
"VERSION":0
}
}*/
Depth:
1
2
3
4
5
All
Reload
P_GLEffectivityCalendar view