I_PPM_CurrentPeriod

DDL: I_PPM_CURRENTPERIOD SQL: IPPMCURRENTPERD Type: view COMPOSITE

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)

SourceAliasJoin Type
I_FiscalYearPeriodForCmpnyCode Period inner
I_Project Project from

Annotations (11)

NameValueLevelField
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)

KeyFieldSource TableSource FieldDescription
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":""
}
}*/