<?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: Error while reading excel file from application server into internal table. in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-while-reading-excel-file-from-application-server-into-internal-table/m-p/7833944#M1590221</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try saving the file as "Tab delimited" with .xls extension and then move it to application server.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 17 May 2011 19:57:14 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2011-05-17T19:57:14Z</dc:date>
    <item>
      <title>Error while reading excel file from application server into internal table.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-while-reading-excel-file-from-application-server-into-internal-table/m-p/7833943#M1590220</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi experts,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My requirement is to read an excel file from application server into internal table.&lt;/P&gt;&lt;P&gt;Hence I have created an excel file fm_test_excel.xls in desktop and uploaded to app server using CG3Z tcode (as BIN file type).&lt;/P&gt;&lt;P&gt;Now in my program I have used : &lt;/P&gt;&lt;P&gt;OPEN DATASET v_filename FOR INPUT IN text mode encoding default.&lt;/P&gt;&lt;P&gt;DO.&lt;/P&gt;&lt;P&gt;READ DATASET v_filename INTO wa_tab.&lt;/P&gt;&lt;P&gt;......................................&lt;/P&gt;&lt;P&gt;The statement OPEN DATASET works fine but I get a dump (conversion code page error) at READ DATASET statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Error details:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt; A character set conversion is not possible.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;At the conversion of a text from codepage '4110' to codepage '4103':&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- a character was found that cannot be displayed in one of the two&lt;/P&gt;&lt;P&gt;codepages;&lt;/P&gt;&lt;P&gt;- or it was detected that this conversion is not supported&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The running ABAP program 'Y_READ_FILE' had to be terminated as the conversion&lt;/P&gt;&lt;P&gt;would have produced incorrect data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The number of characters that could not be displayed (and therefore not&lt;/P&gt;&lt;P&gt;be converted), is 445. If this number is 0, the second error case, as&lt;/P&gt;&lt;P&gt;mentioned above, has occurred.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;An exception occurred that is explained in detail below.&lt;/P&gt;&lt;P&gt;The exception, which is assigned to class 'CX_SY_CONVERSION_CODEPAGE', was not&lt;/P&gt;&lt;P&gt; caught and&lt;/P&gt;&lt;P&gt;therefore caused a runtime error.&lt;/P&gt;&lt;P&gt;The reason for the exception is:&lt;/P&gt;&lt;P&gt;Characters are always displayed in only a certain codepage. Many&lt;/P&gt;&lt;P&gt;codepages only define a limited set of characters. If a text from a&lt;/P&gt;&lt;P&gt;codepage should be converted into another codepage, and if this text&lt;/P&gt;&lt;P&gt;contains characters that are not defined in one of the two codepages, a&lt;/P&gt;&lt;P&gt;conversion error occurs.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Moreover, a conversion error can occur if one of the needed codepages&lt;/P&gt;&lt;P&gt;'4110' or '4103' is not known to the system.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If the conversion error occurred at read or write of  screen, the file&lt;/P&gt;&lt;P&gt;name was '/usr/sap/read_files/fm_test_excel.xls'. (further information about&lt;/P&gt;&lt;P&gt; the file: "X 549 16896rw-rw----201105170908082011051707480320110517074803")&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also let me know whether this is the proper way of reading excel file from app server, if not please suggest an alternative .&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;Karthik&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 May 2011 13:25:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-while-reading-excel-file-from-application-server-into-internal-table/m-p/7833943#M1590220</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-05-17T13:25:07Z</dc:date>
    </item>
    <item>
      <title>Re: Error while reading excel file from application server into internal table.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-while-reading-excel-file-from-application-server-into-internal-table/m-p/7833944#M1590221</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try saving the file as "Tab delimited" with .xls extension and then move it to application server.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 May 2011 19:57:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-while-reading-excel-file-from-application-server-into-internal-table/m-p/7833944#M1590221</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-05-17T19:57:14Z</dc:date>
    </item>
    <item>
      <title>Re: Error while reading excel file from application server into internal table.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-while-reading-excel-file-from-application-server-into-internal-table/m-p/7833945#M1590222</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 to use &lt;STRONG&gt;OPEN DATASET v_filename FOR INPUT IN BINARY mode encoding default.&lt;/STRONG&gt; instead of OPEN DATASET v_filename FOR INPUT IN text mode encoding default.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As I think you are uploading the file in BIN format to Application server and trying to open text file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Umang Mehta&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 May 2011 04:46:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-while-reading-excel-file-from-application-server-into-internal-table/m-p/7833945#M1590222</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-05-18T04:46:02Z</dc:date>
    </item>
    <item>
      <title>Re: Error while reading excel file from application server into internal table.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-while-reading-excel-file-from-application-server-into-internal-table/m-p/7833946#M1590223</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I got the solution.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The function module FILE_READ_AND_CONVERT_SAP_DATA has to be used.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Karthik&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 May 2011 15:47:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-while-reading-excel-file-from-application-server-into-internal-table/m-p/7833946#M1590223</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-05-20T15:47:29Z</dc:date>
    </item>
  </channel>
</rss>

