I_PPM_CurrentPeriod
Current period for a project
I_PPM_CurrentPeriod is a Composite CDS View that provides data about "Current period for a project" in SAP S/4HANA. It reads from 2 data sources (I_FiscalYearPeriodForCmpnyCode, I_Project) and exposes 7 fields with key field ProjectInternalID.
Data Sources (2)
| Source | Alias | Join Type |
|---|---|---|
| I_FiscalYearPeriodForCmpnyCode | Period | inner |
| I_Project | Project | from |
Annotations (11)
| Name | Value | Level | Field |
|---|---|---|---|
| AbapCatalog.sqlViewName | IPPMCURRENTPERD | view | |
| AbapCatalog.compiler.compareFilter | true | view | |
| ClientHandling.algorithm | #SESSION_VARIABLE | view | |
| AccessControl.authorizationCheck | #NOT_REQUIRED | view | |
| AccessControl.personalData.blocking | #NOT_REQUIRED | view | |
| VDM.viewType | #COMPOSITE | view | |
| ObjectModel.usageType.serviceQuality | #C | view | |
| ObjectModel.usageType.dataClass | #MASTER | view | |
| ObjectModel.usageType.sizeCategory | #L | view | |
| EndUserText.label | Current period for a project | view | |
| VDM.lifecycle.contract.type | #SAP_INTERNAL_API | view |
Fields (7)
| Key | Field | Source Table | Source Field | Description |
|---|---|---|---|---|
| KEY | ProjectInternalID | ProjectInternalID | ||
| FiscalYear | FiscalYear | |||
| FiscalPeriod | FiscalPeriod | |||
| YearMonth | _FiscalPeriodStartDate | YearMonth | ||
| CalendarYear | _FiscalPeriodStartDate | CalendarYear | ||
| LastYear | ||||
| CalendarMonth | _FiscalPeriodStartDate | CalendarMonth |
@AbapCatalog.sqlViewName: 'IPPMCURRENTPERD'
@AbapCatalog.compiler.compareFilter: true
@ClientHandling.algorithm: #SESSION_VARIABLE
@AccessControl.authorizationCheck: #NOT_REQUIRED
@AccessControl.personalData.blocking: #NOT_REQUIRED
@VDM.viewType: #COMPOSITE
@ObjectModel: {
usageType: {
serviceQuality: #C,
dataClass: #MASTER,
sizeCategory: #L
}
}
@EndUserText.label: 'Current period for a project'
@VDM.lifecycle.contract.type: #SAP_INTERNAL_API
define view I_PPM_CurrentPeriod as select from I_Project as Project
inner join I_FiscalYearPeriodForCmpnyCode as Period
on Project.CompanyCode = Period.CompanyCode
{
//Period
key ProjectInternalID,
FiscalYear,
FiscalPeriod,
_FiscalPeriodStartDate.YearMonth,
_FiscalPeriodStartDate.CalendarYear,
cast( _FiscalPeriodStartDate.CalendarYear as integer ) -1 as LastYear,
_FiscalPeriodStartDate.CalendarMonth
} where Period.FiscalPeriodStartDate <= $session.system_date
and Period.FiscalPeriodEndDate >= $session.system_date
and Period.IsSpecialPeriod <> 'X'
/*+[internal] {
"BASEINFO":
{
"FROM":
[
"I_CALENDARDATE",
"I_FISCALYEARPERIODFORCMPNYCODE",
"I_PROJECT"
],
"ASSOCIATED":
[],
"BASE":
[],
"ANNO_REF":
[],
"SCALAR_FUNCTION":
[],
"VERSION":0,
"ANNOREF_EVALUATION_ERROR":""
}
}*/
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