Funktionsbaustein HOLIDAY GET

Aus SAP-Wiki
Wechseln zu: Navigation, Suche

Dieser Funktionsbaustein HOLIDAY_GET

CALL FUNCTION 'HOLIDAY_GET'
" EXPORTING
"   HOLIDAY_CALENDAR                 = ' '
"   FACTORY_CALENDAR                 = ' '
"   DATE_FROM                        = SY-DATUM
"   DATE_TO                          = SY-DATUM
" IMPORTING
"   YEAR_OF_VALID_FROM               =
"   YEAR_OF_VALID_TO                 =
"   RETURNCODE                       =
  TABLES
    HOLIDAYS                         =
" EXCEPTIONS
"   FACTORY_CALENDAR_NOT_FOUND       = 1
"   HOLIDAY_CALENDAR_NOT_FOUND       = 2
"   DATE_HAS_INVALID_FORMAT          = 3
"   DATE_INCONSISTENCY               = 4
"   OTHERS                           = 5
          .
IF SY-SUBRC <> 0.
* Implement suitable error handling here
ENDIF.

Literatur