Funktionsbaustein F4 DATE

Aus SAP-Wiki
Wechseln zu: Navigation, Suche

Dieser Funktionsbaustein F4_DATE zeigt ein Datum für den gewählten Fabrikkalender und gibt dann Datum und Woche und Wochenstart-/Ende zurück.

CALL FUNCTION 'F4_DATE'
" EXPORTING
"   DATE_FOR_FIRST_MONTH               = SY-DATUM
"   DISPLAY                            = ' '
"   FACTORY_CALENDAR_ID                = ' '
"   GREGORIAN_CALENDAR_FLAG            = ' '
"   HOLIDAY_CALENDAR_ID                = ' '
"   PROGNAME_FOR_FIRST_MONTH           = ' '
" IMPORTING
"   SELECT_DATE                        =
"   SELECT_WEEK                        =
"   SELECT_WEEK_BEGIN                  =
"   SELECT_WEEK_END                    =
" EXCEPTIONS
"   CALENDAR_BUFFER_NOT_LOADABLE       = 1
"   DATE_AFTER_RANGE                   = 2
"   DATE_BEFORE_RANGE                  = 3
"   DATE_INVALID                       = 4
"   FACTORY_CALENDAR_NOT_FOUND         = 5
"   HOLIDAY_CALENDAR_NOT_FOUND         = 6
"   PARAMETER_CONFLICT                 = 7
"   OTHERS                             = 8
          .
IF SY-SUBRC <> 0.
* Implement suitable error handling here
ENDIF.

Literatur