<?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: Validate Date? in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/validate-date/m-p/3726016#M896793</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can use FM DATE_CHECK_PLAUSIBILITY&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 01 May 2008 13:46:46 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-05-01T13:46:46Z</dc:date>
    <item>
      <title>Validate Date?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/validate-date/m-p/3726014#M896791</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi guys,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;        I have to transfer a file in a transaction. The file contains Dates but one of the date is wrong. The date is like this 45.03.2007. How should we validate this date? I do not want to transfer this record from flat file to the transaction. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 May 2008 13:08:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/validate-date/m-p/3726014#M896791</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-01T13:08:07Z</dc:date>
    </item>
    <item>
      <title>Re: Validate Date?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/validate-date/m-p/3726015#M896792</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm assuming that your date field is formatted the way you want but the data is incorrect.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There are a number of things you could do. The easiest is to perform a subtring check on the field - check to make sure the DAY digits are between 1 and 31, the MONTH digits between 1 and 12 etc.. This won't always work b/c months have differing # of days.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The next thing you could do is find a FM that calculates something based on an input date - for example, find one that gets the Day of the Week based on date. If the FM fails, you most likely have a bad input date.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm sure there are many FMs available - go to SE37 and search for &lt;STRONG&gt;check&lt;/STRONG&gt;date*  or &lt;STRONG&gt;get&lt;/STRONG&gt;date* or something like that.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Lastly, you can &lt;EM&gt;always&lt;/EM&gt; debug a date field validation in SAP to see how they do it.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 May 2008 13:44:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/validate-date/m-p/3726015#M896792</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-01T13:44:41Z</dc:date>
    </item>
    <item>
      <title>Re: Validate Date?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/validate-date/m-p/3726016#M896793</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can use FM DATE_CHECK_PLAUSIBILITY&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 May 2008 13:46:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/validate-date/m-p/3726016#M896793</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-01T13:46:46Z</dc:date>
    </item>
    <item>
      <title>Re: Validate Date?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/validate-date/m-p/3726017#M896794</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try this FM:&lt;/P&gt;&lt;P&gt;CONVERT_DATE_TO_INTERNAL&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Enter your date, how it is coming in the flat file.&lt;/P&gt;&lt;P&gt;If the date is invalid, FM gives the exception, DATE_EXTERNAL_IS_INVALID.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Naimesh Patel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 May 2008 13:47:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/validate-date/m-p/3726017#M896794</guid>
      <dc:creator>naimesh_patel</dc:creator>
      <dc:date>2008-05-01T13:47:06Z</dc:date>
    </item>
  </channel>
</rss>

