<?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 gui upload in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/gui-upload/m-p/4001278#M956040</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I run my program &amp;amp; send itab to pc using gui_download.&lt;/P&gt;&lt;P&gt;In that  FM I have used File Name &amp;amp; Tables      2 parameters only.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now I am trying to upload that file in my itab using gui_upload.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But it is giving error ' can not interpret data in file'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;can you tell me plz why?&lt;/P&gt;&lt;P&gt;or I will appreciate if u provide me sample code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 18 Jun 2008 19:12:38 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-06-18T19:12:38Z</dc:date>
    <item>
      <title>gui upload</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/gui-upload/m-p/4001278#M956040</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I run my program &amp;amp; send itab to pc using gui_download.&lt;/P&gt;&lt;P&gt;In that  FM I have used File Name &amp;amp; Tables      2 parameters only.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now I am trying to upload that file in my itab using gui_upload.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But it is giving error ' can not interpret data in file'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;can you tell me plz why?&lt;/P&gt;&lt;P&gt;or I will appreciate if u provide me sample code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Jun 2008 19:12:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/gui-upload/m-p/4001278#M956040</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-18T19:12:38Z</dc:date>
    </item>
    <item>
      <title>Re: gui upload</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/gui-upload/m-p/4001279#M956041</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;Check out the below sample code ... Hope it helps ..&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.sapdev.co.uk/file/file_uptabpc.htm" target="test_blank"&gt;http://www.sapdev.co.uk/file/file_uptabpc.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Santosh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Jun 2008 19:14:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/gui-upload/m-p/4001279#M956041</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-18T19:14:51Z</dc:date>
    </item>
    <item>
      <title>Re: gui upload</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/gui-upload/m-p/4001280#M956042</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;PARAMETERS: p_file LIKE rlgrap-filename.

START-OF-SELECTION.

v_filename_string = p_file.

CALL FUNCTION 'GUI_UPLOAD'
EXPORTING
filename = v_filename_string
filetype = 'ASC'
has_field_separator = 'X'

HEADER_LENGTH = 0 
READ_BY_LINE = 'X' 
dat_mode = ''

IMPORTING 
FILELENGTH = 
HEADER = 
TABLES
data_tab = i_text_data
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
OTHERS = 17.
IF sy-subrc 0.
MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
ENDIF.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward if helpfull.&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;P&gt;deepak&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Jun 2008 19:26:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/gui-upload/m-p/4001280#M956042</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-18T19:26:42Z</dc:date>
    </item>
    <item>
      <title>Re: gui upload</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/gui-upload/m-p/4001281#M956043</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 have to pass two more as mandatory to gui_download.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;One is filetype = 'ASC' this defines the file content.&lt;/P&gt;&lt;P&gt;and other is has_field_separator     = 'X'  by default file has  TAB delimited take care that while you create your flat file use TAB while entering data into the file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Jun 2008 19:47:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/gui-upload/m-p/4001281#M956043</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-18T19:47:59Z</dc:date>
    </item>
    <item>
      <title>Re: gui upload</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/gui-upload/m-p/4001282#M956044</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The itab to fill with the FM gui_upload must be like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;BEGIN OF itab OCCURS 0,
  field1(10) TYPE C,
  field2(5) TYPE C,
  ...
END OF itab.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;All this fields type C.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Jun 2008 19:51:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/gui-upload/m-p/4001282#M956044</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-18T19:51:05Z</dc:date>
    </item>
    <item>
      <title>Re: gui upload</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/gui-upload/m-p/4001283#M956045</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Rani,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try to pass the file parameter to a string. If you will use GUI_UPLOAD or GUI_DOWNLOAD, the file parameter should &lt;STRONG&gt;ALWAYS&lt;/STRONG&gt; pass to a string if the file parameter is type &lt;STRONG&gt;RLGRAP-FILENAME&lt;/STRONG&gt;. Try to change the GUI_UPLOAD/ GUI_DOWNLOAD, to WS_UPLOAD/ WS_DOWNLOAD. Here, you can directly pass the file parameter to the FM. Hope this will help you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;parameter: r_file type rlgrap-filename,&lt;/P&gt;&lt;P&gt;                r_string type string.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;r_file = r_string.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;call function 'GUI_UPLOAD'.&lt;/P&gt;&lt;P&gt;.................&lt;/P&gt;&lt;P&gt;.................&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;Mark Oro&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Jun 2008 02:26:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/gui-upload/m-p/4001283#M956045</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-19T02:26:56Z</dc:date>
    </item>
  </channel>
</rss>

