<?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: GUI_UPLOAD file upload in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/gui-upload-file-upload/m-p/6587805#M1435358</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;Try as below. As far as I know this works for 1024 characters long files. But declare internal table manually with the required length before passing.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;data: begin of file occurs 0,
data(600),
end of file.

CALL METHOD cl_gui_frontend_services=&amp;gt;gui_upload
EXPORTING
filename = file name on PC
filetype = 'ASC'
has_field_separator = ' '
dat_mode = 'X'
CHANGING
data_tab = FILE 
EXCEPTIONS
file_open_error = 1
file_read_error = 2
no_batch = 3
gui_refuse_filetransfer = 4
invalid_type = 5
no_authority = 6
unknown_error = 7
bad_data_format = 8
header_not_allowed = 9
separator_not_allowed = 10
header_too_long = 11
unknown_dp_error = 12
access_denied = 13
dp_out_of_memory = 14
disk_full = 15
dp_timeout = 16
not_supported_by_gui = 17
error_no_gui = 18
OTHERS = 19.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this works !!!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ganga&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Ganga Bhavani R on Feb 14, 2010 8:40 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 14 Feb 2010 14:58:33 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2010-02-14T14:58:33Z</dc:date>
    <item>
      <title>GUI_UPLOAD file upload</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/gui-upload-file-upload/m-p/6587804#M1435357</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 am reading a text file using GUI_UPLOAD.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but after reading the file when i am looking into table its reading upto only position 256 of each line.&lt;/P&gt;&lt;P&gt;i need to read full line upto position 600 of the text file .. please guide me on this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried with all possible ways like increasing the size of the internal table and declaring with a type string, but still its not working, could any one please help me on this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Your help is appreciated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Sathish&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 14 Feb 2010 14:10:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/gui-upload-file-upload/m-p/6587804#M1435357</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-02-14T14:10:29Z</dc:date>
    </item>
    <item>
      <title>Re: GUI_UPLOAD file upload</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/gui-upload-file-upload/m-p/6587805#M1435358</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;Try as below. As far as I know this works for 1024 characters long files. But declare internal table manually with the required length before passing.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;data: begin of file occurs 0,
data(600),
end of file.

CALL METHOD cl_gui_frontend_services=&amp;gt;gui_upload
EXPORTING
filename = file name on PC
filetype = 'ASC'
has_field_separator = ' '
dat_mode = 'X'
CHANGING
data_tab = FILE 
EXCEPTIONS
file_open_error = 1
file_read_error = 2
no_batch = 3
gui_refuse_filetransfer = 4
invalid_type = 5
no_authority = 6
unknown_error = 7
bad_data_format = 8
header_not_allowed = 9
separator_not_allowed = 10
header_too_long = 11
unknown_dp_error = 12
access_denied = 13
dp_out_of_memory = 14
disk_full = 15
dp_timeout = 16
not_supported_by_gui = 17
error_no_gui = 18
OTHERS = 19.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this works !!!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ganga&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Ganga Bhavani R on Feb 14, 2010 8:40 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 14 Feb 2010 14:58:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/gui-upload-file-upload/m-p/6587805#M1435358</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-02-14T14:58:33Z</dc:date>
    </item>
  </channel>
</rss>

