<?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: Uploading file in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/uploading-file/m-p/8906114#M1690260</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you guys.. your suggesions did help me.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 05 Jul 2012 20:27:31 GMT</pubDate>
    <dc:creator>ramesh_putta</dc:creator>
    <dc:date>2012-07-05T20:27:31Z</dc:date>
    <item>
      <title>Uploading file</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/uploading-file/m-p/8906110#M1690256</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;I have a program where it uploads two types of files.&lt;/P&gt;&lt;P&gt;User can select the radio button which file he wants to upload. The program uses the GUI_UPLOAD to upload the file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My problem is, how do i validate the file the user uploads.&lt;/P&gt;&lt;P&gt;For example, if the user selects the A radio button and upload the B file, then how do i let the user know that he selected wrong file?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The problem is first 5 columns of both A and B structures are same. the only difference between A structure and B structure is number of fields.&lt;/P&gt;&lt;P&gt;A has 7 and B has 9.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please let me know if there is a way to count the number of tab delimited columns uploaded into internal table. that way i can count the columns and validate them agains the radio button selected.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks for you help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Jul 2012 19:45:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/uploading-file/m-p/8906110#M1690256</guid>
      <dc:creator>ramesh_putta</dc:creator>
      <dc:date>2012-07-05T19:45:07Z</dc:date>
    </item>
    <item>
      <title>Re: Uploading file</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/uploading-file/m-p/8906111#M1690257</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Rampso,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can count the number of tabs in the line of the internal table (Tab = cl_abap_har_utilities=&amp;gt;horizontal_tab). &lt;/P&gt;&lt;P&gt;If it is incorrect for the file type selected throw an error.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Shravan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Jul 2012 19:51:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/uploading-file/m-p/8906111#M1690257</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-07-05T19:51:20Z</dc:date>
    </item>
    <item>
      <title>Re: Uploading file</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/uploading-file/m-p/8906112#M1690258</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can use FIND command with MATCH COUNT addition to get the number of times tab character appears. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Shravan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Jul 2012 19:56:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/uploading-file/m-p/8906112#M1690258</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-07-05T19:56:12Z</dc:date>
    </item>
    <item>
      <title>Re: Uploading file</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/uploading-file/m-p/8906113#M1690259</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can created 2 file paths for each file type and enable them like wise&lt;/P&gt;&lt;P&gt;File A&lt;/P&gt;&lt;P&gt;File Path Enable or disable based on radio button.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;File B&lt;/P&gt;&lt;P&gt;File Path&lt;/P&gt;&lt;P&gt;Quite simple..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Jul 2012 20:03:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/uploading-file/m-p/8906113#M1690259</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-07-05T20:03:08Z</dc:date>
    </item>
    <item>
      <title>Re: Uploading file</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/uploading-file/m-p/8906114#M1690260</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you guys.. your suggesions did help me.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Jul 2012 20:27:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/uploading-file/m-p/8906114#M1690260</guid>
      <dc:creator>ramesh_putta</dc:creator>
      <dc:date>2012-07-05T20:27:31Z</dc:date>
    </item>
    <item>
      <title>Re: Uploading file</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/uploading-file/m-p/8906115#M1690261</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;FIND command with MATCH COUNT works Ok but iam having problem when there are some blank tabs at the end of the columns. the program counting those tabs aswell.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;rather, is there any way we can count the actuall columns?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Jul 2012 15:03:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/uploading-file/m-p/8906115#M1690261</guid>
      <dc:creator>ramesh_putta</dc:creator>
      <dc:date>2012-07-06T15:03:08Z</dc:date>
    </item>
    <item>
      <title>Re: Uploading file</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/uploading-file/m-p/8906116#M1690262</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Well, how do you really differentiate File A with 7 columns and file B with 9 columns with last two columns as blank. &lt;SPAN __jive_emoticon_name="happy" __jive_macro_name="emoticon" class="jive_macro jive_emote" src="https://community.sap.com/825/images/emoticons/happy.gif"&gt;&lt;/SPAN&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can try deleting consecutive tabs before counting the columns. &lt;/P&gt;&lt;P&gt;Can you use a different delimiter like comma separated or Pipe delimited (|).&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Shravan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Jul 2012 15:25:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/uploading-file/m-p/8906116#M1690262</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-07-06T15:25:22Z</dc:date>
    </item>
  </channel>
</rss>

