P_CalendarYear
Calendar Year in Integer
P_CalendarYear is a Composite CDS View that provides data about "Calendar Year in Integer" in SAP S/4HANA. It reads from 1 data source (I_CalendarDate) and exposes 5 fields with key field CalendarDate. Part of development package CRMS4_ANALYTICS_COMMON.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| I_CalendarDate | I_CalendarDate | from |
Annotations (5)
| Name | Value | Level | Field |
|---|---|---|---|
| ObjectModel.usageType.dataClass | #MIXED | view | |
| ObjectModel.usageType.serviceQuality | #D | view | |
| ObjectModel.usageType.sizeCategory | #XXL | view | |
| VDM.viewType | #COMPOSITE | view | |
| VDM.private | true | view |
Fields (5)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | CalendarDate | CalendarDate | ||
| CalendarYear | CalendarYear | |||
| CalendarQuarter | CalendarQuarter | |||
| _CalendarYear | _CalendarYear | |||
| _CalendarQuarter | _CalendarQuarter |
@ObjectModel: {
usageType: {
dataClass: #MIXED,
serviceQuality: #D,
sizeCategory: #XXL
}
}
@VDM: {
viewType: #COMPOSITE,
private:true
}
define view entity P_CalendarYear
as select from I_CalendarDate
{
key CalendarDate as CalendarDate,
@ObjectModel.foreignKey.association: '_CalendarYear'
CalendarYear,
@ObjectModel.foreignKey.association: '_CalendarQuarter'
CalendarQuarter,
// cast(CalendarYear as int2) as CalendarYearInt,
// cast(CalendarYear as int2) - 1 as PrevYearInt,
_CalendarYear,
_CalendarQuarter
}
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