‎2008 Jan 04 10:55 AM
Hello, is there a function module which will allow me to check whether a date is valid or not?
‎2008 Jan 04 10:57 AM
‎2008 Jan 04 10:59 AM
hi,
Declare the variable as follows.It will automatically check for the valid date.
parameters:
p_date like sy-datum.
with regards,
veeresh
‎2008 Jan 04 11:02 AM
i have selected some fields from a table .in the date column there are some invalid values.i would like to get rid of the values.
‎2008 Jan 04 11:14 AM
then DATE_CHECK_PLAUSIBILITY is right FM in such cases...
DATA : p_date(8) TYPE d VALUE '20081301'.
CALL FUNCTION 'DATE_CHECK_PLAUSIBILITY'
EXPORTING
date = p_date
EXCEPTIONS
plausibility_check_failed = 1
OTHERS = 2.
IF sy-subrc NE 0.
WRITE 😕 'Invalid date'.
ENDIF.