P_SPP_TrainingPeriod

DDL: P_SPP_TRAININGPERIOD SQL: PSDSPPTP Type: view COMPOSITE

P_SPP_TrainingPeriod is a Composite CDS View in SAP S/4HANA. It reads from 1 data source (I_CalendarDate) and exposes 3 fields with key field CalendarDate.

Data Sources (1)

SourceAliasJoin Type
I_CalendarDate I_CalendarDate from

Annotations (6)

NameValueLevelField
AbapCatalog.sqlViewName PSDSPPTP view
AbapCatalog.preserveKey true view
AbapCatalog.compiler.compareFilter true view
ClientHandling.algorithm #SESSION_VARIABLE view
VDM.private true view
VDM.viewType #COMPOSITE view

Fields (3)

KeyFieldSource TableSource FieldDescription
KEY CalendarDate CalendarDate
TrainingStartDate
TrainingEndDate
@AbapCatalog.sqlViewName: 'PSDSPPTP'
@AbapCatalog.preserveKey:true
@AbapCatalog.compiler.compareFilter:true
@ClientHandling.algorithm: #SESSION_VARIABLE
@VDM.private: true
@VDM.viewType: #COMPOSITE

define view P_SPP_TrainingPeriod
as select from I_CalendarDate
{
  key CalendarDate,
  
  concat( left( dats_add_months( CalendarDate,  -24, 'FAIL'), 6 ), '01') as TrainingStartDate,
  concat( YearMonth, '01') as TrainingEndDate
}
where CalendarDate = $session.system_date
/*+[internal] {
"BASEINFO":
{
"FROM":
[
"I_CALENDARDATE"
],
"ASSOCIATED":
[],
"BASE":
[],
"ANNO_REF":
[],
"VERSION":0
}
}*/