Paramètre | Reférence | Type | Long. | Valeur par déf. | Facultatif | Description |
---|---|---|---|---|---|---|
WEEK | SCAL-WEEK | N | 6 | Week for which the date is to be determined |
Paramètre | Reférence | Type | Long. | Description |
---|---|---|---|---|
DATE | SCAL-DATE | D | 8 | Date of the first day of the week |
Exception | Description |
---|---|
WEEK_INVALID | Week was incorrectly specified |
INCLUDE 'DOCU_HAS_TO_BE_ELABORATED' OBJECT DOKU ID TX The function module calculates the first day of a week Example call: DATA: DATUM LIKE SCAL-DATE, WOCHE LIKE SCAL-WEEK. CALL FUNCTION 'WEEK_GET_FIRST_DAY' EXPORTING WEEK = WOCHE IMPORTING DATE = DATUM EXCEPTIONS WEEK_INVALID = 1. All exceptions are raised with RAISE.The week must be passed in format YYYYWW. The year YYYY must be between1901 and 2098; the week WW must be less than 54. |