<?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: Problems while using FM Gui_download. in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/problems-while-using-fm-gui-download/m-p/1930870#M385607</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;use GUI_DOWNLOAD and in file name specify as tab.xls along with&lt;/P&gt;&lt;P&gt;HAS_FIELD_SEPARATOR = 'X'.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 20 Feb 2007 14:47:21 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-02-20T14:47:21Z</dc:date>
    <item>
      <title>Problems while using FM Gui_download.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problems-while-using-fm-gui-download/m-p/1930866#M385603</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;When we use FM GUI_DOWNLOAD it saves internal table into excel file in a 'Text-Tab delimited format' . Is there any FM which will store the contents in MICROSOFT EXCEL WORKBOOK format??&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Feb 2007 14:41:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problems-while-using-fm-gui-download/m-p/1930866#M385603</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-20T14:41:19Z</dc:date>
    </item>
    <item>
      <title>Re: Problems while using FM Gui_download.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problems-while-using-fm-gui-download/m-p/1930867#M385604</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Refer this code&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.sapdevelopment.co.uk/file/file_uploadpc.htm" target="test_blank"&gt;http://www.sapdevelopment.co.uk/file/file_uploadpc.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.sapdevelopment.co.uk/file/file_updown.htm" target="test_blank"&gt;http://www.sapdevelopment.co.uk/file/file_updown.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Specify .xls instead of .txt&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward points if u find helpful.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Feb 2007 14:44:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problems-while-using-fm-gui-download/m-p/1930867#M385604</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-20T14:44:16Z</dc:date>
    </item>
    <item>
      <title>Re: Problems while using FM Gui_download.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problems-while-using-fm-gui-download/m-p/1930868#M385605</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Abhijeet,&lt;/P&gt;&lt;P&gt; the same fm can be used to download to EXCEL as well.&lt;/P&gt;&lt;P&gt;Just that you need to specify the file name as &amp;lt;Name&amp;gt;.xls. and pass the &lt;/P&gt;&lt;P&gt;HAS_FIELD_SEPARATOR = 'X'.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ravi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Feb 2007 14:45:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problems-while-using-fm-gui-download/m-p/1930868#M385605</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-20T14:45:50Z</dc:date>
    </item>
    <item>
      <title>Re: Problems while using FM Gui_download.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problems-while-using-fm-gui-download/m-p/1930869#M385606</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Abhijit,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For downaloading to Excel file you can sipmly give the extension of file name as .xls. It will create a excel file on presentation server.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward points if helpful answer.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ashvender&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Feb 2007 14:46:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problems-while-using-fm-gui-download/m-p/1930869#M385606</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-20T14:46:01Z</dc:date>
    </item>
    <item>
      <title>Re: Problems while using FM Gui_download.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problems-while-using-fm-gui-download/m-p/1930870#M385607</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;use GUI_DOWNLOAD and in file name specify as tab.xls along with&lt;/P&gt;&lt;P&gt;HAS_FIELD_SEPARATOR = 'X'.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Feb 2007 14:47:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problems-while-using-fm-gui-download/m-p/1930870#M385607</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-20T14:47:21Z</dc:date>
    </item>
    <item>
      <title>Re: Problems while using FM Gui_download.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problems-while-using-fm-gui-download/m-p/1930871#M385608</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am facing the same prob as Abhijeet is having.. I have tried all options u hve suggested.. Gui_download is nt working for that.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;after downloading into excel format using(gui_download), if i changed the data in the excel sheet and try to save the data it directly goes to save as dialogue box.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;using gui_download , it saves the data in text(tab delimited format) but it should save it as in the format microsoft work book.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if any body has the solution plaese tell me...its urgent..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hari&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Feb 2007 14:48:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problems-while-using-fm-gui-download/m-p/1930871#M385608</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-20T14:48:43Z</dc:date>
    </item>
    <item>
      <title>Re: Problems while using FM Gui_download.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problems-while-using-fm-gui-download/m-p/1930872#M385609</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;USe the FM ASLM_EXCEL_TO_INTERNAL_TABLE This will Definately Work.After See ing this Give some points.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 Feb 2007 15:16:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problems-while-using-fm-gui-download/m-p/1930872#M385609</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-20T15:16:24Z</dc:date>
    </item>
    <item>
      <title>Re: Problems while using FM Gui_download.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problems-while-using-fm-gui-download/m-p/1930873#M385610</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi anilkumar,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   My problem is while downloading internal table to excel file. but the FM you told is for excel to internal table.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Feb 2007 06:08:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problems-while-using-fm-gui-download/m-p/1930873#M385610</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-21T06:08:33Z</dc:date>
    </item>
    <item>
      <title>Re: Problems while using FM Gui_download.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problems-while-using-fm-gui-download/m-p/1930874#M385611</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;Please use the following code,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: ok_code TYPE sy-ucomm,&lt;/P&gt;&lt;P&gt;save_ok TYPE sy-ucomm,&lt;/P&gt;&lt;P&gt;lv_file(80),&lt;/P&gt;&lt;P&gt;lv_fieldln TYPE i,&lt;/P&gt;&lt;P&gt;lv_def_path TYPE rlgrap-filename,&lt;/P&gt;&lt;P&gt;lv_mode TYPE c VALUE 'S',&lt;/P&gt;&lt;P&gt;lv_tmp_filename TYPE rlgrap-filename,&lt;/P&gt;&lt;P&gt;lv_tmp_mask(80).&lt;/P&gt;&lt;P&gt;FIELD-SYMBOLS: &amp;lt;fs_tmp_sym&amp;gt;.&lt;/P&gt;&lt;P&gt;save_ok = ok_code.&lt;/P&gt;&lt;P&gt;CASE save_ok.&lt;/P&gt;&lt;P&gt;WHEN 'EXCEL'.&lt;/P&gt;&lt;P&gt;*--- On click of 'Download to Excel' button transfer the ALV data to&lt;/P&gt;&lt;P&gt;*--- Excel sheet.&lt;/P&gt;&lt;P&gt;lv_tmp_mask = ',&lt;STRONG&gt;.&lt;/STRONG&gt;,&lt;STRONG&gt;.&lt;/STRONG&gt;.'.&lt;/P&gt;&lt;P&gt;lv_fieldln = strlen( lv_def_path ) - 1.&lt;/P&gt;&lt;P&gt;ASSIGN lv_def_path+lv_fieldln(1) TO &amp;lt;fs_tmp_sym&amp;gt;.&lt;/P&gt;&lt;P&gt;IF &amp;lt;fs_tmp_sym&amp;gt; = '/' OR &amp;lt;fs_tmp_sym&amp;gt; = '\'.&lt;/P&gt;&lt;P&gt;CLEAR &amp;lt;fs_tmp_sym&amp;gt;.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;*--- Get the file name &amp;amp; path to which file has to be downloaded.&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'WS_FILENAME_GET'&lt;/P&gt;&lt;P&gt;EXPORTING&lt;/P&gt;&lt;P&gt;def_path = lv_def_path&lt;/P&gt;&lt;P&gt;mask = lv_tmp_mask&lt;/P&gt;&lt;P&gt;mode = lv_mode&lt;/P&gt;&lt;P&gt;IMPORTING&lt;/P&gt;&lt;P&gt;filename = lv_tmp_filename&lt;/P&gt;&lt;P&gt;EXCEPTIONS&lt;/P&gt;&lt;P&gt;inv_winsys = 1&lt;/P&gt;&lt;P&gt;no_batch = 2&lt;/P&gt;&lt;P&gt;selection_cancel = 3&lt;/P&gt;&lt;P&gt;selection_error = 4&lt;/P&gt;&lt;P&gt;OTHERS = 5.&lt;/P&gt;&lt;P&gt;IF sy-subrc = 0.&lt;/P&gt;&lt;P&gt;*--- As we need to download the file in 'XLS' format add the&lt;/P&gt;&lt;P&gt;*--- extension '.XLS' if it is not provided by the user.&lt;/P&gt;&lt;P&gt;IF NOT lv_tmp_filename CS c_excel.&lt;/P&gt;&lt;P&gt;CONCATENATE lv_tmp_filename c_excel INTO lv_file.&lt;/P&gt;&lt;P&gt;ELSE.&lt;/P&gt;&lt;P&gt;lv_file = lv_tmp_filename.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;ELSE.&lt;/P&gt;&lt;P&gt;EXIT.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;*--- Down load the file to the path and filename provided above.&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'WS_DOWNLOAD'&lt;/P&gt;&lt;P&gt;EXPORTING&lt;/P&gt;&lt;P&gt;filename = lv_file&lt;/P&gt;&lt;P&gt;filetype = 'DAT'&lt;/P&gt;&lt;P&gt;TABLES&lt;/P&gt;&lt;P&gt;data_tab = gt_excel1 &lt;/P&gt;&lt;P&gt;EXCEPTIONS&lt;/P&gt;&lt;P&gt;file_open_error = 1&lt;/P&gt;&lt;P&gt;file_write_error = 2&lt;/P&gt;&lt;P&gt;invalid_filesize = 3&lt;/P&gt;&lt;P&gt;invalid_type = 4&lt;/P&gt;&lt;P&gt;no_batch = 5&lt;/P&gt;&lt;P&gt;unknown_error = 6&lt;/P&gt;&lt;P&gt;invalid_table_width = 7&lt;/P&gt;&lt;P&gt;gui_refuse_filetransfer = 8&lt;/P&gt;&lt;P&gt;customer_error = 9&lt;/P&gt;&lt;P&gt;OTHERS = 10.&lt;/P&gt;&lt;P&gt;IF sy-subrc = 0.&lt;/P&gt;&lt;P&gt;MESSAGE i000(zf) WITH text-017.&lt;/P&gt;&lt;P&gt;ELSE.&lt;/P&gt;&lt;P&gt;MESSAGE e939(zf) WITH lv_file. "Errors while downloading.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;ENDCASE.&lt;/P&gt;&lt;P&gt;****************&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;gt_excel1 is the internal table you provide to the FM for downloading.&lt;/P&gt;&lt;P&gt;lv_file is automatically taken care of from the input provided by the user.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The above code is triggered when a button in Application tool bar is clicked. Please use it as needed. It will ask for the path to which file has to be downloaded and once provided it will download the table only to excel.&lt;/P&gt;&lt;P&gt;You can also use GUI download and pass the internal table appropriately.&lt;/P&gt;&lt;P&gt;It will work for sure.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Paul.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Feb 2007 07:03:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problems-while-using-fm-gui-download/m-p/1930874#M385611</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-21T07:03:16Z</dc:date>
    </item>
    <item>
      <title>Re: Problems while using FM Gui_download.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problems-while-using-fm-gui-download/m-p/1930875#M385612</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks paul your code really helpfull.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Even i have used SAP_CONVERT_TO_XLS_FORMAT after gui_download &amp;amp; it is working fine.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks lot.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Feb 2007 07:11:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problems-while-using-fm-gui-download/m-p/1930875#M385612</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-21T07:11:53Z</dc:date>
    </item>
    <item>
      <title>Re: Problems while using FM Gui_download.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problems-while-using-fm-gui-download/m-p/1930876#M385613</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;No Probs. Have a nice day.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Feb 2007 07:23:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problems-while-using-fm-gui-download/m-p/1930876#M385613</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-21T07:23:14Z</dc:date>
    </item>
  </channel>
</rss>

