@EndUserText.label: 'Date Cube'
@AbapCatalog.viewEnhancementCategory: [#NONE]
@AccessControl.authorizationCheck: #CHECK
@AccessControl.personalData.blocking: #BLOCKED_DATA_EXCLUDED
@ObjectModel.usageType:{
serviceQuality: #D,
sizeCategory: #XL,
dataClass: #MIXED
}
@Analytics: { dataCategory: #CUBE }
define view entity Ztmp_Date_Cube
as select from I_CalendarDate
{
CalendarDate,
@DefaultAggregation: #SUM
@EndUserText.label: 'Day Counter'
1 as DayCounter
}
@EndUserText.label: 'Date Query'
@VDM.viewType: #CONSUMPTION
@Analytics: { query: true }
@ObjectModel: { usageType.sizeCategory: #XXL,
usageType.dataClass: #MIXED,
usageType.serviceQuality: #D }
@Metadata: { allowExtensions:true }
@OData.publish: true
define view entity Ztmp_Date_Query
as select from Ztmp_Date_Cube
{
CalendarDate,
DayCounter
}
When we run this Query in any Analytical Application
(RSRT, BICS WD Grid, Fiori Design Studio, Analysis for Office)
we can see, that all virtual time hierarchies defined in RSRHIERARCHYVIRT
are visible and can be selected
and the results are shown in the choosen hierarchy:
and of course also in SAC we can choose the Hierarchy
instead of this option
we only see this:
@Semantics.calendar.dayOfYear: true
@Semantics.businessDate.at: true
@Semantics.systemDate.createdAt: true
.
.
@Semantics.calendar.dayOfYear: true
CalendarDate,
@Semantics.calendar.year: true
CalendarYear,
@Semantics.calendar.quarter: true
CalendarQuarter,
@Semantics.calendar.month: true
CalendarMonth,
@Semantics.calendar.week: true
CalendarWeek,
@Semantics.calendar.dayOfMonth: true
CalendarDay,
@Semantics.calendar.yearMonth: true
YearMonth,
@Semantics.calendar.yearQuarter: true
YearQuarter,
@Semantics.calendar.yearWeek: true
YearWeek,
.
.
@ObjectModel.value.derivedFrom: ['CalendarDate']
There is no dependency between different time fields by default
define view entity Ztmp_Date_Cube
as select from I_CalendarDate
{
@Semantics.calendar.dayOfYear: true
CalendarDate,
@Semantics.calendar.year: true
@ObjectModel.value.derivedFrom: ['CalendarDate']
CalendarYear,
@Semantics.calendar.quarter: true
@ObjectModel.value.derivedFrom: ['CalendarDate']
CalendarQuarter,
@Semantics.calendar.month: true
@ObjectModel.value.derivedFrom: ['CalendarDate']
CalendarMonth,
@Semantics.calendar.week: true
@ObjectModel.value.derivedFrom: ['CalendarDate']
CalendarWeek,
@Semantics.calendar.dayOfMonth: true
@ObjectModel.value.derivedFrom: ['CalendarDate']
CalendarDay,
@Semantics.calendar.yearMonth: true
@ObjectModel.value.derivedFrom: ['CalendarDate']
YearMonth,
@Semantics.calendar.yearQuarter: true
@ObjectModel.value.derivedFrom: ['CalendarDate']
YearQuarter,
@Semantics.calendar.yearWeek: true
@ObjectModel.value.derivedFrom: ['CalendarDate']
YearWeek,
@DefaultAggregation: #SUM
@EndUserText.label: 'Day Counter'
1 as DayCounter
}
define view entity Ztmp_Date_Query
as select from Ztmp_Date_Cube
{
CalendarDate,
CalendarYear,
CalendarQuarter,
CalendarMonth,
CalendarWeek,
CalendarDay,
YearMonth,
YearQuarter,
YearWeek,
DayCounter
}
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
8 | |
3 | |
3 | |
2 | |
2 | |
2 | |
2 | |
2 | |
2 | |
2 |