I_CalendarDate
Date
I_CalendarDate (Basic)
Package: Explore, extend and adapt the SAP S/4HANA Cloud Private Edition with built-in and side-by-side extension capabilities.
Cross Applications
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.
SAP API Hub
| State | C1 |
|---|---|
| Line of Business | Cross Applications |
| Application Component | CA-GTF-DF |
| Package | Cross Applications for SAP S/4HANA Cloud Private Edition |
Documentation
- Analytics with CDS Views — Build Analytics for S/4HANA Cloud Private Edition ABAP CDS views replicated to SAP Cloud Platform
- CDS Views on SAP Business Accelerator Hub — Explore SAP S/4HANA Cloud Private Edition CDS Views on SAP Business Accelerator Hub
- Create CDS View as API — Create CDS views in SAP S/4HANA Cloud Private Edition and consume them as APIs
- Custom CDS Views — Access data using a Custom Core Data Service view (Custom CDS view)
- Key User Extensibility Tools — The Key User Extensibility Tools of S/4HANA
- SAP Extensibility Explorer for SAP S/4HANA Cloud Private Edition — Explore SAP S/4HANA Cloud Private Edition Extensibility options by leveraging the sample scenarios from SAP
- SAP S/4HANA Extensibility — SAP S/4HANA Extensibility Tutorial
- VDM View Types — The Virtual Data Model in SAP S/4HANA Cloud Private Edition
- View Browser — Search, browse and tag CDS Views
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 |
Fields (22)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | CalendarDate | scal_tt_date | calendardate | Calendar Date |
| CalendarYear | scal_tt_date | calendaryear | Calendar Year | |
| CalendarQuarter | scal_tt_date | calendarquarter | Calendar Quarter | |
| CalendarMonth | scal_tt_date | calendarmonth | Calendar Month | |
| CalendarWeek | scal_tt_date | calendarweek | Calendar Week | |
| CalendarDay | scal_tt_date | calendarday | Occur Day in a Month | |
| YearMonth | scal_tt_date | yearmonth | Year Month | |
| YearQuarter | scal_tt_date | yearquarter | Year Quarter | |
| YearWeek | scal_tt_date | yearweek | Year and Calendar Week | |
| WeekDay | scal_tt_date | weekday | Weekdays | |
| FirstDayOfWeekDate | scal_tt_date | firstdayofweekdate | First day of week date | |
| FirstDayOfMonthDate | scal_tt_date | firstdayofmonthdate | First Day of Month Date | |
| LastDayOfMonthDate | scal_tt_date | lastdayofmonthdate | Last Day of Month Date | |
| CalendarDayOfYear | scal_tt_date | calendardayofyear | Calendar day of year | |
| YearDay | scal_tt_date | yearday | Day of the year | |
| _WeekDay | _WeekDay | |||
| _CalendarMonth | _CalendarMonth | |||
| _CalendarQuarter | _CalendarQuarter | |||
| _CalendarYear | _CalendarYear | |||
| _CalendarWeek | _CalendarWeek | |||
| _YearMonth | _YearMonth | |||
| _YearWeek | _YearWeek |
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 I_CalendarDate.
-- 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: ICALENDARDATE
CREATE VIEW I_CalendarDate AS
SELECT
scal_tt_date.calendardate AS CalendarDate,
scal_tt_date.calendaryear AS CalendarYear,
scal_tt_date.calendarquarter AS CalendarQuarter,
scal_tt_date.calendarmonth AS CalendarMonth,
scal_tt_date.calendarweek AS CalendarWeek,
scal_tt_date.calendarday AS CalendarDay,
scal_tt_date.yearmonth AS YearMonth,
scal_tt_date.yearquarter AS YearQuarter,
scal_tt_date.yearweek AS YearWeek,
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
FROM scal_tt_date
LEFT OUTER JOIN I_CalendarMonth AS _CalendarMonth ON _CalendarMonth.CalendarMonth = scal_tt_date.calendarmonth -- association [1..1]
LEFT OUTER JOIN I_CalendarQuarter AS _CalendarQuarter ON _CalendarQuarter.CalendarQuarter = scal_tt_date.calendarquarter -- association [1..1]
LEFT OUTER JOIN I_CalendarYear AS _CalendarYear ON _CalendarYear.CalendarYear = scal_tt_date.calendaryear -- association [1..1]
LEFT OUTER JOIN I_WeekDay AS _WeekDay ON _WeekDay.WeekDay = scal_tt_date.weekday -- association [1..1]
LEFT OUTER JOIN I_YearMonth AS _YearMonth ON _YearMonth.YearMonth = scal_tt_date.yearmonth -- association [1..1]
LEFT OUTER JOIN I_YEARWEEK AS _YearWeek ON _YearWeek.YearWeek = scal_tt_date.yearweek -- association [1..1]
LEFT OUTER JOIN I_CALENDARWEEK AS _CalendarWeek ON _CalendarWeek.CalendarWeek = scal_tt_date.calendarweek -- association [1..1]
;
Learn More
- VDM (Virtual Data Model) in SAP S/4HANA Explained
- Types of CDS Views: Basic, Composite, Consumption, and Transactional
- CDS View Annotations — A Complete Guide
- What Is a CDS View in SAP S/4HANA?
- SAP Tables vs CDS Views — Key Differences
- Understanding Data Lineage in SAP S/4HANA
- 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
- BSEG to ACDOCA: The Universal Journal Migration
- Business Partner Migration: KNA1/LFA1 to BUT000
- Material Document Migration: MSEG/MKPF to MATDOC
- How to Find the Right CDS View for an SAP Table
- BW Extractor to CDS View Migration Guide
- S/4HANA CDS View Deprecation: What You Need to Know
- ABAP CDS View Tutorial — From Basics to Real-World Examples
- RAP and CDS Views — Building Transactional Apps in SAP S/4HANA
- Sales Document Status Migration: VBUP/VBUK Removal in S/4HANA
- CO Tables in S/4HANA: COEP, COBK, COSS, COSP to ACDOCA