P_ProjCalendarWeekClassfctn
Calendar Weeks Classification into Categories
P_ProjCalendarWeekClassfctn is a Composite CDS View that provides data about "Calendar Weeks Classification into Categories" in SAP S/4HANA. It reads from 1 data source (I_CalendarDate) and exposes 7 fields with key fields CalendarDate, CalendarWeek, CalendarYear. It has 1 association to related views. Part of development package ODATA_PPM_PRO_KEYFIGURES.
Data Sources (1)
| Source | Alias | Join Type |
|---|---|---|
| I_CalendarDate | I_CalendarDate | from |
Associations (1)
| Cardinality | Target | Alias | Condition |
|---|---|---|---|
| [0..1] | I_CalendarDate | _CurrentCalendarDate | _CurrentCalendarDate.CalendarDate = $session.system_date |
Annotations (8)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | PPRCALNDRWEEK | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| AccessControl.authorizationCheck | #NOT_REQUIRED | view | |
| VDM.viewType | #COMPOSITE | view | |
| VDM.private | true | view | |
| ObjectModel.usageType.dataClass | #MIXED | view | |
| ObjectModel.usageType.serviceQuality | #C | view | |
| ObjectModel.usageType.sizeCategory | #XL | view |
Fields (7)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | CalendarDate | CalendarDate | ||
| KEY | CalendarWeek | CalendarWeek | ||
| KEY | CalendarYear | CalendarYear | ||
| YearWeek | YearWeek | |||
| FirstCalendarWeekInterval | _CurrentCalendarDate | CalendarWeek | ||
| IntervalStartDate | ||||
| IntervalEndDate |
@AbapCatalog.sqlViewName: 'PPRCALNDRWEEK'
@AbapCatalog.compiler.compareFilter: true
@AccessControl.authorizationCheck: #NOT_REQUIRED
@VDM.viewType: #COMPOSITE
@VDM.private: true
@ObjectModel.usageType.dataClass: #MIXED
@ObjectModel.usageType.serviceQuality: #C
@ObjectModel.usageType.sizeCategory: #XL
define view P_ProjCalendarWeekClassfctn
as select from I_CalendarDate
association [0..1] to I_CalendarDate as _CurrentCalendarDate on _CurrentCalendarDate.CalendarDate = $session.system_date
{
key CalendarDate,
key CalendarWeek,
key CalendarYear,
YearWeek,
_CurrentCalendarDate.CalendarWeek as FirstCalendarWeekInterval,
dats_add_days(_CurrentCalendarDate.FirstDayOfWeekDate,7,'FAIL') as IntervalStartDate,
dats_add_days(_CurrentCalendarDate.FirstDayOfWeekDate, 42, 'FAIL') as IntervalEndDate
}
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