P_SI3_Period
P_SI3_Period is a Composite CDS View in SAP S/4HANA. It reads from 1 data source (I_CalendarDate) and exposes 7 fields with key field CalendarDate.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| I_CalendarDate | I_CalendarDate | from |
Annotations (4)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | PSDSI3P | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| VDM.private | true | view | |
| VDM.viewType | #COMPOSITE | view |
Fields (7)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | CalendarDate | CalendarDate | ||
| CurrentYearMonth | YearMonth | |||
| NextYearMonth | ||||
| StartYearMonth | ||||
| StartCalendarDate | ||||
| EndYearMonth | ||||
| EndCalendarDate |
@AbapCatalog.sqlViewName: 'PSDSI3P'
@ClientHandling.algorithm: #SESSION_VARIABLE
@VDM.private: true
@VDM.viewType: #COMPOSITE
define view P_SI3_Period
as select from I_CalendarDate
{
key CalendarDate,
// Current and next month
YearMonth as CurrentYearMonth,
left( dats_add_months( CalendarDate, 1, 'FAIL'), 6 ) as NextYearMonth,
left( dats_add_months( CalendarDate, -18, 'FAIL'), 6 ) as StartYearMonth,
concat( left( dats_add_months( CalendarDate, -18, 'FAIL'), 6 ), '01') as StartCalendarDate,
left( dats_add_months( CalendarDate, 1, 'FAIL'), 6 ) as EndYearMonth,
concat( left( dats_add_months( CalendarDate, 1, 'FAIL'), 6 ), '28') as EndCalendarDate
}
where CalendarDate = $session.system_date
/*+[internal] {
"BASEINFO":
{
"FROM":
[
"I_CALENDARDATE"
],
"ASSOCIATED":
[],
"BASE":
[],
"VERSION":0
}
}*/
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