CONVERT_DATE_TO_INTERNAL — ABAP Function Module
Convert a supported external date to internal YYYYMMDD form.
CONVERT_DATE_TO_INTERNAL
Convert a supported external date to internal YYYYMMDD form.
| Name | Direction | Type | Description |
|---|---|---|---|
| DATE_EXTERNAL (required) | EXPORTING | STRING | DD.MM.YYYY, DD/MM/YYYY, or YYYY-MM-DD |
| DATE_INTERNAL | IMPORTING | D | Validated internal date |
DATA internal_date TYPE d.
CALL FUNCTION 'CONVERT_DATE_TO_INTERNAL'
EXPORTING date_external = '14.10.2026'
IMPORTING date_internal = internal_date.
WRITE: / internal_date.Example output:
20261014Uses an explicit locale-independent format subset; SAP user date-format settings are not available in this simulator.
Exceptions: DATE_FORMAT_INVALID, DATE_NO_PLAUSIBLE