<?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: using the function module 'GUI_DOWNLOAD' in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-the-function-module-gui-download/m-p/1231151#M139358</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;Before calling gui_download,call this fm.It will ask for the path.Then assign this path to gui_download path.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data  P_FILE LIKE RLGRAP-FILENAME .  "Prsnt Srvr&lt;/P&gt;&lt;P&gt;&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         = P_FILE&lt;/P&gt;&lt;P&gt;      MASK             = ',&lt;STRONG&gt;.&lt;/STRONG&gt;.'&lt;/P&gt;&lt;P&gt;      MODE             = '0 '&lt;/P&gt;&lt;P&gt;      TITLE            = 'Choose File'&lt;/P&gt;&lt;P&gt;    IMPORTING&lt;/P&gt;&lt;P&gt;      FILENAME         = P_FILE&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;&lt;/P&gt;&lt;P&gt;  DATA  l_file TYPE string.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  l_file =  p_file.&lt;/P&gt;&lt;P&gt;  CALL FUNCTION 'GUI_DOWNLOAD'&lt;/P&gt;&lt;P&gt;    EXPORTING&lt;/P&gt;&lt;P&gt;      filename               = l_file&lt;/P&gt;&lt;P&gt;      filetype               = 'ASC'&lt;/P&gt;&lt;P&gt;      write_field_separator  = 'X'&lt;/P&gt;&lt;P&gt;    TABLES&lt;/P&gt;&lt;P&gt;      data_tab               = t_output&lt;/P&gt;&lt;P&gt;    EXCEPTIONS&lt;/P&gt;&lt;P&gt;      file_write_error       = 1&lt;/P&gt;&lt;P&gt;      no_batch               = 2&lt;/P&gt;&lt;P&gt;      invalid_type           = 4&lt;/P&gt;&lt;P&gt;      no_authority           = 5&lt;/P&gt;&lt;P&gt;      unknown_error          = 6&lt;/P&gt;&lt;P&gt;      header_not_allowed     = 7&lt;/P&gt;&lt;P&gt;      separator_not_allowed  = 8&lt;/P&gt;&lt;P&gt;      filesize_not_allowed   = 9&lt;/P&gt;&lt;P&gt;      header_too_long        = 10&lt;/P&gt;&lt;P&gt;      dp_error_create        = 11&lt;/P&gt;&lt;P&gt;      dp_error_send          = 12&lt;/P&gt;&lt;P&gt;      dp_error_write         = 13&lt;/P&gt;&lt;P&gt;      unknown_dp_error       = 14&lt;/P&gt;&lt;P&gt;      access_denied          = 15&lt;/P&gt;&lt;P&gt;      dp_out_of_memory       = 16&lt;/P&gt;&lt;P&gt;      disk_full              = 17&lt;/P&gt;&lt;P&gt;      dp_timeout             = 18&lt;/P&gt;&lt;P&gt;      file_not_found         = 19&lt;/P&gt;&lt;P&gt;      dataprovider_exception = 20&lt;/P&gt;&lt;P&gt;      control_flush_error    = 21&lt;/P&gt;&lt;P&gt;      OTHERS                 = 22.&lt;/P&gt;&lt;P&gt;  IF sy-subrc NE 0.&lt;/P&gt;&lt;P&gt;    MESSAGE s000 WITH text-005.&lt;/P&gt;&lt;P&gt;    "Error in downloading file to presentation server&lt;/P&gt;&lt;P&gt;    LEAVE LIST-PROCESSING.&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kindly reward points by clicking the star on the left of reply,if it helps.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 22 Apr 2006 06:02:37 GMT</pubDate>
    <dc:creator>jayanthi_jayaraman</dc:creator>
    <dc:date>2006-04-22T06:02:37Z</dc:date>
    <item>
      <title>using the function module 'GUI_DOWNLOAD'</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-the-function-module-gui-download/m-p/1231149#M139356</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI guys,&lt;/P&gt;&lt;P&gt;i had one doubt.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;after running a report, i am getting the details. The user shud be given option to save the output. All the details r stored in an internal table. Using AT USER COMMAND, i had given a button on the application tool bar. If the user wants to save, he shud press the button.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now the problem, the user shud select his own path. If I use gui_download, it is not asking for the path. The pl told not to use the 'Download' fn module.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there any way to save the output of the report in the path which the user wants? How to do it?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;can anyone tellme how to solve this?&lt;/P&gt;&lt;P&gt;give me one example.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks in advance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;vinoth&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 22 Apr 2006 04:27:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/using-the-function-module-gui-download/m-p/1231149#M139356</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-04-22T04:27:44Z</dc:date>
    </item>
    <item>
      <title>Re: using the function module 'GUI_DOWNLOAD'</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-the-function-module-gui-download/m-p/1231150#M139357</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Vinoth,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Yes you can use the methods of CL_GUI_FRONTEND_SERVICES like FILE_SAVE_DIALOG.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The Function Module looks like this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL METHOD cl_gui_frontend_services=&amp;gt;file_save_dialog&lt;/P&gt;&lt;P&gt;  EXPORTING&lt;/P&gt;&lt;P&gt;    WINDOW_TITLE         = 'Save As'&lt;/P&gt;&lt;P&gt;    DEFAULT_EXTENSION    = ' '&lt;/P&gt;&lt;P&gt;    DEFAULT_FILE_NAME    = ' '&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;   FILE_FILTER          =&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    INITIAL_DIRECTORY    = my_path&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;   WITH_ENCODING        =&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    PROMPT_ON_OVERWRITE  = 'X'&lt;/P&gt;&lt;P&gt;  CHANGING&lt;/P&gt;&lt;P&gt;    filename             = file_name&lt;/P&gt;&lt;P&gt;    path                 = file_path&lt;/P&gt;&lt;P&gt;    fullpath             = file_full&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;   USER_ACTION          =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;   FILE_ENCODING        =&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  EXCEPTIONS&lt;/P&gt;&lt;P&gt;    CNTL_ERROR           = 1&lt;/P&gt;&lt;P&gt;    ERROR_NO_GUI         = 2&lt;/P&gt;&lt;P&gt;    NOT_SUPPORTED_BY_GUI = 3&lt;/P&gt;&lt;P&gt;    others               = 4&lt;/P&gt;&lt;P&gt;        .&lt;/P&gt;&lt;P&gt;IF sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;           WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope your query is solved.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;SP.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 22 Apr 2006 04:32:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/using-the-function-module-gui-download/m-p/1231150#M139357</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-04-22T04:32:53Z</dc:date>
    </item>
    <item>
      <title>Re: using the function module 'GUI_DOWNLOAD'</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-the-function-module-gui-download/m-p/1231151#M139358</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;Before calling gui_download,call this fm.It will ask for the path.Then assign this path to gui_download path.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data  P_FILE LIKE RLGRAP-FILENAME .  "Prsnt Srvr&lt;/P&gt;&lt;P&gt;&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         = P_FILE&lt;/P&gt;&lt;P&gt;      MASK             = ',&lt;STRONG&gt;.&lt;/STRONG&gt;.'&lt;/P&gt;&lt;P&gt;      MODE             = '0 '&lt;/P&gt;&lt;P&gt;      TITLE            = 'Choose File'&lt;/P&gt;&lt;P&gt;    IMPORTING&lt;/P&gt;&lt;P&gt;      FILENAME         = P_FILE&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;&lt;/P&gt;&lt;P&gt;  DATA  l_file TYPE string.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  l_file =  p_file.&lt;/P&gt;&lt;P&gt;  CALL FUNCTION 'GUI_DOWNLOAD'&lt;/P&gt;&lt;P&gt;    EXPORTING&lt;/P&gt;&lt;P&gt;      filename               = l_file&lt;/P&gt;&lt;P&gt;      filetype               = 'ASC'&lt;/P&gt;&lt;P&gt;      write_field_separator  = 'X'&lt;/P&gt;&lt;P&gt;    TABLES&lt;/P&gt;&lt;P&gt;      data_tab               = t_output&lt;/P&gt;&lt;P&gt;    EXCEPTIONS&lt;/P&gt;&lt;P&gt;      file_write_error       = 1&lt;/P&gt;&lt;P&gt;      no_batch               = 2&lt;/P&gt;&lt;P&gt;      invalid_type           = 4&lt;/P&gt;&lt;P&gt;      no_authority           = 5&lt;/P&gt;&lt;P&gt;      unknown_error          = 6&lt;/P&gt;&lt;P&gt;      header_not_allowed     = 7&lt;/P&gt;&lt;P&gt;      separator_not_allowed  = 8&lt;/P&gt;&lt;P&gt;      filesize_not_allowed   = 9&lt;/P&gt;&lt;P&gt;      header_too_long        = 10&lt;/P&gt;&lt;P&gt;      dp_error_create        = 11&lt;/P&gt;&lt;P&gt;      dp_error_send          = 12&lt;/P&gt;&lt;P&gt;      dp_error_write         = 13&lt;/P&gt;&lt;P&gt;      unknown_dp_error       = 14&lt;/P&gt;&lt;P&gt;      access_denied          = 15&lt;/P&gt;&lt;P&gt;      dp_out_of_memory       = 16&lt;/P&gt;&lt;P&gt;      disk_full              = 17&lt;/P&gt;&lt;P&gt;      dp_timeout             = 18&lt;/P&gt;&lt;P&gt;      file_not_found         = 19&lt;/P&gt;&lt;P&gt;      dataprovider_exception = 20&lt;/P&gt;&lt;P&gt;      control_flush_error    = 21&lt;/P&gt;&lt;P&gt;      OTHERS                 = 22.&lt;/P&gt;&lt;P&gt;  IF sy-subrc NE 0.&lt;/P&gt;&lt;P&gt;    MESSAGE s000 WITH text-005.&lt;/P&gt;&lt;P&gt;    "Error in downloading file to presentation server&lt;/P&gt;&lt;P&gt;    LEAVE LIST-PROCESSING.&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kindly reward points by clicking the star on the left of reply,if it helps.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 22 Apr 2006 06:02:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/using-the-function-module-gui-download/m-p/1231151#M139358</guid>
      <dc:creator>jayanthi_jayaraman</dc:creator>
      <dc:date>2006-04-22T06:02:37Z</dc:date>
    </item>
    <item>
      <title>Re: using the function module 'GUI_DOWNLOAD'</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/using-the-function-module-gui-download/m-p/1231152#M139359</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;  Use the following code to achieve the Result.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1) call file open dialog box&lt;/P&gt;&lt;P&gt;2) call function module to down load; specify file &lt;/P&gt;&lt;P&gt;in my case it is excel sheet u can also use txt &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3) specify filter for file type when u open the file dialog box as i had specified based on ur requirment&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CONSTANTS :&lt;/P&gt;&lt;P&gt;         lc_file_type  TYPE char10 VALUE 'DAT',&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;         lc_dft_ext    TYPE string VALUE 'XLS',&lt;/P&gt;&lt;P&gt;         lc_file_flt   TYPE string VALUE '*.xls',&lt;/P&gt;&lt;P&gt;         lc_int_drc    TYPE string VALUE 'C:\'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  DATA : lit_ty_header TYPE TABLE OF ty_header,&lt;/P&gt;&lt;P&gt;         wa_ty_header  LIKE LINE  OF lit_ty_header,&lt;/P&gt;&lt;P&gt;         lv_win_title  TYPE string,&lt;/P&gt;&lt;P&gt;         lv_file_name  TYPE string,&lt;/P&gt;&lt;P&gt;         lv_dft_fname  TYPE string,&lt;/P&gt;&lt;P&gt;         lv_fname      TYPE string,&lt;/P&gt;&lt;P&gt;         lv_path       TYPE string.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;--&lt;/STRONG&gt;&lt;DEL&gt;&lt;STRONG&gt;&lt;/STRONG&gt;&lt;/DEL&gt;&lt;/P&gt;&lt;HR originaltext="----------" /&gt;Popup for file name--&lt;HR originaltext="----------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  lv_win_title = text-044.&lt;/P&gt;&lt;P&gt;  lv_dft_fname = text-033.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CALL METHOD cl_gui_frontend_services=&amp;gt;file_save_dialog&lt;/P&gt;&lt;P&gt;    EXPORTING&lt;/P&gt;&lt;P&gt;      window_title         = lv_win_title&lt;/P&gt;&lt;P&gt;      default_extension    = lc_dft_ext&lt;/P&gt;&lt;P&gt;      default_file_name    = lv_dft_fname&lt;/P&gt;&lt;P&gt;      file_filter          = lc_file_flt&lt;/P&gt;&lt;P&gt;      initial_directory    = lc_int_drc&lt;/P&gt;&lt;P&gt;      prompt_on_overwrite  = lc_true&lt;/P&gt;&lt;P&gt;    CHANGING&lt;/P&gt;&lt;P&gt;      filename             = lv_fname&lt;/P&gt;&lt;P&gt;      path                 = lv_path&lt;/P&gt;&lt;P&gt;      fullpath             = lv_file_name&lt;/P&gt;&lt;P&gt;    EXCEPTIONS&lt;/P&gt;&lt;P&gt;      cntl_error           = 1&lt;/P&gt;&lt;P&gt;      error_no_gui         = 2&lt;/P&gt;&lt;P&gt;      not_supported_by_gui = 3&lt;/P&gt;&lt;P&gt;      OTHERS               = 4.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  IF sy-subrc &amp;lt;&amp;gt; 0 OR lv_fname     IS INITIAL&lt;/P&gt;&lt;P&gt;                   OR lv_path      IS INITIAL&lt;/P&gt;&lt;P&gt;                   OR lv_file_name IS INITIAL.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  201: Error occurred while getting file name.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    MESSAGE e201(zusm_gen).&lt;/P&gt;&lt;P&gt;    EXIT.&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Load Column names to Excel File&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  CALL FUNCTION 'GUI_DOWNLOAD'&lt;/P&gt;&lt;P&gt;    EXPORTING&lt;/P&gt;&lt;P&gt;      filename                = lv_file_name&lt;/P&gt;&lt;P&gt;      filetype                = lc_file_type&lt;/P&gt;&lt;P&gt;      write_field_separator   = lc_true&lt;/P&gt;&lt;P&gt;      codepage                = '4103'&lt;/P&gt;&lt;P&gt;    TABLES&lt;/P&gt;&lt;P&gt;      data_tab                = lit_ty_header&lt;/P&gt;&lt;P&gt;    EXCEPTIONS&lt;/P&gt;&lt;P&gt;      file_write_error        = 1&lt;/P&gt;&lt;P&gt;      no_batch                = 2&lt;/P&gt;&lt;P&gt;      gui_refuse_filetransfer = 3&lt;/P&gt;&lt;P&gt;      invalid_type            = 4&lt;/P&gt;&lt;P&gt;      no_authority            = 5&lt;/P&gt;&lt;P&gt;      unknown_error           = 6&lt;/P&gt;&lt;P&gt;      header_not_allowed      = 7&lt;/P&gt;&lt;P&gt;      separator_not_allowed   = 8&lt;/P&gt;&lt;P&gt;      filesize_not_allowed    = 9&lt;/P&gt;&lt;P&gt;      header_too_long         = 10&lt;/P&gt;&lt;P&gt;      dp_error_create         = 11&lt;/P&gt;&lt;P&gt;      dp_error_send           = 12&lt;/P&gt;&lt;P&gt;      dp_error_write          = 13&lt;/P&gt;&lt;P&gt;      unknown_dp_error        = 14&lt;/P&gt;&lt;P&gt;      access_denied           = 15&lt;/P&gt;&lt;P&gt;      dp_out_of_memory        = 16&lt;/P&gt;&lt;P&gt;      disk_full               = 17&lt;/P&gt;&lt;P&gt;      dp_timeout              = 18&lt;/P&gt;&lt;P&gt;      file_not_found          = 19&lt;/P&gt;&lt;P&gt;      dataprovider_exception  = 20&lt;/P&gt;&lt;P&gt;      control_flush_error     = 21&lt;/P&gt;&lt;P&gt;      OTHERS                  = 22.&lt;/P&gt;&lt;P&gt;  IF sy-subrc = 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Load Data to Excel File&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    CALL FUNCTION 'GUI_DOWNLOAD'&lt;/P&gt;&lt;P&gt;      EXPORTING&lt;/P&gt;&lt;P&gt;        filename                = lv_file_name&lt;/P&gt;&lt;P&gt;        filetype                = lc_file_type&lt;/P&gt;&lt;P&gt;        append                  = lc_true&lt;/P&gt;&lt;P&gt;        write_field_separator   = lc_true&lt;/P&gt;&lt;P&gt;        codepage                = '4103'&lt;/P&gt;&lt;P&gt;      TABLES&lt;/P&gt;&lt;P&gt;        data_tab                = xt_det_report&lt;/P&gt;&lt;P&gt;      EXCEPTIONS&lt;/P&gt;&lt;P&gt;        file_write_error        = 1&lt;/P&gt;&lt;P&gt;        no_batch                = 2&lt;/P&gt;&lt;P&gt;        gui_refuse_filetransfer = 3&lt;/P&gt;&lt;P&gt;        invalid_type            = 4&lt;/P&gt;&lt;P&gt;        no_authority            = 5&lt;/P&gt;&lt;P&gt;        unknown_error           = 6&lt;/P&gt;&lt;P&gt;        header_not_allowed      = 7&lt;/P&gt;&lt;P&gt;        separator_not_allowed   = 8&lt;/P&gt;&lt;P&gt;        filesize_not_allowed    = 9&lt;/P&gt;&lt;P&gt;        header_too_long         = 10&lt;/P&gt;&lt;P&gt;        dp_error_create         = 11&lt;/P&gt;&lt;P&gt;        dp_error_send           = 12&lt;/P&gt;&lt;P&gt;        dp_error_write          = 13&lt;/P&gt;&lt;P&gt;        unknown_dp_error        = 14&lt;/P&gt;&lt;P&gt;        access_denied           = 15&lt;/P&gt;&lt;P&gt;        dp_out_of_memory        = 16&lt;/P&gt;&lt;P&gt;        disk_full               = 17&lt;/P&gt;&lt;P&gt;        dp_timeout              = 18&lt;/P&gt;&lt;P&gt;        file_not_found          = 19&lt;/P&gt;&lt;P&gt;        dataprovider_exception  = 20&lt;/P&gt;&lt;P&gt;        control_flush_error     = 21&lt;/P&gt;&lt;P&gt;        OTHERS                  = 22.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Manoj&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: Manoj Gupta&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 22 Apr 2006 06:11:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/using-the-function-module-gui-download/m-p/1231152#M139359</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-04-22T06:11:35Z</dc:date>
    </item>
  </channel>
</rss>

