SAP Knowledge Base Article - Public

1417339 - How to find the last date defined for an Enterprise calendar using .NET C#


When looking at a Calendar in the CMC, you can't always tell when it ends.  Just because every Friday is selected for the next year doesn't mean that those repeating Fridays weren't set to end 3 years from now.  Without paging all the way to the end (9999) or at least as far as you care about (maybe 4 or 5 years), there's no way to know for sure.


  • BusinessObjects Enterprise XI Release 2
  • BusinessObjects Enterprise XI Release 3.1
  • .NET C#


A sample is attached to the note: NET_CS_Enterprise_BE12_Calendar_End.

It queries for all of the calendars and examines their CalendarDays, remembering the latest one.


calendar end last latest stops defined day date net c# cs enterprise , KBA , BI-DEV-NET-SDK , .NET SDK / COM SDK , How To


Crystal Reports 2008 V0 ; Crystal Reports 2008 V1 ; SAP Crystal Reports XI R2