<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: About Date validation in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/about-date-validation/m-p/7692102#M1577022</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;yes i mean it is updating as 32.10.2010 in the way&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 17 Feb 2011 18:19:33 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2011-02-17T18:19:33Z</dc:date>
    <item>
      <title>About Date validation</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/about-date-validation/m-p/7692099#M1577019</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi guys we are using a particular zprogram to do mass update from excel sheets.unfortunately the dates are picking out of range like 32,33 etc.so how to check any date validation has been maintained or not in that zprogram? thanks in advance guys.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Feb 2011 18:07:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/about-date-validation/m-p/7692099#M1577019</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-02-17T18:07:53Z</dc:date>
    </item>
    <item>
      <title>Re: About Date validation</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/about-date-validation/m-p/7692100#M1577020</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Do you mean that the date value coming into the program is 32,33?  Someone needs to correct their spreadsheet.  But serious, put the data into a char8 field.  If the fields contains only 0-9 and the first two characters are 19 or 20, the 5th and 6th are in 01-12, and the 7th and 8th are between 01 and 31, you've probably got a date value.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Feb 2011 18:13:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/about-date-validation/m-p/7692100#M1577020</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-02-17T18:13:57Z</dc:date>
    </item>
    <item>
      <title>Re: About Date validation</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/about-date-validation/m-p/7692101#M1577021</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;is there any check available so that even if the spread sheet is wrong,error can be displayed while uploading?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Feb 2011 18:16:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/about-date-validation/m-p/7692101#M1577021</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-02-17T18:16:57Z</dc:date>
    </item>
    <item>
      <title>Re: About Date validation</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/about-date-validation/m-p/7692102#M1577022</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;yes i mean it is updating as 32.10.2010 in the way&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Feb 2011 18:19:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/about-date-validation/m-p/7692102#M1577022</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-02-17T18:19:33Z</dc:date>
    </item>
    <item>
      <title>Re: About Date validation</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/about-date-validation/m-p/7692103#M1577023</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello TEJA161,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Put the date in internal format (i.e., YYYYMMDD).  You can use function module NUMBER_OF_DAYS_PER_MONTH_GET to determine the number of days in the month for a given year.  Then check if date is between the 1st and the last day of a particular month.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rae Ellen Woytowiez&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Feb 2011 19:07:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/about-date-validation/m-p/7692103#M1577023</guid>
      <dc:creator>former_member182010</dc:creator>
      <dc:date>2011-02-17T19:07:20Z</dc:date>
    </item>
    <item>
      <title>Re: About Date validation</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/about-date-validation/m-p/7692104#M1577024</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This function module checks whether the date is valid - DATE_CHECK_PLAUSIBILITY&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Brenda&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Feb 2011 19:14:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/about-date-validation/m-p/7692104#M1577024</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-02-17T19:14:28Z</dc:date>
    </item>
    <item>
      <title>Re: About Date validation</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/about-date-validation/m-p/7692105#M1577025</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Teja,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;recently I found an extremely simple way to validate a date:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;data: 
  lv_date_test type sy-datum.
lv_date_test = &amp;lt;your test date in internal format&amp;gt;.
subtract  1 from lv_date_test.
add  1 to lv_date_test.
if lv_date_test NE &amp;lt;your test date in internal format&amp;gt;.
  write: / &amp;lt;your test date in internal format&amp;gt;, 'is no valid date in this galaxy'.
endif.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But from the few information you give, it seems to come in external format. Then you should use FM RS_CONV_EXT_2_INT :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
  DATA:
    ls_tabfield TYPE tabfield,
    lv_date     type sy-datum.
  ls_tabfield-tabname = 'SYST'.
  ls_tabfield-fieldname   = 'DATUM'.

CALL FUNCTION 'RS_CONV_EX_2_IN'
    EXPORTING
      input_external                     = &amp;lt;your test date in external format&amp;gt;
      table_field                        = ls_tabfield
*   CURRENCY                           = CURRENCY
    IMPORTING
      output_internal                    = lv_date
    EXCEPTIONS
      input_not_numerical                = 1
      too_many_decimals                  = 2
      more_than_one_sign                 = 3
      ill_thousand_separator_dist        = 4
      too_many_digits                    = 5
      sign_for_unsigned                  = 6
      too_large                          = 7
      too_small                          = 8
      invalid_date_format                = 9
      invalid_date                       = 10
      invalid_time_format                = 11
      invalid_time                       = 12
      invalid_hex_digit                  = 13
      unexpected_error                   = 14
      invalid_fieldname                  = 15
      field_and_descr_incompatible       = 16
      input_too_long                     = 17
      no_decimals                        = 18
      invalid_float                      = 19
      conversion_exit_error              = 20
      OTHERS                             = 21
            .
  IF sy-subrc NE 0.
    write: / &amp;lt;your test date in external format&amp;gt;, 'is no valid date in this galaxy'.
  ENDIF.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Clemens&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Feb 2011 20:41:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/about-date-validation/m-p/7692105#M1577025</guid>
      <dc:creator>Clemenss</dc:creator>
      <dc:date>2011-02-17T20:41:57Z</dc:date>
    </item>
    <item>
      <title>Re: About Date validation</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/about-date-validation/m-p/7692106#M1577026</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Teja,&lt;/P&gt;&lt;P&gt;If you could upload your spreadsheet to generic internal table (or date to char10 field) and then you can probably validate the incoming date... The key here would be the predefined date format in your excel spreadsheet... Based on that format, you can then convert the external date to internal date format  and you should be able to validate the date once it is converted to internal date format&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Feb 2011 20:45:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/about-date-validation/m-p/7692106#M1577026</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-02-17T20:45:26Z</dc:date>
    </item>
    <item>
      <title>Re: About Date validation</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/about-date-validation/m-p/7692107#M1577027</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can also use:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;CALL FUNCTION 'RP_CHECK_DATE'
      EXPORTING
        date         = l_date
      EXCEPTIONS
        date_invalid = 1
        OTHERS       = 2.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Feb 2011 05:08:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/about-date-validation/m-p/7692107#M1577027</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-02-18T05:08:16Z</dc:date>
    </item>
  </channel>
</rss>

