<?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: Date validation in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/date-validation/m-p/2313379#M506952</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can take the help from this code :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data : d_date(6),&lt;/P&gt;&lt;P&gt;       day(2),&lt;/P&gt;&lt;P&gt;       month(2),&lt;/P&gt;&lt;P&gt;       year(2),&lt;/P&gt;&lt;P&gt;       Year_change(4),&lt;/P&gt;&lt;P&gt;       year1(2),&lt;/P&gt;&lt;P&gt;       year2(2).&lt;/P&gt;&lt;P&gt;year1 = 20.&lt;/P&gt;&lt;P&gt;year2 = 19.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;d_date = 150507.&lt;/P&gt;&lt;P&gt;day = d_date+0(2).&lt;/P&gt;&lt;P&gt;month = d_date+2(2).&lt;/P&gt;&lt;P&gt;year = d_date+4(2).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if year lt 50.&lt;/P&gt;&lt;P&gt;concatenate year1 year into year_change.&lt;/P&gt;&lt;P&gt;else.&lt;/P&gt;&lt;P&gt;concatenate year2 year into year_change.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;write : d_date.&lt;/P&gt;&lt;P&gt;write : year_change.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward, if helpful,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Sandeep Kaushik&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 16 May 2007 06:36:27 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-05-16T06:36:27Z</dc:date>
    <item>
      <title>Date validation</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/date-validation/m-p/2313375#M506948</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If the upload file contains a 6 digit date, in this for example 150507 representing 2007, can we say if the date field is less than or equal to 49, then it should recognise as full year 2049  but any value of 50 and above is treated as full year 1950 (etc).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there a way to do this. Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 May 2007 05:40:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/date-validation/m-p/2313375#M506948</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-16T05:40:29Z</dc:date>
    </item>
    <item>
      <title>Re: Date validation</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/date-validation/m-p/2313376#M506949</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;There is no scope for the date field with 6 digits (with 2 for month, 2 for date and 2 for year)&lt;/P&gt;&lt;P&gt;it should be eight digits or 10 digits aor in some cases without date Month and year will be considered (see SPMON field)&lt;/P&gt;&lt;P&gt;Though the flat file contains six digits it has to converted to related 8 digit date and to be used.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward points if useful&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Anji&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 May 2007 05:44:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/date-validation/m-p/2313376#M506949</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-16T05:44:24Z</dc:date>
    </item>
    <item>
      <title>Re: Date validation</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/date-validation/m-p/2313377#M506950</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;store the value in the string say str .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;year1 = str(2)+5. wil give u last two character . &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;year2 = sy-datum(2)+5. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if year1&amp;gt;49 .&lt;/P&gt;&lt;P&gt;concatenate year2 year1 into lv_year.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;else. &lt;/P&gt;&lt;P&gt;concatenate (year2-1) year1 into lv_year.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;please reward points if answer is helpfull&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 May 2007 05:49:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/date-validation/m-p/2313377#M506950</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-16T05:49:13Z</dc:date>
    </item>
    <item>
      <title>Re: Date validation</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/date-validation/m-p/2313378#M506951</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi&lt;/P&gt;&lt;P&gt;good&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;try this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Examples:-&lt;/P&gt;&lt;P&gt;DATA: dec type p decimals 2 value 24.98,&lt;/P&gt;&lt;P&gt;     round_up type i,&lt;/P&gt;&lt;P&gt;     round_down type i.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;round_up = CEIL(dec)   " will equal 25&lt;/P&gt;&lt;P&gt;round_down - FLOOR(dec) " will equal 24&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;P&gt;mrutyun^&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 May 2007 06:09:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/date-validation/m-p/2313378#M506951</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-16T06:09:33Z</dc:date>
    </item>
    <item>
      <title>Re: Date validation</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/date-validation/m-p/2313379#M506952</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can take the help from this code :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data : d_date(6),&lt;/P&gt;&lt;P&gt;       day(2),&lt;/P&gt;&lt;P&gt;       month(2),&lt;/P&gt;&lt;P&gt;       year(2),&lt;/P&gt;&lt;P&gt;       Year_change(4),&lt;/P&gt;&lt;P&gt;       year1(2),&lt;/P&gt;&lt;P&gt;       year2(2).&lt;/P&gt;&lt;P&gt;year1 = 20.&lt;/P&gt;&lt;P&gt;year2 = 19.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;d_date = 150507.&lt;/P&gt;&lt;P&gt;day = d_date+0(2).&lt;/P&gt;&lt;P&gt;month = d_date+2(2).&lt;/P&gt;&lt;P&gt;year = d_date+4(2).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if year lt 50.&lt;/P&gt;&lt;P&gt;concatenate year1 year into year_change.&lt;/P&gt;&lt;P&gt;else.&lt;/P&gt;&lt;P&gt;concatenate year2 year into year_change.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;write : d_date.&lt;/P&gt;&lt;P&gt;write : year_change.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward, if helpful,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Sandeep Kaushik&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 May 2007 06:36:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/date-validation/m-p/2313379#M506952</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-16T06:36:27Z</dc:date>
    </item>
  </channel>
</rss>

