<?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 a file in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/uploading-a-file/m-p/5866538#M1322515</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The FM GUI_UPLOAD can identity only a tab separator or no separator. If your txt file has | separator, then do onething. Open the txt file go to menu edit and select replace. Here in find field give | and replace field give 5spaces then click replace all. This will replace all | symbols into tab. Now u can use FM GUI_UPLOAD with parameter HAS_FIELD_SEPARATOR = 'X'.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 23 Jul 2009 13:19:39 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-07-23T13:19:39Z</dc:date>
    <item>
      <title>Uploading a file</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/uploading-a-file/m-p/5866537#M1322514</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;How can i upload a txt file in which fields are seperated by pipe symbol   ( | ) , into the database using GUI_UPLOAD or some other function module?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Jul 2009 12:58:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/uploading-a-file/m-p/5866537#M1322514</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-07-23T12:58:55Z</dc:date>
    </item>
    <item>
      <title>Re: Uploading a file</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/uploading-a-file/m-p/5866538#M1322515</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The FM GUI_UPLOAD can identity only a tab separator or no separator. If your txt file has | separator, then do onething. Open the txt file go to menu edit and select replace. Here in find field give | and replace field give 5spaces then click replace all. This will replace all | symbols into tab. Now u can use FM GUI_UPLOAD with parameter HAS_FIELD_SEPARATOR = 'X'.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Jul 2009 13:19:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/uploading-a-file/m-p/5866538#M1322515</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-07-23T13:19:39Z</dc:date>
    </item>
    <item>
      <title>Re: Uploading a file</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/uploading-a-file/m-p/5866539#M1322516</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 upload the file usnig GUI_UPLOAD with filetype as ASC and field_seprator as space. For this you need to take the internal table as Char of 1000 (which is per your requirement).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at table and using SPLIT statement you can split the string at pipe '|' in to internal table. check the help on SPLIT statement.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Jul 2009 13:24:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/uploading-a-file/m-p/5866539#M1322516</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-07-23T13:24:11Z</dc:date>
    </item>
    <item>
      <title>Re: Uploading a file</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/uploading-a-file/m-p/5866540#M1322517</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;you can use method also&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; CALL METHOD cl_gui_frontend_services=&amp;gt;gui_upload&lt;/P&gt;&lt;P&gt;      EXPORTING&lt;/P&gt;&lt;P&gt;        filename                = pa_cnfg&lt;/P&gt;&lt;P&gt;        filetype                = 'ASC'&lt;/P&gt;&lt;P&gt;      CHANGING&lt;/P&gt;&lt;P&gt;        data_tab                = gt_file1&lt;/P&gt;&lt;P&gt;      EXCEPTIONS&lt;/P&gt;&lt;P&gt;        file_open_error         = 1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the file format is &lt;/P&gt;&lt;P&gt;0000263764|005000|0000036122&lt;/P&gt;&lt;P&gt;0000266053|005000|0000034790&lt;/P&gt;&lt;P&gt;0000267268|005000|0000036051&lt;/P&gt;&lt;P&gt;0000267962|005000|0000034792&lt;/P&gt;&lt;P&gt;0000268248|005000|0000038958&lt;/P&gt;&lt;P&gt;0000270838|005000|0000044025&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Jul 2009 15:01:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/uploading-a-file/m-p/5866540#M1322517</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-07-23T15:01:47Z</dc:date>
    </item>
  </channel>
</rss>

