HOLIDAY_CHECK_AND_GET_INFO Useful for determining whether or not a date is a holiday. Give the function a date, and a holiday calendar, and you can determine if the date is a holiday by checking the parameter HOLIDAY_FOUND.
Example:
lc_holiday_cal_id like scal-hcalid default 'CA',
ltab_holiday_attributes like thol occurs 0 with header line,
lc_holiday_found like scal-indicator.
CALL FUNCTION 'HOLIDAY_CHECK_AND_GET_INFO'
EXPORTING
date = ld_date
holiday_calendar_id = lc_holiday_cal_id
WITH_HOLIDAY_ATTRIBUTES = 'X'
IMPORTING
HOLIDAY_FOUND = lc_holiday_found
tables
holiday_attributes = ltab_holiday_attributes
EXCEPTIONS
CALENDAR_BUFFER_NOT_LOADABLE = 1
DATE_AFTER_RANGE = 2
DATE_BEFORE_RANGE = 3
DATE_INVALID = 4
HOLIDAY_CALENDAR_ID_MISSING = 5
HOLIDAY_CALENDAR_NOT_FOUND = 6
OTHERS = 7.
if sy-subrc = 0 and
lc_holiday_found = 'X'.
write: / ld_date, 'is a holiday'.
else.
write: / ld_date, 'is not a holiday, or there was an error calling the function'.
endif.
HOLIDAY_GET Provides a table of all the holidays based upon a Factory Calendar &/ Holiday Calendar.
HR_BEN_GET_FROM_FEATURE_BAREA Call the HR feature to determine the Benefit Area for an employee
HR_BEN_GET_FROM_FEATURE_BENGR Call the HR feature to determine the Benefit Group for an employee
HR_BEN_GET_FROM_FEATURE_BSTAT Call the HR feature to determine the Benefit Status for an employee
HR_BEN_GET_FROM_FEATURE_COVGR Call the HR feature to determine the Cover Group for an employee
HR_BEN_GET_FROM_FEATURE_CSTV1 Call the HR feature to determine the CSTV1 feature for an employee
HR_BEN_GET_FROM_FEATURE_EECGR Call the HR feature to determine the Employee Cost Group for an employee
HR_BEN_GET_FROM_FEATURE_ELIGR Call the HR feature to determine the Eligiblity Group for an employee
HR_BEN_GET_FROM_FEATURE_ERCGR Call the HR feature to determine the Employer Cost Group for an employee
HR_BEN_GET_FROM_FEATURE_EVTGR Evaluate the EVTGR feature for an employee
HR_BEN_GET_FROM_FEATURE_FLXGR Evaluate the FLXGR feature for an employee
HR_BEN_GET_FROM_FEATURE_LDAYW Evaluate the LDAYW feature for an employee
HR_BEN_GET_FROM_FEATURE_LRPGR Evaluate the LRPGR feature for an employee
HR_BEN_GET_FROM_FEATURE_TRMGR Evaluate the TRMGR feature for an employee
HR_BEN_GET_FROM_FEATURE_VARGU Evaluate the VARGU feature for an employee