Enterprise Resource Planning Blogs by SAP
Get insights and updates about cloud ERP and RISE with SAP, SAP S/4HANA and SAP S/4HANA Cloud, and more enterprise management capabilities with SAP blog posts.
cancel
Showing results for 
Search instead for 
Did you mean: 
Monika_
Product and Topic Expert
Product and Topic Expert
whenever you open the input help for a date field (value help, F4 help) - the first day of the week in the calender is per default Monday:



You want to change the first day to e.g. Sunday?

Use the Badi CALENDAR_DEFINITION with method  GET_FIRST_DAY_OF_WEEK.

The allowed values to change the parameter weekday are:

  • MONDAY

  • TUESDAY

  • WEDNESDAY

  • THURSDAY

  • FRIDAY

  • SATURDAY

  • SUNDAY


You may use the constants defined in class interface IF_CALENDAR_DEFINITION .

For example: in the calendar, the first day of the week always shall be Sunday. The coding needed in the method will simply be:

weekday = IF_CALENDAR_DEFINITION=>C_SUNDAY.