<?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: Reading File from Application Server using Read Dataset in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/reading-file-from-application-server-using-read-dataset/m-p/4940534#M1152347</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;changes done.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 29 Dec 2008 12:33:46 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-12-29T12:33:46Z</dc:date>
    <item>
      <title>Reading File from Application Server using Read Dataset</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/reading-file-from-application-server-using-read-dataset/m-p/4940528#M1152341</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 am trying to read excel file from Application Server and has multiple records in that based on structure below. but when i execute its giving me error message.here is the code, can sumone suggest me on this please ??&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------------------------------" /&gt;&lt;P&gt;FORM f_data_upload .&lt;/P&gt;&lt;P&gt;  DATA:&lt;/P&gt;&lt;P&gt;     l_filename TYPE string,   "file name&lt;/P&gt;&lt;P&gt;     l_wa_string TYPE string.  "file record&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    l_filename = p_inp_as. "File path from Application Server&lt;/P&gt;&lt;P&gt;    OPEN DATASET l_filename FOR INPUT IN TEXT MODE ENCODING DEFAULT.&lt;/P&gt;&lt;P&gt;    DO.&lt;/P&gt;&lt;P&gt;      IF sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;        EXIT.&lt;/P&gt;&lt;P&gt;      ENDIF.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Read the data from the file in Application server.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;      READ DATASET l_filename INTO l_wa_string.&lt;/P&gt;&lt;P&gt;      IF sy-subrc = 0.&lt;/P&gt;&lt;P&gt;        SPLIT l_wa_string AT cl_abap_char_utilities=&amp;gt;horizontal_tab&lt;/P&gt;&lt;P&gt;              INTO w_data-tcode&lt;/P&gt;&lt;P&gt;                   w_data-matnr&lt;/P&gt;&lt;P&gt;                   w_data-mtart&lt;/P&gt;&lt;P&gt;                   w_data-werks&lt;/P&gt;&lt;P&gt;                   w_data-vkorg&lt;/P&gt;&lt;P&gt;                   w_data-vtweg&lt;/P&gt;&lt;P&gt;                   w_data-lgort&lt;/P&gt;&lt;P&gt;                   w_data-meins&lt;/P&gt;&lt;P&gt;                   w_data-maktx&lt;/P&gt;&lt;P&gt;                   w_data-spart&lt;/P&gt;&lt;P&gt;                   w_data-kosch&lt;/P&gt;&lt;P&gt;                   w_data-mstae&lt;/P&gt;&lt;P&gt;                   w_data-brgew&lt;/P&gt;&lt;P&gt;                   w_data-ntgew&lt;/P&gt;&lt;P&gt;                   w_data-groes&lt;/P&gt;&lt;P&gt;                   w_data-matkl&lt;/P&gt;&lt;P&gt;                   w_data-prdha&lt;/P&gt;&lt;P&gt;                   w_data-mstde&lt;/P&gt;&lt;P&gt;                   w_data-mtpos_mara&lt;/P&gt;&lt;P&gt;                   w_data-gewei&lt;/P&gt;&lt;P&gt;                   w_data-spart&lt;/P&gt;&lt;P&gt;                   w_data-mstav&lt;/P&gt;&lt;P&gt;                   w_data-mstdv&lt;/P&gt;&lt;P&gt;                   w_data-dwerk&lt;/P&gt;&lt;P&gt;                   w_data-taxkm&lt;/P&gt;&lt;P&gt;                   w_data-versg&lt;/P&gt;&lt;P&gt;                   w_data-kondm&lt;/P&gt;&lt;P&gt;                   w_data-ktgrm&lt;/P&gt;&lt;P&gt;                   w_data-mtpos&lt;/P&gt;&lt;P&gt;                   w_data-mtvfp&lt;/P&gt;&lt;P&gt;                   w_data-tragr&lt;/P&gt;&lt;P&gt;                   w_data-ladgr&lt;/P&gt;&lt;P&gt;                   w_data-herkl&lt;/P&gt;&lt;P&gt;                   w_data-ekgrp&lt;/P&gt;&lt;P&gt;                   w_data-webaz&lt;/P&gt;&lt;P&gt;                   w_data-dismm&lt;/P&gt;&lt;P&gt;                   w_data-beskz&lt;/P&gt;&lt;P&gt;                   w_data-prctr&lt;/P&gt;&lt;P&gt;                   w_data-bklas&lt;/P&gt;&lt;P&gt;                   w_data-bwtty&lt;/P&gt;&lt;P&gt;                   w_data-vprsv&lt;/P&gt;&lt;P&gt;                   w_data-verpr&lt;/P&gt;&lt;P&gt;               IN CHARACTER MODE.&lt;/P&gt;&lt;P&gt;        APPEND w_data TO i_data.&lt;/P&gt;&lt;P&gt;        CLEAR w_data.&lt;/P&gt;&lt;P&gt;       ENDIF.&lt;/P&gt;&lt;P&gt;    ENDDO.&lt;/P&gt;&lt;P&gt;    CLOSE DATASET l_filename.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="-----------------------------------------------------------------------------" /&gt;&lt;P&gt;Error Message while executing&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What happened?&lt;/P&gt;&lt;P&gt;    At the conversion of a text from codepage '4110' to codepage '4102':&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 'ZHDI_LOMM_VEHI_MAT_MASS_CREATE' had to be terminated&lt;/P&gt;&lt;P&gt;     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 449. 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;Error analysis&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 in&lt;/P&gt;&lt;P&gt;    procedure "F_DATA_UPLOAD" "(FORM)", nor was it propagated by a RAISING clause.&lt;/P&gt;&lt;P&gt;    Since the caller of the procedure could not have anticipated that the&lt;/P&gt;&lt;P&gt;    exception would occur, the current program is terminated.&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 '4102' 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/interfaces/conversion/pioneer/ddm/data/test_data1.xls'.&lt;/P&gt;&lt;P&gt;     (further information about the file: "X 549&lt;/P&gt;&lt;P&gt;     24064rw-rw----200812232135082008122307293120081223072931")&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please help me&lt;/P&gt;&lt;P&gt;Thank You&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Dec 2008 05:18:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/reading-file-from-application-server-using-read-dataset/m-p/4940528#M1152341</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-12-24T05:18:14Z</dc:date>
    </item>
    <item>
      <title>Re: Reading File from Application Server using Read Dataset</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/reading-file-from-application-server-using-read-dataset/m-p/4940529#M1152342</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try to change this way&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
  OPEN DATASET l_filename FOR INPUT IN TEXT MODE ENCODING NON-UNICODE.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; a®&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Dec 2008 05:27:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/reading-file-from-application-server-using-read-dataset/m-p/4940529#M1152342</guid>
      <dc:creator>former_member194669</dc:creator>
      <dc:date>2008-12-24T05:27:22Z</dc:date>
    </item>
    <item>
      <title>Re: Reading File from Application Server using Read Dataset</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/reading-file-from-application-server-using-read-dataset/m-p/4940530#M1152343</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Woah ... perfect guru &lt;SPAN __jive_emoticon_name="happy"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but data looks like all junk characters ? its filling with special characters, hashes # and other characters but not with Excel data.. any idea ??&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Temesh&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: New2Sap Abap on Dec 24, 2008 6:42 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Dec 2008 05:39:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/reading-file-from-application-server-using-read-dataset/m-p/4940530#M1152343</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-12-24T05:39:39Z</dc:date>
    </item>
    <item>
      <title>Re: Reading File from Application Server using Read Dataset</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/reading-file-from-application-server-using-read-dataset/m-p/4940531#M1152344</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;you want to read EXCEL files from application server is not possible, you need to create the file as CSV &lt;/P&gt;&lt;P&gt;(coma delimited) or TXT file. But you can read EXCEL file from you local system(presebtation server)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;a®&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Dec 2008 05:47:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/reading-file-from-application-server-using-read-dataset/m-p/4940531#M1152344</guid>
      <dc:creator>former_member194669</dc:creator>
      <dc:date>2008-12-24T05:47:13Z</dc:date>
    </item>
    <item>
      <title>Re: Reading File from Application Server using Read Dataset</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/reading-file-from-application-server-using-read-dataset/m-p/4940532#M1152345</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Oh so from Presentations Server its possible, but NOT from Application Server. Which FM should i use to convert Excel to CSV/TEXT to do that ??&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Dec 2008 05:51:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/reading-file-from-application-server-using-read-dataset/m-p/4940532#M1152345</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-12-24T05:51:34Z</dc:date>
    </item>
    <item>
      <title>Re: Reading File from Application Server using Read Dataset</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/reading-file-from-application-server-using-read-dataset/m-p/4940533#M1152346</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;check this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://forums.sdn.sap.com/search.jspa?threadID=&amp;amp;q=upload" target="test_blank"&gt;https://forums.sdn.sap.com/search.jspa?threadID=&amp;amp;q=upload&lt;/A&gt;&lt;EM&gt;AND&lt;/EM&gt;excel+&amp;amp;objID=f50&amp;amp;dateRange=thisyear&amp;amp;numResults=15&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; a®&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Dec 2008 06:06:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/reading-file-from-application-server-using-read-dataset/m-p/4940533#M1152346</guid>
      <dc:creator>former_member194669</dc:creator>
      <dc:date>2008-12-24T06:06:57Z</dc:date>
    </item>
    <item>
      <title>Re: Reading File from Application Server using Read Dataset</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/reading-file-from-application-server-using-read-dataset/m-p/4940534#M1152347</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;changes done.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Dec 2008 12:33:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/reading-file-from-application-server-using-read-dataset/m-p/4940534#M1152347</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-12-29T12:33:46Z</dc:date>
    </item>
  </channel>
</rss>

