I_CalendarDate
Date
I_CalendarDate is a Basic CDS View (Dimension) that provides data about "Date" in SAP S/4HANA. It reads from 1 data source (scal_tt_date) and exposes 22 fields with key field CalendarDate. It has 7 associations to related views. It is exposed through 1 OData service (UI_TRCMDTYCDMANAGE). Part of development package VDM_CAL.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| scal_tt_date | scal_tt_date | from |
Associations (7)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [1..1] | I_CalendarMonth | _CalendarMonth | _CalendarMonth.CalendarMonth = scal_tt_date.calendarmonth |
| [1..1] | I_CalendarQuarter | _CalendarQuarter | _CalendarQuarter.CalendarQuarter = scal_tt_date.calendarquarter |
| [1..1] | I_CalendarYear | _CalendarYear | _CalendarYear.CalendarYear = scal_tt_date.calendaryear |
| [1..1] | I_WeekDay | _WeekDay | _WeekDay.WeekDay = scal_tt_date.weekday |
| [1..1] | I_YearMonth | _YearMonth | _YearMonth.YearMonth = scal_tt_date.yearmonth |
| [1..1] | I_YEARWEEK | _YearWeek | _YearWeek.YearWeek = scal_tt_date.yearweek |
| [1..1] | I_CALENDARWEEK | _CalendarWeek | _CalendarWeek.CalendarWeek = scal_tt_date.calendarweek |
Annotations (14)
| Name | Value | Level | Field |
|---|---|---|---|
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| ObjectModel.representativeKey | CalendarDate | view | |
| ObjectModel.usageType.dataClass | #MIXED | view | |
| ObjectModel.usageType.serviceQuality | #C | view | |
| ObjectModel.usageType.sizeCategory | #XL | view | |
| AbapCatalog.sqlViewName | ICALENDARDATE | view | |
| AbapCatalog.preserveKey | true | view | |
| EndUserText.label | Date | view | |
| Analytics.dataCategory | #DIMENSION | view | |
| Analytics.dataExtraction.enabled | true | view | |
| AccessControl.authorizationCheck | #NOT_REQUIRED | view | |
| VDM.viewType | #BASIC | view | |
| Metadata.ignorePropagatedAnnotations | true | view | |
| Search.searchable | true | view |
OData Services (1)
| Service | Binding | Version | Contract | Release |
|---|---|---|---|---|
| UI_TRCMDTYCDMANAGE | UI_TRCMDTYCDMANAGE | V4 | C1 | NOT_RELEASED |
Fields (22)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | CalendarDate | scal_tt_date | calendardate | |
| CalendarYear | scal_tt_date | calendaryear | ||
| CalendarQuarter | scal_tt_date | calendarquarter | ||
| CalendarMonth | scal_tt_date | calendarmonth | ||
| CalendarWeek | scal_tt_date | calendarweek | ||
| CalendarDay | scal_tt_date | calendarday | ||
| YearMonth | scal_tt_date | yearmonth | ||
| YearQuarter | scal_tt_date | yearquarter | ||
| YearWeek | scal_tt_date | yearweek | ||
| WeekDay | scal_tt_date | weekday | ||
| FirstDayOfWeekDate | scal_tt_date | firstdayofweekdate | ||
| FirstDayOfMonthDate | scal_tt_date | firstdayofmonthdate | ||
| LastDayOfMonthDate | scal_tt_date | lastdayofmonthdate | ||
| CalendarDayOfYear | scal_tt_date | calendardayofyear | ||
| YearDay | scal_tt_date | yearday | ||
| _WeekDay | _WeekDay | |||
| _CalendarMonth | _CalendarMonth | |||
| _CalendarQuarter | _CalendarQuarter | |||
| _CalendarYear | _CalendarYear | |||
| _CalendarWeek | _CalendarWeek | |||
| _YearMonth | _YearMonth | |||
| _YearWeek | _YearWeek |
@ClientHandling.algorithm: #SESSION_VARIABLE
@ObjectModel.representativeKey: 'CalendarDate'
@ObjectModel.usageType.dataClass: #MIXED
@ObjectModel.usageType.serviceQuality: #C
@ObjectModel.usageType.sizeCategory: #XL
@AbapCatalog.sqlViewName: 'ICALENDARDATE'
@AbapCatalog.preserveKey: true
@EndUserText.label: 'Date'
@Analytics : {dataCategory: #DIMENSION, dataExtraction.enabled : true}
@AccessControl.authorizationCheck: #NOT_REQUIRED
@VDM.viewType: #BASIC
@Metadata.ignorePropagatedAnnotations:true
@Search.searchable: true
define view I_CalendarDate as select from scal_tt_date
// inner join I_SAPClient as _SAPClient on sapclient is not null
association [1..1] to I_CalendarMonth as _CalendarMonth
on _CalendarMonth.CalendarMonth = scal_tt_date.calendarmonth
association [1..1] to I_CalendarQuarter as _CalendarQuarter
on _CalendarQuarter.CalendarQuarter = scal_tt_date.calendarquarter
association [1..1] to I_CalendarYear as _CalendarYear
on _CalendarYear.CalendarYear = scal_tt_date.calendaryear
association [1..1] to I_WeekDay as _WeekDay
on _WeekDay.WeekDay = scal_tt_date.weekday
association [1..1] to I_YearMonth as _YearMonth
on _YearMonth.YearMonth = scal_tt_date.yearmonth
association [1..1] to I_YEARWEEK as _YearWeek
on _YearWeek.YearWeek = scal_tt_date.yearweek
association [1..1] to I_CALENDARWEEK as _CalendarWeek
on _CalendarWeek.CalendarWeek = scal_tt_date.calendarweek
{
key scal_tt_date.calendardate as CalendarDate,
@ObjectModel.foreignKey.association: '_CalendarYear'
scal_tt_date.calendaryear as CalendarYear,
@ObjectModel.foreignKey.association: '_CalendarQuarter'
scal_tt_date.calendarquarter as CalendarQuarter,
@ObjectModel.foreignKey.association: '_CalendarMonth'
scal_tt_date.calendarmonth as CalendarMonth,
@ObjectModel.foreignKey.association: '_CalendarWeek'
scal_tt_date.calendarweek as CalendarWeek,
scal_tt_date.calendarday as CalendarDay,
@ObjectModel.foreignKey.association: '_YearMonth'
scal_tt_date.yearmonth as YearMonth,
scal_tt_date.yearquarter as YearQuarter,
@Search.defaultSearchElement : true
@Search.ranking: #HIGH
@ObjectModel.foreignKey.association: '_YearWeek'
scal_tt_date.yearweek as YearWeek,
@ObjectModel.foreignKey.association: '_WeekDay'
scal_tt_date.weekday as WeekDay,
scal_tt_date.firstdayofweekdate as FirstDayOfWeekDate,
scal_tt_date.firstdayofmonthdate as FirstDayOfMonthDate,
scal_tt_date.lastdayofmonthdate as LastDayOfMonthDate,
scal_tt_date.calendardayofyear as CalendarDayOfYear,
scal_tt_date.yearday as YearDay,
_WeekDay,
_CalendarMonth,
_CalendarQuarter,
_CalendarYear,
_CalendarWeek,
_YearMonth,
_YearWeek
}
Learn More
- What Is a CDS View in SAP S/4HANA?
- Types of CDS Views: Basic, Composite, Consumption, and Transactional
- SAP Tables vs CDS Views — Key Differences
- Understanding Data Lineage in SAP S/4HANA
- VDM (Virtual Data Model) in SAP S/4HANA Explained
- CDS View Annotations — A Complete Guide
- CDS View Field Mapping and Associations
- Understanding the SAP S/4HANA Data Model
- CDS View Extensions and Custom Fields in SAP S/4HANA
- Released APIs and Stability Contracts in SAP S/4HANA