P_Calendar

DDL: P_CALENDAR Type: view COMPOSITE

P_Calendar is a Composite CDS View in SAP S/4HANA. It reads from 1 data source (I_CalendarDate) and exposes 5 fields.

Data Sources (1)

SourceAliasJoin Type
I_CalendarDate I_CalendarDate from

Annotations (10)

NameValueLevelField
ClientHandling.algorithm #SESSION_VARIABLE view
AbapCatalog.sqlViewName PCALENDAR view
AbapCatalog.compiler.compareFilter true view
AbapCatalog.preserveKey true view
AccessControl.authorizationCheck #CHECK view
ObjectModel.usageType.dataClass #TRANSACTIONAL view
ObjectModel.usageType.serviceQuality #B view
ObjectModel.usageType.sizeCategory #XXL view
VDM.viewType #COMPOSITE view
VDM.private true view

Fields (5)

KeyFieldSource TableSource FieldDescription
FirstDayOfYearDate
CalendarDate CalendarDate
YearMonth YearMonth
YearQuarter YearQuarter
YearDay YearDay
@ClientHandling.algorithm: #SESSION_VARIABLE
@AbapCatalog:{
sqlViewName: 'PCALENDAR',
compiler.compareFilter: true,
preserveKey: true
}
@AccessControl: {
  authorizationCheck: #CHECK,
  personalData.blocking: #('TRANSACTIONAL_DATA')
}
//@EndUserText.label: 'Service Contract Days'

@ObjectModel: {
   usageType: {
     dataClass:      #TRANSACTIONAL,
     serviceQuality: #B,
     sizeCategory:   #XXL
   }
   }
@VDM: {
  viewType: #COMPOSITE,
  private:true
}
define view P_Calendar
  as select from I_CalendarDate
{
  cast(concat(CalendarYear, '0101') as abap.dats(8))                                              as FirstDayOfYearDate,
  CalendarDate,
  YearMonth,
  YearQuarter,
//  cast(concat('00',cast(CalendarWeek as abap.char( 4 ))) as abap.numc( 4 ))                       as CalendarWeek,

//  cast(concat('00',(cast( cast(CalendarWeek as int4) + 52 as abap.char(12 )))) as abap.numc( 4 )) as EndDateWeek,

  YearDay
}
/*+[internal] {
"BASEINFO":
{
"FROM":
[
"I_CALENDARDATE"
],
"ASSOCIATED":
[],
"BASE":
[],
"ANNO_REF":
[],
"VERSION":0
}
}*/