Académique Documents
Professionnel Documents
Culture Documents
SAP calendar master consists of three separate sub-objects which are inter-linked to each other:
Public Holidays,
Factory Calendar.
Public holidays :
Public holidays can be defined and be combined into holiday calendars.
Public holidays describe the statutory holidays for a particular country or region within a country.
Fixed date
Easter Sunday
Moveable holiday (with individual specification of dates during each specified year).
For holidays with fixed date (such as Christmas) and moveable holidays it is possible to specify simple rules
guaranteeing the holiday if it falls on certain days of the week (Thu, Fri, Sun, Sat/Sun). For instance, Christmas day
public holiday may be moved to the next working day if it falls on a Saturday or Sunday.
Holiday calendar :
Holiday calendar is assigned to each factory calendar.
Factory calendar
Factory calendar contain company specific dates such as alternate working Saturdays and holidays.
T-Code :
SCAL
IMG SPRO -> Time Management -> Work Schedules
2.
3.
4.
.
.
with fixed date: This public holiday falls on the same date every year (e.g. Christmas Day).
Enter the Public Holiday Definition.
i.
ii.
iii.
Not Guaranteed: Indicates that the public holiday should not be moved
if it falls on a weekend.
2.
b.
i.
Sort Criterion: use this to display logically related holidays in a block, e.g. all
holidays for a country.
ii.
iii.
Public Holiday Class: this specifies the holiday type. It can be used to
determine the groups of holidays and normal days. (e.g. '1' is ordinary public holiday).
iv.
2.
Floating Public Holiday: This public holiday is not fixed. It must be defined explicitly each
year. (e.g. Vesak Full Moon Poya Day).
a.
Enter the Public Holiday into relevant boxes: Year/Month/Day (e.g. 2012, 05, 05).
b.
Enter the Public Holiday Attributes and click Insert Date icon.
2.
3.
4.
Enter the Calendar ID and the Name of the calendar. A holiday calendar is identified in the
system by a two-character calendar ID.
Enter the validity of the calendar.
Assign Holidays
1.
1.
From the Insert Public Holidays into Holiday Calendar screen, search for the respective
calendar and select the holidays you want to allow.
2.
3.
The public holiday gets added; click on save button to save the holiday calendar.
4.
1.
Select the working days and assign a holiday calendar to factory calendar.
2.
3.
Enter the Factory Calendar ID (same as the Holiday Calendar) and the Factory Calendar Name.
4.
5.
Save.
Special Rules:
Special rules are used to define a date (or periods) as a holiday or as a workday, which is not maintained in the
holiday calender (which is applicable for that year only).
In the Public Holiday definition you can determine if a holiday should be moved if it falls during weekends.
You can assign this special rules accessing the "Change Factory Calendar: Details" :: Special Rules button.
1.
2.
3.
The Special rules have higher priority than holiday calendar holidays or workdays.
Finally, click Year Overview and check for the dates.
2.
Calendar Functions
Once the SAP Calendar is configured properly, you can use this data to perform various types of calculations.
SCAL function group consists of some predefined function modules that can be use to determine whether or not a
given date is a working day, holiday, etc.
Function Module
Description
DATE_COMPUTE_DAY
Computes the day of the week for a given date. Day values are
calculated as 1 (Monday), 2 (Tuesday), and so on.
DATE_COMPUTE_DAY_ENHANCED
DATE_CONVERT_TO_FACTORYDATE Calculates the factory date value for a given date. Also provides
an indicator that confirms whether or not the given date is
considered a working day according to the selected factory
Function Module
Description
calendar.
DATE_GET_WEEK
Determines the week of the year for the given date. For example,
the date 9/13/2010 would be the 37th week of the year 2010.
WEEK_GET_FIRST_DAY