<?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 tab delimited file in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/validating-tab-delimited-file/m-p/10570739#M1859185</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ajeet,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For the first question, use SPLIT statement and use separator as cl_abap_char_utilities=&amp;gt;horizontal_tab. Check the sy-subrc value for validation.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Secondly, if your split statement works, then the values will be in respective columns of the structure u will be using in ABAP. Then you can place the validation based on the values in fields of structure.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For further clarification go through F1 help on split statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Sumit&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 05 Oct 2014 15:24:03 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2014-10-05T15:24:03Z</dc:date>
    <item>
      <title>Validating tab delimited file</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/validating-tab-delimited-file/m-p/10570738#M1859184</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I have to make a report that have to upload tab delimited file from presentation server and perform operation then.&lt;/P&gt;&lt;P&gt;Now, can anyone tell me:&lt;/P&gt;&lt;P&gt;1. how to validate if file is tab delimited at all or not?&lt;/P&gt;&lt;P&gt;2.how to check if file has correct data i.e. say in the incoming file there should be 18 column, all of them can be filled or not at a time. how to check if file has data for required column only?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Ajit C&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 05 Oct 2014 15:10:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/validating-tab-delimited-file/m-p/10570738#M1859184</guid>
      <dc:creator>ajeet_choudhary</dc:creator>
      <dc:date>2014-10-05T15:10:38Z</dc:date>
    </item>
    <item>
      <title>Re: Validating tab delimited file</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/validating-tab-delimited-file/m-p/10570739#M1859185</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ajeet,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For the first question, use SPLIT statement and use separator as cl_abap_char_utilities=&amp;gt;horizontal_tab. Check the sy-subrc value for validation.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Secondly, if your split statement works, then the values will be in respective columns of the structure u will be using in ABAP. Then you can place the validation based on the values in fields of structure.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For further clarification go through F1 help on split statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Sumit&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 05 Oct 2014 15:24:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/validating-tab-delimited-file/m-p/10570739#M1859185</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2014-10-05T15:24:03Z</dc:date>
    </item>
    <item>
      <title>Re: Validating tab delimited file</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/validating-tab-delimited-file/m-p/10570740#M1859186</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ajeet,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;first do the GUI_UPLOAD into an internal table of text lines with sufficient length (i.e. text200 or so).&lt;/P&gt;&lt;P&gt;Declare a internal table of strings, i.e. lt_col type table of string.&lt;/P&gt;&lt;P&gt;Loop at the table just uploaded. For each line, SPLIT &amp;lt;line&amp;gt; BY cl_abap_char_utilities=&amp;gt;horizontal_tab INTO TABLE lt_col.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF lines( lt_col ) = 0.&lt;/P&gt;&lt;P&gt;* NOT tab-delimited&lt;/P&gt;&lt;P&gt;&amp;nbsp; EXIT. "the loop&lt;/P&gt;&lt;P&gt;ELSE.&lt;/P&gt;&lt;P&gt;* Use the data&lt;/P&gt;&lt;P&gt;&amp;nbsp; LOOP AT lt_string ASSIGNING &amp;lt;string&amp;gt;.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; CASE sy-tabix.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; WHEN 1.&lt;/P&gt;&lt;P&gt;* columns 1&lt;/P&gt;&lt;P&gt;* ...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; WHEN 8.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; IF &amp;lt;string&amp;gt;&amp;nbsp; IS INITIAL.&lt;/P&gt;&lt;P&gt;* Expected value not present...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ENDIF&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ENDCASE.&lt;/P&gt;&lt;P&gt;&amp;nbsp; ENDLOOP.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is just to give you an idea.&lt;/P&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>Sun, 05 Oct 2014 16:10:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/validating-tab-delimited-file/m-p/10570740#M1859186</guid>
      <dc:creator>Clemenss</dc:creator>
      <dc:date>2014-10-05T16:10:24Z</dc:date>
    </item>
  </channel>
</rss>

