P_CalendarYear

DDL: P_CALENDARYEAR Type: view COMPOSITE

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

Data Sources (1)

SourceAliasJoin Type
I_CalendarDate I_CalendarDate from

Annotations (9)

NameValueLevelField
ClientHandling.algorithm #SESSION_VARIABLE view
AbapCatalog.sqlViewName PCALENDARYEAR view
AbapCatalog.compiler.compareFilter true view
AbapCatalog.preserveKey true view
ObjectModel.usageType.dataClass #MIXED view
ObjectModel.usageType.serviceQuality #D view
ObjectModel.usageType.sizeCategory #XXL view
VDM.viewType #COMPOSITE view
VDM.private true view

Fields (5)

KeyFieldSource TableSource FieldDescription
KEY CalendarDate CalendarDate
CalendarYear CalendarYear
CalendarQuarter CalendarQuarter
_CalendarYear _CalendarYear
_CalendarQuarter _CalendarQuarter
@ClientHandling.algorithm: #SESSION_VARIABLE
@AbapCatalog:{
sqlViewName: 'PCALENDARYEAR',
compiler.compareFilter: true,
preserveKey: true
}
@ObjectModel: {
   usageType: {
     dataClass:      #MIXED,
     serviceQuality: #D,
     sizeCategory:   #XXL
   }
   }
@VDM: {
  viewType: #COMPOSITE,
  private:true
}

define view P_CalendarYear
  as select from I_CalendarDate
{
  key CalendarDate                   as CalendarDate,
      @ObjectModel.foreignKey.association: '_CalendarYear'
      CalendarYear,
      @ObjectModel.foreignKey.association: '_CalendarQuarter'
      CalendarQuarter,
 //     cast(CalendarYear as int2)     as CalendarYearInt,

  //    cast(CalendarYear as int2) - 1 as PrevYearInt,


      _CalendarYear,
      _CalendarQuarter
}
/*+[internal] {
"BASEINFO":
{
"FROM":
[
"I_CALENDARDATE"
],
"ASSOCIATED":
[
"I_CALENDARQUARTER",
"I_CALENDARYEAR"
],
"BASE":
[
"I_CALENDARDATE"
],
"ANNO_REF":
[],
"VERSION":0
}
}*/