Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

FM or Way to validate Date format. The date is from TEXT File

Former Member
0 Kudos

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

1 REPLY 1

former_member189059
Active Contributor
0 Kudos

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.