Menu

SAP Function Module HOLIDAY_CHECK_AND_GET_INFO

Calendar function: Public holiday check with information

The Function Module HOLIDAY_CHECK_AND_GET_INFO (Calendar function: Public holiday check with information) is a standard Function Module in SAP ERP and is part of the function group SCAL within the package SZC.

Technical Information

Function Module HOLIDAY_CHECK_AND_GET_INFO
Short Text Calendar function: Public holiday check with information
Function Group SCAL
Package SZC
Module Type Remote-Enabled

Importing Parameters

These are the IMPORTING parameters of this function module.

Parameter Name Type Associated Type Default Value Short Text
DATE LIKE SCAL-DATE Date to be checked
HOLIDAY_CALENDAR_ID LIKE SCAL-HCALID Public holiday calendar ID
WITH_HOLIDAY_ATTRIBUTES LIKE SCAL-INDICATOR SPACE Flag whether attributes are to be returned

Exporting Parameters

These are the EXPORTING parameters of this function module.

Parameter Name Type Associated Type Default Value Short Text
HOLIDAY_FOUND LIKE SCAL-INDICATOR Flag whether the specified date is a public holiday

Changing Parameters

This function module does not define any CHANGING parameters.

Table Parameters

These are the TABLE parameters of this function module.

Parameter Name Type Associated Type Default Value Short Text
HOLIDAY_ATTRIBUTES LIKE THOL Attributes of the found public holidays

Exceptions

These are the Exceptions of this function module.

Exception Name Short Text
CALENDAR_BUFFER_NOT_LOADABLE Public holiday calendar could not be buffered
DATE_AFTER_RANGE Date later than public holiday calendar defined
DATE_BEFORE_RANGE Date earlier than public holiday calendar defined
DATE_INVALID Invalid date format
HOLIDAY_CALENDAR_ID_MISSING Public holiday calendar was transferred with SPACE
HOLIDAY_CALENDAR_NOT_FOUND Holiday calendar is not in buffer