<?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 issue while downloading file in .CSV format in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/issue-while-downloading-file-in-csv-format/m-p/5996786#M1343569</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 need to download the file in .CSV format.&lt;/P&gt;&lt;P&gt;I hade used FM SAP_CONVERT_TO_CSV_FORMAT  and then used GUI_Download.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now when I am opening file which is downloaded, it gives all the data in a single column. If there are 5 fields in my table, the generated file gives the data of all the 5 fields in a single column.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could you please help?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 18 Aug 2009 07:44:27 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-08-18T07:44:27Z</dc:date>
    <item>
      <title>issue while downloading file in .CSV format</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/issue-while-downloading-file-in-csv-format/m-p/5996786#M1343569</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 need to download the file in .CSV format.&lt;/P&gt;&lt;P&gt;I hade used FM SAP_CONVERT_TO_CSV_FORMAT  and then used GUI_Download.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now when I am opening file which is downloaded, it gives all the data in a single column. If there are 5 fields in my table, the generated file gives the data of all the 5 fields in a single column.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could you please help?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Aug 2009 07:44:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/issue-while-downloading-file-in-csv-format/m-p/5996786#M1343569</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-08-18T07:44:27Z</dc:date>
    </item>
    <item>
      <title>Re: issue while downloading file in .CSV format</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/issue-while-downloading-file-in-csv-format/m-p/5996787#M1343570</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;  After you ahve open it save ti again as a CSV format and then try to open it basically when you create a CSV file all the fields values would be in one row separated by comma try saving as CSv format and then check.&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;Himanshu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Aug 2009 07:47:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/issue-while-downloading-file-in-csv-format/m-p/5996787#M1343570</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-08-18T07:47:19Z</dc:date>
    </item>
    <item>
      <title>Re: issue while downloading file in .CSV format</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/issue-while-downloading-file-in-csv-format/m-p/5996788#M1343571</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;In GUI_DOWNLOAD function module, along with other parameters put WRITE_FIELD_SEPARATOR = 'X'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it helps&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Aug 2009 08:03:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/issue-while-downloading-file-in-csv-format/m-p/5996788#M1343571</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-08-18T08:03:51Z</dc:date>
    </item>
    <item>
      <title>Re: issue while downloading file in .CSV format</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/issue-while-downloading-file-in-csv-format/m-p/5996789#M1343572</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I ried using FIELD_SEPARATOR = 'X', but still the same.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Aug 2009 08:46:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/issue-while-downloading-file-in-csv-format/m-p/5996789#M1343572</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-08-18T08:46:35Z</dc:date>
    </item>
    <item>
      <title>Re: issue while downloading file in .CSV format</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/issue-while-downloading-file-in-csv-format/m-p/5996790#M1343573</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 if you are using ';' as the field seperator in the FM SAP_CONVERT_TO_CSV_FORMAT. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you want the Tab delimited file then call GUI_DOWNLOAD with  FILETYPE as 'DAT' and WRITE_FIELD_SEPARATOR as 'X'.&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;Vik&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Aug 2009 08:55:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/issue-while-downloading-file-in-csv-format/m-p/5996790#M1343573</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-08-18T08:55:50Z</dc:date>
    </item>
    <item>
      <title>Re: issue while downloading file in .CSV format</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/issue-while-downloading-file-in-csv-format/m-p/5996791#M1343574</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;use this it will help...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data:  i_tab_converted_data TYPE  truxs_t_text_data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;CALL FUNCTION 'SAP_CONVERT_TO_TEX_FORMAT'
 EXPORTING
   i_field_seperator          = ','
