<?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: BDC FLAT FILE DATE VALIDATIONS in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-flat-file-date-validations/m-p/1891503#M373145</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Anil,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    Upload the flat file to an internal table and loop the internal table and validate the data. &lt;/P&gt;&lt;P&gt;    &lt;/P&gt;&lt;P&gt;     Loop at itab_file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;     Create a perform to validate the Start Date and End Date. &lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;       Perform validate_date using date changing flag_err.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;     Create a perform to extract the records of 2003 and 2004&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;       Perform extract_records.&lt;/P&gt;&lt;P&gt;        &lt;/P&gt;&lt;P&gt;     Endloop.&lt;/P&gt;&lt;P&gt;      &lt;/P&gt;&lt;P&gt;       Form Validat_date using date changing flag_err.&lt;/P&gt;&lt;P&gt;        data  l_date(8) type c.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;         move date to l_date.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;      To check the day of the date&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;        if l_date&lt;EM&gt;6(2) &amp;gt;= 1 and l_date&lt;/EM&gt;6(2) &amp;lt;= 31.&lt;/P&gt;&lt;P&gt;            flag_err = ' '.&lt;/P&gt;&lt;P&gt;        else.&lt;/P&gt;&lt;P&gt;             flag_err = 'X'.&lt;/P&gt;&lt;P&gt;        endif.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;To check the month of the date&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;       if l_date&lt;EM&gt;4(2) &amp;gt;= 1 and l_date&lt;/EM&gt;4(2) &amp;lt;= 12.&lt;/P&gt;&lt;P&gt;            flag_err = ' '.&lt;/P&gt;&lt;P&gt;        else.&lt;/P&gt;&lt;P&gt;             flag_err = 'X'.&lt;/P&gt;&lt;P&gt;        endif.&lt;/P&gt;&lt;P&gt;       Endform.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Once after validating the date then check out the year of the date using the perform extract_records.while moving the  flate file data into final internal table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Form extract_records using itab_file.&lt;/P&gt;&lt;P&gt;  data l_date(8) type c.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  move itab_file-date to l_date.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Check the year of the date&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  if l_date&lt;EM&gt;0(4) = 2003 or  l_date&lt;/EM&gt;0(4) = 2004.&lt;/P&gt;&lt;P&gt;    move itab_file to itab_final.&lt;/P&gt;&lt;P&gt;  endif.&lt;/P&gt;&lt;P&gt;Endform.&lt;/P&gt;&lt;P&gt;    &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Use the final internal table and pass it to the BDC for processing. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;  Jayaram...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 08 Jan 2007 16:02:30 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-01-08T16:02:30Z</dc:date>
    <item>
      <title>BDC FLAT FILE DATE VALIDATIONS</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-flat-file-date-validations/m-p/1891502#M373144</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;      The flat file is having 2 Date fields Start Date and End Date. How can i Validate it whether they are in YYYYMMDD format or not. And also I need to extract the records with effective dates between 2003 and 2004. Can any body help out. If you provide me coding it is very helpful....Very Urgent.....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks........&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Jan 2007 12:14:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-flat-file-date-validations/m-p/1891502#M373144</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-01-08T12:14:44Z</dc:date>
    </item>
    <item>
      <title>Re: BDC FLAT FILE DATE VALIDATIONS</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-flat-file-date-validations/m-p/1891503#M373145</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Anil,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    Upload the flat file to an internal table and loop the internal table and validate the data. &lt;/P&gt;&lt;P&gt;    &lt;/P&gt;&lt;P&gt;     Loop at itab_file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;     Create a perform to validate the Start Date and End Date. &lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;       Perform validate_date using date changing flag_err.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;     Create a perform to extract the records of 2003 and 2004&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;       Perform extract_records.&lt;/P&gt;&lt;P&gt;        &lt;/P&gt;&lt;P&gt;     Endloop.&lt;/P&gt;&lt;P&gt;      &lt;/P&gt;&lt;P&gt;       Form Validat_date using date changing flag_err.&lt;/P&gt;&lt;P&gt;        data  l_date(8) type c.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;         move date to l_date.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;      To check the day of the date&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;        if l_date&lt;EM&gt;6(2) &amp;gt;= 1 and l_date&lt;/EM&gt;6(2) &amp;lt;= 31.&lt;/P&gt;&lt;P&gt;            flag_err = ' '.&lt;/P&gt;&lt;P&gt;        else.&lt;/P&gt;&lt;P&gt;             flag_err = 'X'.&lt;/P&gt;&lt;P&gt;        endif.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;To check the month of the date&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;       if l_date&lt;EM&gt;4(2) &amp;gt;= 1 and l_date&lt;/EM&gt;4(2) &amp;lt;= 12.&lt;/P&gt;&lt;P&gt;            flag_err = ' '.&lt;/P&gt;&lt;P&gt;        else.&lt;/P&gt;&lt;P&gt;             flag_err = 'X'.&lt;/P&gt;&lt;P&gt;        endif.&lt;/P&gt;&lt;P&gt;       Endform.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Once after validating the date then check out the year of the date using the perform extract_records.while moving the  flate file data into final internal table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Form extract_records using itab_file.&lt;/P&gt;&lt;P&gt;  data l_date(8) type c.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  move itab_file-date to l_date.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Check the year of the date&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  if l_date&lt;EM&gt;0(4) = 2003 or  l_date&lt;/EM&gt;0(4) = 2004.&lt;/P&gt;&lt;P&gt;    move itab_file to itab_final.&lt;/P&gt;&lt;P&gt;  endif.&lt;/P&gt;&lt;P&gt;Endform.&lt;/P&gt;&lt;P&gt;    &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Use the final internal table and pass it to the BDC for processing. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;  Jayaram...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Jan 2007 16:02:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bdc-flat-file-date-validations/m-p/1891503#M373145</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-01-08T16:02:30Z</dc:date>
    </item>
  </channel>
</rss>

