Zed FrameOpen workbench

WEEK_GET_FIRST_DAY — ABAP Function Module

Find the Monday starting an ISO week in YYYYWW form.

WEEK_GET_FIRST_DAY

Find the Monday starting an ISO week in YYYYWW form.

Parameters
NameDirectionTypeDescription
WEEK (required)EXPORTINGNUMC 6ISO year and week, YYYYWW
DATEIMPORTINGDMonday of the requested week
DATA monday TYPE d.
CALL FUNCTION 'WEEK_GET_FIRST_DAY'
  EXPORTING week = '202642'
  IMPORTING date = monday.
WRITE: / monday.

Example output:

20261012

Accepts ISO week keys only; non-ISO factory calendars are not simulated.

Exceptions: WEEK_INVALID