<?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 read .csv  from server directory in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/read-csv-from-server-directory/m-p/12095341#M1972314</link>
    <description>&lt;P&gt;read .csv &lt;STRONG&gt;contents char, dats, unit &lt;/STRONG&gt;etc from server directory.&lt;/P&gt;
  &lt;P&gt;i have using:&lt;/P&gt;
  &lt;P&gt; OPEN DATASET file FOR INPUT IN TEXT MODE ENCODING DEFAULT.&lt;/P&gt;
  &lt;P&gt;...&lt;/P&gt;
  &lt;P&gt;READ DATASET file INTO my_structure.&lt;/P&gt;
  &lt;P&gt;dump to "read dataset":&lt;/P&gt;
  &lt;P&gt;exception = CX_SY_CONVERSION_CODEPAGE&lt;/P&gt;
  &lt;P&gt; During conversion of a text from code page '4110' to code page '4103', one of the following occurred: - Characters were discovered that cannot be displayed in one of the code pages - The conversion could not be performed for some other reason (see below for more details). Excerpt from the source buffer from the first character that could not be converted, displayed in hexadecimal form (with the ASCII characters in brackets): "82 CF 6E 01 00 00 04 05 00 00 13 00 08 02 5B 43 (..n...........[C)" The system was forced to terminate the current ABAP program 'ZTESTPROVA' since the conversion would have produced incorrect data. There are 50 of these non-convertible characters. If this number is 0, the second of the two scenarios described above applies.&lt;/P&gt;
  &lt;P&gt;thanks&lt;/P&gt;</description>
    <pubDate>Mon, 11 Nov 2019 08:52:30 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2019-11-11T08:52:30Z</dc:date>
    <item>
      <title>read .csv  from server directory</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/read-csv-from-server-directory/m-p/12095341#M1972314</link>
      <description>&lt;P&gt;read .csv &lt;STRONG&gt;contents char, dats, unit &lt;/STRONG&gt;etc from server directory.&lt;/P&gt;
  &lt;P&gt;i have using:&lt;/P&gt;
  &lt;P&gt; OPEN DATASET file FOR INPUT IN TEXT MODE ENCODING DEFAULT.&lt;/P&gt;
  &lt;P&gt;...&lt;/P&gt;
  &lt;P&gt;READ DATASET file INTO my_structure.&lt;/P&gt;
  &lt;P&gt;dump to "read dataset":&lt;/P&gt;
  &lt;P&gt;exception = CX_SY_CONVERSION_CODEPAGE&lt;/P&gt;
  &lt;P&gt; During conversion of a text from code page '4110' to code page '4103', one of the following occurred: - Characters were discovered that cannot be displayed in one of the code pages - The conversion could not be performed for some other reason (see below for more details). Excerpt from the source buffer from the first character that could not be converted, displayed in hexadecimal form (with the ASCII characters in brackets): "82 CF 6E 01 00 00 04 05 00 00 13 00 08 02 5B 43 (..n...........[C)" The system was forced to terminate the current ABAP program 'ZTESTPROVA' since the conversion would have produced incorrect data. There are 50 of these non-convertible characters. If this number is 0, the second of the two scenarios described above applies.&lt;/P&gt;
  &lt;P&gt;thanks&lt;/P&gt;</description>
      <pubDate>Mon, 11 Nov 2019 08:52:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/read-csv-from-server-directory/m-p/12095341#M1972314</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2019-11-11T08:52:30Z</dc:date>
    </item>
    <item>
      <title>Re: read .csv  from server directory</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/read-csv-from-server-directory/m-p/12095342#M1972315</link>
      <description>&lt;P&gt;Luca, I think you really need to start learning about using search functionality over internet. You will find the solution of most of your issus&lt;/P&gt;&lt;P&gt;1 answer of Google with the key work "OPEN DATASET CX_SY_CONVERSION_CODEPAGE"&lt;/P&gt;&lt;P&gt;&lt;A href="https://answers.sap.com/questions/2547874/open-dataset-and-transfer-ittable-to-file-error-cx.html"&gt;https://answers.sap.com/questions/2547874/open-dataset-and-transfer-ittable-to-file-error-cx.html&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 11 Nov 2019 09:08:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/read-csv-from-server-directory/m-p/12095342#M1972315</guid>
      <dc:creator>FredericGirod</dc:creator>
      <dc:date>2019-11-11T09:08:17Z</dc:date>
    </item>
    <item>
      <title>Re: read .csv  from server directory</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/read-csv-from-server-directory/m-p/12095343#M1972316</link>
      <description>&lt;P&gt;I prefer to read files in BINARY MODE. And later convert if needed to text in specific code page.&lt;/P&gt;&lt;P&gt;In your case you would read dataset to xstring and after that convert it to string in code page of CSV file. We cannot tell which one, but probably UTF-8 (that depends on the provider who provides/creates that file).&lt;/P&gt;&lt;P&gt;Handy methods to conversion are in cl_bcs_convert (method xstring to string in this case).&lt;/P&gt;</description>
      <pubDate>Mon, 11 Nov 2019 11:53:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/read-csv-from-server-directory/m-p/12095343#M1972316</guid>
      <dc:creator>Tomas_Buryanek</dc:creator>
      <dc:date>2019-11-11T11:53:53Z</dc:date>
    </item>
    <item>
      <title>Re: read .csv  from server directory</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/read-csv-from-server-directory/m-p/12095344#M1972317</link>
      <description>&lt;P&gt;Maybe this &lt;A href="https://github.com/sandraros/abap-CSR"&gt;character-set recognition tool&lt;/A&gt; can help.&lt;/P&gt;</description>
      <pubDate>Mon, 11 Nov 2019 15:36:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/read-csv-from-server-directory/m-p/12095344#M1972317</guid>
      <dc:creator>Sandra_Rossi</dc:creator>
      <dc:date>2019-11-11T15:36:56Z</dc:date>
    </item>
  </channel>
</rss>

