<?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_DOWNLOAD Problem in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/gui-download-problem/m-p/6011731#M1346189</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;check exporting parameter I_LINE_HEADER&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 20 Aug 2009 10:28:52 GMT</pubDate>
    <dc:creator>kesavadas_thekkillath</dc:creator>
    <dc:date>2009-08-20T10:28:52Z</dc:date>
    <item>
      <title>GUI_DOWNLOAD Problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/gui-download-problem/m-p/6011725#M1346183</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 using GUI_DOWNLOAD FM to download my internal table entries into .xls file. It is downloading the file to my local system. But it is not saving in plain .xls file. &lt;/P&gt;&lt;P&gt;Most of the times, the excel file will be downloaded, converted to tab delimited text file. But I need it as a plain .xls file. &lt;/P&gt;&lt;P&gt;Because my client needs to modify the same file and uses to upload it. But they are unable to modify it. It is throwing error like "the document is not compatable with text(tab delimeter)".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please help me on this situation...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Ramesh.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Aug 2009 07:47:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/gui-download-problem/m-p/6011725#M1346183</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-08-20T07:47:57Z</dc:date>
    </item>
    <item>
      <title>Re: GUI_DOWNLOAD Problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/gui-download-problem/m-p/6011726#M1346184</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 can use &lt;STRONG&gt;Concatenate statement&lt;/STRONG&gt; before using GUI_DOWNLOAD&lt;/P&gt;&lt;P&gt;function module.Kindly check the sample code below:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;

  data: v_path     type rlgrap-filename,
        v_pathname type string         .

*func mod to select path for downloading file
 call function 'KD_GET_FILENAME_ON_F4'
exporting
program_name        = syst-repid
dynpro_number       = syst-dynnr
*       FIELD_NAME          = ' '
*       STATIC              = ' '
*       MASK                = ' '
changing
file_name           = v_path
exceptions
mask_too_long       = 1
others              = 2
                           .
if sy-subrc &amp;lt;&amp;gt; 0.
message id sy-msgid type sy-msgty number sy-msgno
with sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
endif.

*assigning path value to another var to be passed in gui_download
v_pathname = v_path.


*if user gives the value in path var then only download will be called
if v_pathname is not initial.

*TO CONCATENATE EXTENSION WITH THE FILE PATH NAME
concatenate v_pathname '.xls' into v_pathname.

call function 'GUI_DOWNLOAD'
exporting
*   BIN_FILESIZE                    =
    filename                        = v_pathname
    filetype                        = 'ASC'
    append                          = 'X'
    write_field_separator           = 'X'
*   HEADER                          = '00'
*   TRUNC_TRAILING_BLANKS           = 'X'
*   WRITE_LF                        = 'X'
*   COL_SELECT                      = ' '
*   COL_SELECT_MASK                 = ' '
*   DAT_MODE                        = ' '
*   CONFIRM_OVERWRITE               = ' '
*   NO_AUTH_CHECK                   = ' '
*   CODEPAGE                        = ' '
*   IGNORE_CERR                     = ABAP_TRUE
*   REPLACEMENT                     = '#'
*   WRITE_BOM                       = ' '
*   TRUNC_TRAILING_BLANKS_EOL       = 'X'
   wk1_n_format                    = '22'
   wk1_n_size                      = '18'
*   WK1_T_FORMAT                    = ' '
*   WK1_T_SIZE                      = ' '
* IMPORTING
*   FILELENGTH                      =
    tables
    data_tab                        = &amp;lt;dyn_table&amp;gt;
*   FIELDNAMES                      =
  exceptions
file_write_error                = 1
no_batch                        = 2
gui_refuse_filetransfer         = 3
invalid_type                    = 4
no_authority                    = 5
unknown_error                   = 6
header_not_allowed              = 7
separator_not_allowed           = 8
filesize_not_allowed            = 9
header_too_long                 = 10
dp_error_create                 = 11
dp_error_send                   = 12
dp_error_write                  = 13
unknown_dp_error                = 14
access_denied                   = 15
dp_out_of_memory                = 16
disk_full                       = 17
dp_timeout                      = 18
file_not_found                  = 19
dataprovider_exception          = 20
control_flush_error             = 21
others                          = 22
                                    .
if sy-subrc &amp;lt;&amp;gt; 0.
message id sy-msgid type sy-msgty number sy-msgno
with sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
endif.

