P_SPP_TrainingPeriod

DDL: P_SPP_TRAININGPERIOD SQL: PSDSPPTP Type: view COMPOSITE Package: VDM_SD_PREDICTED_SALES

Training Period

P_SPP_TrainingPeriod is a Composite CDS View that provides data about "Training Period" in SAP S/4HANA. It reads from 1 data source (I_CalendarDate) and exposes 3 fields with key field CalendarDate. Part of development package VDM_SD_PREDICTED_SALES.

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