<?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 text file in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/uploading-text-file/m-p/1632152#M282038</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;we first read the text file into an internal table itab1 and then we fill itab2 in the order of columns.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;using FM get text into itab1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at itab1.&lt;/P&gt;&lt;P&gt;itab2-var1 = itab1+0(4).&lt;/P&gt;&lt;P&gt;and so on...&lt;/P&gt;&lt;P&gt;append itab2.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;reward if useful...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 25 Sep 2006 07:00:56 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-09-25T07:00:56Z</dc:date>
    <item>
      <title>uploading text file</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/uploading-text-file/m-p/1632151#M282037</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a text file with at least 5 column.&lt;/P&gt;&lt;P&gt;Using upload fm and transfer to internal table.&lt;/P&gt;&lt;P&gt;However, is there a faster way to upload whereby  the columns from the text file will flow into the respective itab column directly?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Sep 2006 06:51:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/uploading-text-file/m-p/1632151#M282037</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-09-25T06:51:08Z</dc:date>
    </item>
    <item>
      <title>Re: uploading text file</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/uploading-text-file/m-p/1632152#M282038</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;we first read the text file into an internal table itab1 and then we fill itab2 in the order of columns.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;using FM get text into itab1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at itab1.&lt;/P&gt;&lt;P&gt;itab2-var1 = itab1+0(4).&lt;/P&gt;&lt;P&gt;and so on...&lt;/P&gt;&lt;P&gt;append itab2.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;reward if useful...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Sep 2006 07:00:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/uploading-text-file/m-p/1632152#M282038</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-09-25T07:00:56Z</dc:date>
    </item>
    <item>
      <title>Re: uploading text file</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/uploading-text-file/m-p/1632153#M282039</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Declare ur internal table with 5 fields and use GUI_UPLOAD FM&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;data : begin of itab occurs 0,
         col1(15),
         col2(15),
         col3(15),
         col4(15),
         col5(15),
       end of itab.

CALL FUNCTION 'GUI_UPLOAD'
    EXPORTING
      filename                      = 'C:Text.txt'
   FILETYPE                      = 'DAT'
*     has_field_separator           = 'X'
*   HEADER_LENGTH                 = 0
*   READ_BY_LINE                  = 'X'
*   DAT_MODE                      = ' '
*   CODEPAGE                      = ' '
*   IGNORE_CERR                   = ABAP_TRUE
*   REPLACEMENT                   = '#'
*   CHECK_BOM                     = ' '
* IMPORTING
*   FILELENGTH                    =
*   HEADER                        =
    TABLES
      data_tab                      = itab&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Sep 2006 07:07:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/uploading-text-file/m-p/1632153#M282039</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-09-25T07:07:22Z</dc:date>
    </item>
    <item>
      <title>Re: uploading text file</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/uploading-text-file/m-p/1632154#M282040</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;the itabfields should be of the same order as in text file.&lt;/P&gt;&lt;P&gt;so that it ill be faster.&lt;/P&gt;&lt;P&gt;also use GUI_Upload&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Sep 2006 07:08:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/uploading-text-file/m-p/1632154#M282040</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-09-25T07:08:42Z</dc:date>
    </item>
    <item>
      <title>Re: uploading text file</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/uploading-text-file/m-p/1632155#M282041</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;u can used GUI_Upload function module&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Sep 2006 07:10:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/uploading-text-file/m-p/1632155#M282041</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-09-25T07:10:40Z</dc:date>
    </item>
    <item>
      <title>Re: uploading text file</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/uploading-text-file/m-p/1632156#M282042</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;if your text file is having any field seperator like TAB seperated or comma seperated,then you can use GUI_UPLOAD function module and put&lt;/P&gt;&lt;P&gt;HAS_FIELD_SEPERATOR = 'X' this parameter in GUI_UPLOAD,then automatically values will be populated to your Internal table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Srikanth&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Sep 2006 07:11:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/uploading-text-file/m-p/1632156#M282042</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-09-25T07:11:18Z</dc:date>
    </item>
  </channel>
</rss>

