P_APCurrentMonth
P_APCurrentMonth is a Composite CDS View in SAP S/4HANA. It reads from 2 data sources (P_APCalendar, I_CalendarDate) and exposes 5 fields with key fields CalendarYear, CalendarMonth.
Data Sources (2)
| Source | Alias | Join Type |
|---|---|---|
| P_APCalendar | CA | inner |
| I_CalendarDate | CD | from |
Annotations (5)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | PAPCURMONTH | view | |
| VDM.viewType | #COMPOSITE | view | |
| VDM.private | true | view | |
| AccessControl.authorizationCheck | #NOT_REQUIRED | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view |
Fields (5)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | CalendarYear | I_CalendarDate | CalendarYear | |
| KEY | CalendarMonth | I_CalendarDate | CalendarMonth | |
| CalendarDate | I_CalendarDate | CalendarDate | ||
| FirstDayOfMonth | FirstDayOfMonth | |||
| LastDayOfMonth | LastDayOfMonth |
@AbapCatalog.sqlViewName: 'PAPCURMONTH'
@VDM.viewType: #COMPOSITE
@VDM.private:true
@AccessControl.authorizationCheck: #NOT_REQUIRED
@ClientHandling.algorithm: #SESSION_VARIABLE
define view P_APCurrentMonth
as select from I_CalendarDate as CD
inner join P_APCalendar as CA on CA.YearMonth = CD.YearMonth
{
key CD.CalendarYear,
key CD.CalendarMonth,
CD.CalendarDate,
FirstDayOfMonth,
LastDayOfMonth
}
where
CD.CalendarDate = $session.system_date
/*+[internal] {
"BASEINFO":
{
"FROM":
[
"I_CALENDARDATE",
"P_APCALENDAR"
],
"ASSOCIATED":
[],
"BASE":
[],
"ANNO_REF":
[],
"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