08-21-2007 4:18 AM
Dear All,
I need to validate a date field whether it is in proper format.
The field is coming from TEXT file to Internal table by using FM GUI_UPLOAD.
Can any one give me the FM name or guide me how to do that?
Definitely points will be given for correct solution.
Thanks & Regards,
Neeraj
08-21-2007 4:27 AM
try the function module 'DATE_CHECK_PLAUSIBILITY'
call function 'DATE_CHECK_PLAUSIBILITY'
exporting
date = '23.09.2007'
exceptions
plausibility_check_failed = 1
others = 2.
if sy-subrc <> 0.
write:/ 'Please verify the date'.
exit.
endif.