*   I_LINE_HEADER              =
*   I_FILENAME                 =
*   I_APPL_KEEP                = ' '
  TABLES
    i_tab_sap_data             = &amp;lt;ur internal table&amp;gt;
 CHANGING
   i_tab_converted_data       = 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;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Aug 2009 09:05:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/issue-while-downloading-file-in-csv-format/m-p/5996791#M1343574</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-08-18T09:05:00Z</dc:date>
    </item>
    <item>
      <title>Re: issue while downloading file in .CSV format</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/issue-while-downloading-file-in-csv-format/m-p/5996792#M1343575</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hii harneet,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This has been already discussed on the forum.go through this link.u will find it very useful&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="jive_macro jive_macro_message" href="https://community.sap.com/" __jive_macro_name="message" modifiedtitle="true" __default_attr="7736603"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;rgrds,&lt;/P&gt;&lt;P&gt;Shweta&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Aug 2009 10:38:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/issue-while-downloading-file-in-csv-format/m-p/5996792#M1343575</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-08-18T10:38:42Z</dc:date>
    </item>
    <item>
      <title>Re: issue while downloading file in .CSV format</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/issue-while-downloading-file-in-csv-format/m-p/5996793#M1343576</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Shweta,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your help.&lt;/P&gt;&lt;P&gt;I was having the issue while downloading. the link u have given here is for uploading .CSV file.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Aug 2009 06:11:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/issue-while-downloading-file-in-csv-format/m-p/5996793#M1343576</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-08-19T06:11:32Z</dc:date>
    </item>
    <item>
      <title>Re: issue while downloading file in .CSV format</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/issue-while-downloading-file-in-csv-format/m-p/5996794#M1343577</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi try wi th the following code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TYPE-POOLS : truxs.&lt;/P&gt;&lt;P&gt;DATA: t_file TYPE STANDARD TABLE OF type_file.&lt;/P&gt;&lt;P&gt;data:t_conv_data TYPE truxs_t_text_data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'SAP_CONVERT_TO_TEX_FORMAT'&lt;/P&gt;&lt;P&gt;  EXPORTING&lt;/P&gt;&lt;P&gt;    i_field_seperator          = ', '&lt;/P&gt;&lt;P&gt;  TABLES&lt;/P&gt;&lt;P&gt;    i_tab_sap_data             = t_file&lt;/P&gt;&lt;P&gt; CHANGING&lt;/P&gt;&lt;P&gt;   i_tab_converted_data       = t_conv_data&lt;/P&gt;&lt;P&gt; EXCEPTIONS&lt;/P&gt;&lt;P&gt;   conversion_failed          = 1&lt;/P&gt;&lt;P&gt;   OTHERS                     = 2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'GUI_DOWNLOAD'&lt;/P&gt;&lt;P&gt;  EXPORTING&lt;/P&gt;&lt;P&gt;    filename                = 'C:\TESTCSV.CSV'&lt;/P&gt;&lt;P&gt;    filetype                = 'ASC'&lt;/P&gt;&lt;P&gt;    write_field_separator   = '  '&lt;/P&gt;&lt;P&gt;  TABLES&lt;/P&gt;&lt;P&gt;    data_tab                = t_file&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;   fieldnames              = names&lt;/P&gt;&lt;/LI&gt;&lt;/UL&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;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Aug 2009 07:15:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/issue-while-downloading-file-in-csv-format/m-p/5996794#M1343577</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-08-19T07:15:31Z</dc:date>
    </item>
    <item>
      <title>Re: issue while downloading file in .CSV format</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/issue-while-downloading-file-in-csv-format/m-p/5996795#M1343578</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi please try with the following code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TYPE-POOLS : truxs.&lt;/P&gt;&lt;P&gt;DATA: t_file TYPE STANDARD TABLE OF type_file.&lt;/P&gt;&lt;P&gt;data:t_conv_data TYPE truxs_t_text_data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'SAP_CONVERT_TO_TEX_FORMAT'&lt;/P&gt;&lt;P&gt;  EXPORTING&lt;/P&gt;&lt;P&gt;    i_field_seperator          = ','&lt;/P&gt;&lt;P&gt;  TABLES&lt;/P&gt;&lt;P&gt;    i_tab_sap_data             = t_file&lt;/P&gt;&lt;P&gt; CHANGING&lt;/P&gt;&lt;P&gt;   i_tab_converted_data       = t_conv_data&lt;/P&gt;&lt;P&gt; EXCEPTIONS&lt;/P&gt;&lt;P&gt;   conversion_failed          = 1&lt;/P&gt;&lt;P&gt;   OTHERS                     = 2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'GUI_DOWNLOAD'&lt;/P&gt;&lt;P&gt;  EXPORTING&lt;/P&gt;&lt;P&gt;    filename                = 'C:\TESTCSV.CSV'&lt;/P&gt;&lt;P&gt;    filetype                = 'ASC'&lt;/P&gt;&lt;P&gt;    write_field_separator   = ' '&lt;/P&gt;&lt;P&gt;  TABLES&lt;/P&gt;&lt;P&gt;    data_tab                = t_conv_data&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;   fieldnames              = names&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  EXCEPTIONS&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Aug 2009 07:19:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/issue-while-downloading-file-in-csv-format/m-p/5996795#M1343578</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-08-19T07:19:37Z</dc:date>
    </item>
  </channel>
</rss>

