Skip to Content
avatar image
Former Member

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

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

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Aug 21, 2007 at 03: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.

    Add comment
    10|10000 characters needed characters exceeded