SAP Function Modules

Share |

CONVERT_DATE_INPUT SAP Function module - Conversion of a date from external to internal format

Pattern for FM CONVERT_DATE_INPUT - CONVERT DATE INPUT
Associated Function Group: SCON
Released Date: Not Released
CALL FUNCTION 'CONVERT_DATE_INPUT' "Conversion of a date from external to internal format
  EXPORTING
    input =                     "               Formatted date entry
*   plausibility_check = 'X'    "               Make plausibility check
  IMPORTING
    output =                    " sy-datum      Output date as database field
  EXCEPTIONS
    PLAUSIBILITY_CHECK_FAILED = 1  "            Plausibility check error
    WRONG_FORMAT_IN_INPUT = 2   "               INPUT date format error
    .  "  CONVERT_DATE_INPUT

SAP Documentation for FM CONVERT_DATE_INPUT

This function module converts a date from the externally formatted user input into the internal SAP system format. There will not be a function module CONVERT_DATE_OUTPUT as this is is done via WRITE, using the parameter DD/MM/YYYY.
Documentation extract taken from SAP system, Copyright (c) SAP AG






Share |