ABAP – Getting Holidays Details

In ABAP we can get the complete information about the holidays of a particular person. For that we can use the function module ‘HOLIDAY_GET’.

Syntax with exapmle:

CALL FUNCTION ‘HOLIDAY_GET’
EXPORTING
holiday_calendar           =<calendar id>
date_from                  =begda
date_to                    = endda
TABLES
holidays                   = <internal table>
EXCEPTIONS
factory_calendar_not_found = 1
holiday_calendar_not_found = 2
date_has_invalid_format    = 3
date_inconsistency         = 4
OTHERS                     = 5.

 

Now the internal table will contains all the information about the holidays for the calendar that the employee follows.

For sample program please refer this link.

http://www.mayusha.in/abap-program-for-getting-holidays-information/

0 Comments

Leave A Reply