<?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: validating flat file in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/validating-flat-file/m-p/4081887#M976022</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you want to validate any character field, you can use the system variable SY-ABCDE(Constant: Alphabet (A,B,C,...)).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;suppose you flat file's data is into the internal table I_TAB and you have work area of same type WA_TAB. Now use below piece of code....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at i_tab into wa_tab.&lt;/P&gt;&lt;P&gt;  if wa_tab-country ca sy-abcde.&lt;/P&gt;&lt;P&gt;    message 'Invalid Country' type 'E'.&lt;/P&gt;&lt;P&gt;  endif.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i think this code will work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;please reward if it is helpful.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 10 Jul 2008 10:18:09 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-07-10T10:18:09Z</dc:date>
    <item>
      <title>validating flat file</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/validating-flat-file/m-p/4081883#M976018</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi folks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;       I need to validate my flat file.It contain 5 fields. I have to check whether each coloumn is filled data with valid data types. For example, 'country' field should have a numbers in it. And the 'Rate' field should not have the characters in it, if that field contains any characters it should be caught as a error record.. Please suggest me how to solve this...Thanks in advance..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;       Shyam.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Jul 2008 09:44:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/validating-flat-file/m-p/4081883#M976018</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-10T09:44:44Z</dc:date>
    </item>
    <item>
      <title>Re: validating flat file</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/validating-flat-file/m-p/4081884#M976019</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Not sure what is your scenario ... but u can upload the data into an itab and then loop the itab and check the field contents whether they are numeric or char using FM like NUMERIC_CHECK .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Below is the samle output from NUMERIC_CHECK&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Input :               output :&lt;/P&gt;&lt;P&gt; 11                    type - Num&lt;/P&gt;&lt;P&gt;1.1                   type - char&lt;/P&gt;&lt;P&gt;1  1                  type - char&lt;/P&gt;&lt;P&gt;1*1                  type - char&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Just check out with your all possible inputs is SE37 .&lt;/P&gt;&lt;P&gt;So based on FM output you can raise error message.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can also try moving the values to a NUM data type field but it may go short dump.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;RB.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Jul 2008 09:58:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/validating-flat-file/m-p/4081884#M976019</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-10T09:58:08Z</dc:date>
    </item>
    <item>
      <title>Re: validating flat file</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/validating-flat-file/m-p/4081885#M976020</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Shyam,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;it_tab1 consists of entries of your flat file. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Validate your entries in itab1, Invalid entries are moved into it_err. (Which consists of all your Invalid entries).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Sai&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Jul 2008 10:08:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/validating-flat-file/m-p/4081885#M976020</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-10T10:08:14Z</dc:date>
    </item>
    <item>
      <title>Re: validating flat file</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/validating-flat-file/m-p/4081886#M976021</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Shyam,&lt;/P&gt;&lt;P&gt;                 Use upload function module to get that data into an internal table. Then perform all your validation on the entries inthe Internal table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Raghav&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Jul 2008 10:09:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/validating-flat-file/m-p/4081886#M976021</guid>
      <dc:creator>former_member182354</dc:creator>
      <dc:date>2008-07-10T10:09:52Z</dc:date>
    </item>
    <item>
      <title>Re: validating flat file</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/validating-flat-file/m-p/4081887#M976022</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you want to validate any character field, you can use the system variable SY-ABCDE(Constant: Alphabet (A,B,C,...)).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;suppose you flat file's data is into the internal table I_TAB and you have work area of same type WA_TAB. Now use below piece of code....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at i_tab into wa_tab.&lt;/P&gt;&lt;P&gt;  if wa_tab-country ca sy-abcde.&lt;/P&gt;&lt;P&gt;    message 'Invalid Country' type 'E'.&lt;/P&gt;&lt;P&gt;  endif.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i think this code will work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;please reward if it is helpful.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Jul 2008 10:18:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/validating-flat-file/m-p/4081887#M976022</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-07-10T10:18:09Z</dc:date>
    </item>
  </channel>
</rss>

