Zed FrameOpen workbench

DATE_CHECK_PLAUSIBILITY — ABAP Function Module

Check a YYYYMMDD date, including leap years and month lengths.

DATE_CHECK_PLAUSIBILITY

Check a YYYYMMDD date, including leap years and month lengths.

Parameters
NameDirectionTypeDescription
DATE (required)EXPORTINGDCalendar date
CALL FUNCTION 'DATE_CHECK_PLAUSIBILITY'
  EXPORTING date = '20260230'
  EXCEPTIONS date_no_plausible = 1
             OTHERS = 2.
WRITE: / sy-subrc.

Example output:

1

An invalid calendar date raises DATE_NO_PLAUSIBLE. Exception mappings set sy-subrc.

Exceptions: DATE_NO_PLAUSIBLE