endif.

clear: v_pathname, v_path.

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it helps&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mansi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Aug 2009 07:57:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/gui-download-problem/m-p/6011726#M1346184</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-08-20T07:57:53Z</dc:date>
    </item>
    <item>
      <title>Re: GUI_DOWNLOAD Problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/gui-download-problem/m-p/6011727#M1346185</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can try using XXL_FULL_API function module. It will download the abap data into xls with full details.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;also, you can try one more function module:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'SAP_CONVERT_TO_XLS_FORMAT'&lt;/P&gt;&lt;P&gt;  EXPORTING&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  I_FIELD_SEPERATOR          =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  I_LINE_HEADER              =&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    I_FILENAME                 =&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  I_APPL_KEEP                = ' '&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  TABLES&lt;/P&gt;&lt;P&gt;    I_TAB_SAP_DATA             =&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;CHANGING&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  I_TAB_CONVERTED_DATA       =&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;EXCEPTIONS&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  CONVERSION_FAILED          = 1&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  OTHERS                     = 2&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;          .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this resolves your issue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Augustin.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Aug 2009 08:01:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/gui-download-problem/m-p/6011727#M1346185</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-08-20T08:01:53Z</dc:date>
    </item>
    <item>
      <title>Re: GUI_DOWNLOAD Problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/gui-download-problem/m-p/6011728#M1346186</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 using FM &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'SAP_CONVERT_TO_XLS_FORMAT'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;this will help u &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards &lt;/P&gt;&lt;P&gt;Prashant&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Aug 2009 08:17:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/gui-download-problem/m-p/6011728#M1346186</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-08-20T08:17:10Z</dc:date>
    </item>
    <item>
      <title>Re: GUI_DOWNLOAD Problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/gui-download-problem/m-p/6011729#M1346187</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 function module&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;SAP_CONVERT_TO_XLS_FORMAT&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is a sample code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;CALL FUNCTION 'SAP_CONVERT_TO_XLS_FORMAT'
             EXPORTING
*              I_FIELD_SEPERATOR          =
*              I_LINE_HEADER              =
               i_filename                 = '&amp;lt;&amp;lt;File-Path&amp;gt;&amp;gt;&amp;gt;
*              I_APPL_KEEP                = ' '
             tables
               i_tab_sap_data             =&amp;lt;Table-Name&amp;gt;
*            CHANGING
*              I_TAB_CONVERTED_DATA       =
*            EXCEPTIONS
*              CONVERSION_FAILED          = 1
*              OTHERS                     = 2
                     .
           IF sy-subrc &amp;lt;&amp;gt; 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;Hope this solves the issue.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Rajani&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Aug 2009 08:46:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/gui-download-problem/m-p/6011729#M1346187</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-08-20T08:46:02Z</dc:date>
    </item>
    <item>
      <title>Re: GUI_DOWNLOAD Problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/gui-download-problem/m-p/6011730#M1346188</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks to All...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The FM is working fine but it is not writing the COLUMN (HEADING) Names...do needful on this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ramesh.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Aug 2009 10:24:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/gui-download-problem/m-p/6011730#M1346188</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-08-20T10:24:20Z</dc:date>
    </item>
    <item>
      <title>Re: GUI_DOWNLOAD Problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/gui-download-problem/m-p/6011731#M1346189</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;check exporting parameter I_LINE_HEADER&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Aug 2009 10:28:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/gui-download-problem/m-p/6011731#M1346189</guid>
      <dc:creator>kesavadas_thekkillath</dc:creator>
      <dc:date>2009-08-20T10:28:52Z</dc:date>
    </item>
    <item>
      <title>Re: GUI_DOWNLOAD Problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/gui-download-problem/m-p/6011732#M1346190</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, Ramesh&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Test my Sample Code in the [This Link|&lt;A class="jive_macro jive_macro_message" href="https://community.sap.com/" __jive_macro_name="message" modifiedtitle="true" __default_attr="8031681"&gt;&lt;/A&gt;] hope it will solve out your problem,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Faisal&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Aug 2009 10:32:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/gui-download-problem/m-p/6011732#M1346190</guid>
      <dc:creator>faisalatsap</dc:creator>
      <dc:date>2009-08-20T10:32:24Z</dc:date>
    </item>
  </channel>
</rss>

