<?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 Open Data set csv upload error encoding in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/open-data-set-csv-upload-error-encoding/m-p/719091#M33456</link>
    <description>&lt;P&gt;Hi Experts, &lt;/P&gt;
  &lt;P&gt;I generate a CSV file like this: &lt;/P&gt;
  &lt;P&gt;SPAN { font-family: "Courier New"; font-size: 10pt; color: #000000; background: #FFFFFF; } .L0S31 { font-style: italic; color: #808080; } .L0S32 { color: #3399FF; } .L0S33 { color: #4DA619; } .L0S52 { color: #0000FF; } .L0S55 { color: #800080; } .L0S70 { color: #808080; }&lt;/P&gt;
  &lt;P&gt;CALL FUNCTION 'SAP_CONVERT_TO_CSV_FORMAT'&lt;BR /&gt; EXPORTING&lt;BR /&gt; i_field_seperator = cl_abap_char_utilities=&amp;gt;horizontal_tab&lt;BR /&gt; I_LINE_HEADER = 'X'&lt;BR /&gt; i_filename = ld_name&lt;BR /&gt; * I_APPL_KEEP = ' '&lt;BR /&gt; TABLES&lt;BR /&gt; i_tab_sap_data = lt_list&lt;BR /&gt; CHANGING&lt;BR /&gt; i_tab_converted_data = lt_converted&lt;BR /&gt; EXCEPTIONS&lt;BR /&gt; conversion_failed = 1&lt;BR /&gt; OTHERS = 2.&lt;BR /&gt; IF sy-subrc &amp;lt;&amp;gt; 0.&lt;BR /&gt; * Implement suitable error handling here&lt;BR /&gt; ENDIF.&lt;/P&gt;
  &lt;P&gt;And then I transfer the data to server like this: &lt;/P&gt;
  &lt;P&gt;SPAN { font-family: "Courier New"; font-size: 10pt; color: #000000; background: #FFFFFF; } .L0S31 { font-style: italic; color: #808080; } .L0S32 { color: #3399FF; } .L0S52 { color: #0000FF; } .L0S55 { color: #800080; } .L0S70 { color: #808080; }&lt;/P&gt;
  &lt;P&gt;"Pasamos la tabla con los datos en binario al servidor&lt;BR /&gt; OPEN DATASET ld_filename FOR OUTPUT IN TEXT MODE ENCODING UTF-8. "IN TEXT MODE ENCODING UTF-8."FOR OUTPUT IN BINARY MODE.&lt;BR /&gt; LOOP AT lt_converted INTO DATA(ls_converted).&lt;BR /&gt; TRY.&lt;BR /&gt; TRANSFER ls_converted TO ld_filename.&lt;BR /&gt; CATCH cx_sy_file_open_mode INTO lo_sy_file_open_mode.&lt;/P&gt;
  &lt;P&gt;I try it also with: IN TEXT MODE ENCODING DEFAULT AND ENCODING NON-UNICODE. but nothing works when I download the csv from the server some characters, accents for example, are substitute by strange simbols. If I reconvert mi csv file to a .txt and I open it in Excel with the assistant I can change the encoding manually and then the simbols are correct, but I need a solution when I open my CSV directly using EXCEL the simbols appear correctly without using asistants and reconverting files.&lt;BR /&gt;&lt;BR /&gt;Thanks so much! &lt;/P&gt;</description>
    <pubDate>Tue, 04 Dec 2018 06:31:47 GMT</pubDate>
    <dc:creator>former_member614683</dc:creator>
    <dc:date>2018-12-04T06:31:47Z</dc:date>
    <item>
      <title>Open Data set csv upload error encoding</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/open-data-set-csv-upload-error-encoding/m-p/719091#M33456</link>
      <description>&lt;P&gt;Hi Experts, &lt;/P&gt;
  &lt;P&gt;I generate a CSV file like this: &lt;/P&gt;
  &lt;P&gt;SPAN { font-family: "Courier New"; font-size: 10pt; color: #000000; background: #FFFFFF; } .L0S31 { font-style: italic; color: #808080; } .L0S32 { color: #3399FF; } .L0S33 { color: #4DA619; } .L0S52 { color: #0000FF; } .L0S55 { color: #800080; } .L0S70 { color: #808080; }&lt;/P&gt;
  &lt;P&gt;CALL FUNCTION 'SAP_CONVERT_TO_CSV_FORMAT'&lt;BR /&gt; EXPORTING&lt;BR /&gt; i_field_seperator = cl_abap_char_utilities=&amp;gt;horizontal_tab&lt;BR /&gt; I_LINE_HEADER = 'X'&lt;BR /&gt; i_filename = ld_name&lt;BR /&gt; * I_APPL_KEEP = ' '&lt;BR /&gt; TABLES&lt;BR /&gt; i_tab_sap_data = lt_list&lt;BR /&gt; CHANGING&lt;BR /&gt; i_tab_converted_data = lt_converted&lt;BR /&gt; EXCEPTIONS&lt;BR /&gt; conversion_failed = 1&lt;BR /&gt; OTHERS = 2.&lt;BR /&gt; IF sy-subrc &amp;lt;&amp;gt; 0.&lt;BR /&gt; * Implement suitable error handling here&lt;BR /&gt; ENDIF.&lt;/P&gt;
  &lt;P&gt;And then I transfer the data to server like this: &lt;/P&gt;
  &lt;P&gt;SPAN { font-family: "Courier New"; font-size: 10pt; color: #000000; background: #FFFFFF; } .L0S31 { font-style: italic; color: #808080; } .L0S32 { color: #3399FF; } .L0S52 { color: #0000FF; } .L0S55 { color: #800080; } .L0S70 { color: #808080; }&lt;/P&gt;
  &lt;P&gt;"Pasamos la tabla con los datos en binario al servidor&lt;BR /&gt; OPEN DATASET ld_filename FOR OUTPUT IN TEXT MODE ENCODING UTF-8. "IN TEXT MODE ENCODING UTF-8."FOR OUTPUT IN BINARY MODE.&lt;BR /&gt; LOOP AT lt_converted INTO DATA(ls_converted).&lt;BR /&gt; TRY.&lt;BR /&gt; TRANSFER ls_converted TO ld_filename.&lt;BR /&gt; CATCH cx_sy_file_open_mode INTO lo_sy_file_open_mode.&lt;/P&gt;
  &lt;P&gt;I try it also with: IN TEXT MODE ENCODING DEFAULT AND ENCODING NON-UNICODE. but nothing works when I download the csv from the server some characters, accents for example, are substitute by strange simbols. If I reconvert mi csv file to a .txt and I open it in Excel with the assistant I can change the encoding manually and then the simbols are correct, but I need a solution when I open my CSV directly using EXCEL the simbols appear correctly without using asistants and reconverting files.&lt;BR /&gt;&lt;BR /&gt;Thanks so much! &lt;/P&gt;</description>
      <pubDate>Tue, 04 Dec 2018 06:31:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/open-data-set-csv-upload-error-encoding/m-p/719091#M33456</guid>
      <dc:creator>former_member614683</dc:creator>
      <dc:date>2018-12-04T06:31:47Z</dc:date>
    </item>
  </channel>
</rss>

