<?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 prblem with 'GUI_UPLOAD' in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/prblem-with-gui-upload/m-p/6084084#M1357473</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi frends, I have used function "F4_FILENAME" and "GUI_UPLOAD" to upload a text file in notepad on my desktop to an internal table in SAP.after that i used the folowing code line to copy data from one table to other:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;" insert tab2 from table itab accepting duplicate keys. "&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But my problem is that in tab2 i have total 5 fields.In notepad file i have written following two words:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;achal&lt;/P&gt;&lt;P&gt;mehra&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;now when i copy the data from itab to tab2 , it shows word "achal" in the field 1 of 1st row and "mehra" in field 1 of 2nd row only.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;what i want is to store "a" in field1 "c" in field2 and so on in row 1.&lt;/P&gt;&lt;P&gt;similarly "m" in the second row and field1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PLZ guide me.I am new to ABAP.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 09 Sep 2009 09:19:10 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-09-09T09:19:10Z</dc:date>
    <item>
      <title>prblem with 'GUI_UPLOAD'</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/prblem-with-gui-upload/m-p/6084084#M1357473</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi frends, I have used function "F4_FILENAME" and "GUI_UPLOAD" to upload a text file in notepad on my desktop to an internal table in SAP.after that i used the folowing code line to copy data from one table to other:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;" insert tab2 from table itab accepting duplicate keys. "&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But my problem is that in tab2 i have total 5 fields.In notepad file i have written following two words:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;achal&lt;/P&gt;&lt;P&gt;mehra&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;now when i copy the data from itab to tab2 , it shows word "achal" in the field 1 of 1st row and "mehra" in field 1 of 2nd row only.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;what i want is to store "a" in field1 "c" in field2 and so on in row 1.&lt;/P&gt;&lt;P&gt;similarly "m" in the second row and field1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PLZ guide me.I am new to ABAP.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Sep 2009 09:19:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/prblem-with-gui-upload/m-p/6084084#M1357473</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-09-09T09:19:10Z</dc:date>
    </item>
    <item>
      <title>Re: prblem with 'GUI_UPLOAD'</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/prblem-with-gui-upload/m-p/6084085#M1357474</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;am using following code as a part of my program :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'GUI_UPLOAD'&lt;/P&gt;&lt;P&gt;EXPORTING&lt;/P&gt;&lt;P&gt;FILENAME = d_file&lt;/P&gt;&lt;P&gt;FILETYPE = 'ASC'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HAS_FIELD_SEPARATOR = ''&lt;/P&gt;&lt;P&gt;HEADER_LENGTH = 0&lt;/P&gt;&lt;P&gt;READ_BY_LINE = 'X'&lt;/P&gt;&lt;P&gt;DAT_MODE = ' '&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TABLES&lt;/P&gt;&lt;P&gt;DATA_TAB = itab&lt;/P&gt;&lt;P&gt;LOOP AT gt_file2 INTO lwa.&lt;/P&gt;&lt;P&gt;EXCEPTIONS&lt;/P&gt;&lt;P&gt;FILE_OPEN_ERROR = 1&lt;/P&gt;&lt;P&gt;FILE_READ_ERROR = 2&lt;/P&gt;&lt;P&gt;NO_BATCH = 3&lt;/P&gt;&lt;P&gt;GUI_REFUSE_FILETRANSFER = 4&lt;/P&gt;&lt;P&gt;INVALID_TYPE = 5&lt;/P&gt;&lt;P&gt;NO_AUTHORITY = 6&lt;/P&gt;&lt;P&gt;UNKNOWN_ERROR = 7&lt;/P&gt;&lt;P&gt;BAD_DATA_FORMAT = 8&lt;/P&gt;&lt;P&gt;HEADER_NOT_ALLOWED =9&lt;/P&gt;&lt;P&gt;SEPARATOR_NOT_ALLOWED = 10&lt;/P&gt;&lt;P&gt;HEADER_TOO_LONG = 11&lt;/P&gt;&lt;P&gt;UNKNOWN_DP_ERROR = 12&lt;/P&gt;&lt;P&gt;ACCESS_DENIED = 13&lt;/P&gt;&lt;P&gt;DP_OUT_OF_MEMORY = 14&lt;/P&gt;&lt;P&gt;DISK_FULL = 15&lt;/P&gt;&lt;P&gt;DP_TIMEOUT = 16&lt;/P&gt;&lt;P&gt;OTHERS = 17.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF SY-SUBRC 0.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at itab.&lt;/P&gt;&lt;P&gt;Write:/ ITAB.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;insert zlfa4 from table itab .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;plz guide me where i shud change the code and plz write the exact syntax for me if u can.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Sep 2009 09:20:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/prblem-with-gui-upload/m-p/6084085#M1357474</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-09-09T09:20:05Z</dc:date>
    </item>
    <item>
      <title>Re: prblem with 'GUI_UPLOAD'</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/prblem-with-gui-upload/m-p/6084086#M1357475</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;am using following code as a part of my program :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'GUI_UPLOAD'&lt;/P&gt;&lt;P&gt;EXPORTING&lt;/P&gt;&lt;P&gt;FILENAME = d_file&lt;/P&gt;&lt;P&gt;FILETYPE = 'ASC'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HAS_FIELD_SEPARATOR = ''&lt;/P&gt;&lt;P&gt;HEADER_LENGTH = 0&lt;/P&gt;&lt;P&gt;READ_BY_LINE = 'X'&lt;/P&gt;&lt;P&gt;DAT_MODE = ' '&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TABLES&lt;/P&gt;&lt;P&gt;DATA_TAB = itab&lt;/P&gt;&lt;P&gt;LOOP AT gt_file2 INTO lwa.&lt;/P&gt;&lt;P&gt;EXCEPTIONS&lt;/P&gt;&lt;P&gt;FILE_OPEN_ERROR = 1&lt;/P&gt;&lt;P&gt;FILE_READ_ERROR = 2&lt;/P&gt;&lt;P&gt;NO_BATCH = 3&lt;/P&gt;&lt;P&gt;GUI_REFUSE_FILETRANSFER = 4&lt;/P&gt;&lt;P&gt;INVALID_TYPE = 5&lt;/P&gt;&lt;P&gt;NO_AUTHORITY = 6&lt;/P&gt;&lt;P&gt;UNKNOWN_ERROR = 7&lt;/P&gt;&lt;P&gt;BAD_DATA_FORMAT = 8&lt;/P&gt;&lt;P&gt;HEADER_NOT_ALLOWED =9&lt;/P&gt;&lt;P&gt;SEPARATOR_NOT_ALLOWED = 10&lt;/P&gt;&lt;P&gt;HEADER_TOO_LONG = 11&lt;/P&gt;&lt;P&gt;UNKNOWN_DP_ERROR = 12&lt;/P&gt;&lt;P&gt;ACCESS_DENIED = 13&lt;/P&gt;&lt;P&gt;DP_OUT_OF_MEMORY = 14&lt;/P&gt;&lt;P&gt;DISK_FULL = 15&lt;/P&gt;&lt;P&gt;DP_TIMEOUT = 16&lt;/P&gt;&lt;P&gt;OTHERS = 17.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF SY-SUBRC 0.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at itab.&lt;/P&gt;&lt;P&gt;Write:/ ITAB.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;insert zlfa4 from table itab .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;plz guide me where i shud change the code and plz write the exact syntax for me if u can.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Sep 2009 09:20:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/prblem-with-gui-upload/m-p/6084086#M1357475</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-09-09T09:20:14Z</dc:date>
    </item>
    <item>
      <title>Re: prblem with 'GUI_UPLOAD'</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/prblem-with-gui-upload/m-p/6084087#M1357476</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;Can you please write correct code ? How can a loop statement come inside the function call ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'GUI_UPLOAD'&lt;/P&gt;&lt;P&gt;EXPORTING&lt;/P&gt;&lt;P&gt;FILENAME = d_file&lt;/P&gt;&lt;P&gt;FILETYPE = 'ASC'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HAS_FIELD_SEPARATOR = ''&lt;/P&gt;&lt;P&gt;HEADER_LENGTH = 0&lt;/P&gt;&lt;P&gt;READ_BY_LINE = 'X'&lt;/P&gt;&lt;P&gt;DAT_MODE = ' '&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TABLES&lt;/P&gt;&lt;P&gt;DATA_TAB = itab&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;LOOP AT gt_file2 INTO lwa.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;EXCEPTIONS&lt;/P&gt;&lt;P&gt;FILE_OPEN_ERROR = 1&lt;/P&gt;&lt;P&gt;FILE_READ_ERROR = 2&lt;/P&gt;&lt;P&gt;NO_BATCH = 3&lt;/P&gt;&lt;P&gt;GUI_REFUSE_FILETRANSFER = 4&lt;/P&gt;&lt;P&gt;INVALID_TYPE = 5&lt;/P&gt;&lt;P&gt;NO_AUTHORITY = 6&lt;/P&gt;&lt;P&gt;UNKNOWN_ERROR = 7&lt;/P&gt;&lt;P&gt;BAD_DATA_FORMAT = 8&lt;/P&gt;&lt;P&gt;HEADER_NOT_ALLOWED =9&lt;/P&gt;&lt;P&gt;SEPARATOR_NOT_ALLOWED = 10&lt;/P&gt;&lt;P&gt;HEADER_TOO_LONG = 11&lt;/P&gt;&lt;P&gt;UNKNOWN_DP_ERROR = 12&lt;/P&gt;&lt;P&gt;ACCESS_DENIED = 13&lt;/P&gt;&lt;P&gt;DP_OUT_OF_MEMORY = 14&lt;/P&gt;&lt;P&gt;DISK_FULL = 15&lt;/P&gt;&lt;P&gt;DP_TIMEOUT = 16&lt;/P&gt;&lt;P&gt;OTHERS = 17.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP AT itab.&lt;/P&gt;&lt;P&gt;  WRITE:/ itab.&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;KR Jaideep,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Sep 2009 09:20:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/prblem-with-gui-upload/m-p/6084087#M1357476</guid>
      <dc:creator>jaideepsharma</dc:creator>
      <dc:date>2009-09-09T09:20:23Z</dc:date>
    </item>
    <item>
      <title>Re: prblem with 'GUI_UPLOAD'</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/prblem-with-gui-upload/m-p/6084088#M1357477</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;sorry friend that loop code is not there.it was copied by mistake.just ignre it.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Sep 2009 09:30:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/prblem-with-gui-upload/m-p/6084088#M1357477</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-09-09T09:30:21Z</dc:date>
    </item>
    <item>
      <title>Re: prblem with 'GUI_UPLOAD'</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/prblem-with-gui-upload/m-p/6084089#M1357478</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;made some changes in code&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 Sep 2009 09:19:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/prblem-with-gui-upload/m-p/6084089#M1357478</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-09-21T09:19:37Z</dc:date>
    </item>
  </channel>
</rss>

