P_CurrentCalendarDateYearMonth
Year Month of Current Calendar Date for F2601
P_CurrentCalendarDateYearMonth is a Composite CDS View that provides data about "Year Month of Current Calendar Date for F2601" in SAP S/4HANA. It reads from 1 data source (I_CalendarDate) and exposes 5 fields with key field CalendarDate. Part of development package VDM_SD_ANALYTICS.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| I_CalendarDate | I_CalendarDate | from |
Parameters (2)
| Name | Type | Default |
|---|---|---|
| P_Date | sydatum | |
| P_NumberOfMonths | num_of_months |
Annotations (7)
| Name | Value | Level | Field |
|---|---|---|---|
| Metadata.ignorePropagatedAnnotations | true | view | |
| ObjectModel.usageType.dataClass | #MIXED | view | |
| ObjectModel.usageType.serviceQuality | #C | view | |
| ObjectModel.usageType.sizeCategory | #S | view | |
| VDM.private | true | view | |
| VDM.viewType | #COMPOSITE | view | |
| AccessControl.authorizationCheck | #NOT_REQUIRED | view |
Fields (5)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | CalendarDate | CalendarDate | ||
| CalendarMonth | CalendarMonth | |||
| _CalendarMonth | _CalendarMonth | |||
| YearMonth | YearMonth | |||
| IsCurrentYearTransaction |
@Metadata.ignorePropagatedAnnotations: true
@ObjectModel.usageType.dataClass: #MIXED
@ObjectModel.usageType.serviceQuality: #C
@ObjectModel.usageType.sizeCategory: #S
@VDM.private: true
@VDM.viewType: #COMPOSITE
@AccessControl.authorizationCheck: #NOT_REQUIRED
define view entity P_CurrentCalendarDateYearMonth
with parameters
P_Date: sydatum,
P_NumberOfMonths: num_of_months
as select from I_CalendarDate
{
key CalendarDate,
@ObjectModel.foreignKey.association: '_CalendarMonth'
CalendarMonth,
_CalendarMonth,
YearMonth,
'X' as IsCurrentYearTransaction
}
where FirstDayOfMonthDate > dats_add_months( $parameters.P_Date, -1 * $parameters.P_NumberOfMonths,'FAIL' )
and FirstDayOfMonthDate <= $parameters.P_Date
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