<?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: Read Dataset encoding problem on unicode programs in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/read-dataset-encoding-problem-on-unicode-programs/m-p/8366544#M1641562</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can u tell whats the code you have written.&lt;/P&gt;&lt;P&gt;Also tell me one line of data in your file.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 13 Nov 2011 08:14:40 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2011-11-13T08:14:40Z</dc:date>
    <item>
      <title>Read Dataset encoding problem on unicode programs</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/read-dataset-encoding-problem-on-unicode-programs/m-p/8366543#M1641561</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a file handling problem on ECC 6.04 upgrade from ECC 5.00. The 'Read Dataset' statements on 6.04 system are not working which are working properly on 5.00 system. I need to read text files. The packed numbers on these files are coming as #. When I check them on AL11 transaction I see them # again. When I debug the programs on non-unicode(5.00) system, I saw that the packed numbers are coming as # again but when I assign them to a variable which type is packed, they became 1.500 for example. I need to use character type variables on unicode(6.04) system, otherwise I get syntax error. Thats why I could not use a packed number to convert # character to real numbers. I have tried all Read Dataset additions(legacy, code pages, non-unicode, utf-8 etc.) but every time I got dump on assigning # variables to a character field. I think I need to get values from file as real numbers like 1.500. I tried the same programs with a unicode converted files but still not working. I need to see the file content as real numbers I think, or find a way to convert these # characters to a numbers wtihout getting dump. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;All suggestions will be welcomed. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 12 Nov 2011 16:49:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/read-dataset-encoding-problem-on-unicode-programs/m-p/8366543#M1641561</guid>
      <dc:creator>kadir_ozgur</dc:creator>
      <dc:date>2011-11-12T16:49:52Z</dc:date>
    </item>
    <item>
      <title>Re: Read Dataset encoding problem on unicode programs</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/read-dataset-encoding-problem-on-unicode-programs/m-p/8366544#M1641562</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can u tell whats the code you have written.&lt;/P&gt;&lt;P&gt;Also tell me one line of data in your file.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 13 Nov 2011 08:14:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/read-dataset-encoding-problem-on-unicode-programs/m-p/8366544#M1641562</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-11-13T08:14:40Z</dc:date>
    </item>
    <item>
      <title>Re: Read Dataset encoding problem on unicode programs</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/read-dataset-encoding-problem-on-unicode-programs/m-p/8366545#M1641563</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;open dataset file for input in text mode encoding non-unicode message mess.&lt;/P&gt;&lt;P&gt;The code above is an example that I have used. I already used 'encoding utf-8, default' and 'legacy text mode' also. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;K1056-15   and #####P# is an example line of my file. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;K1056-15 is type afpo-aufnr&lt;/P&gt;&lt;P&gt;######P# is type mbew-lbkum.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I can get the afpo-aufnr type value correctly but mbew-lbkum type value come as ######P# and I can not assign this value to another structure or internal table field which has type mbew-lbkum. I got syntax error when I try that. But in non-unicode systems, when I assign value '######P#' to a field that has type  mbew-lbkum, #####P# transforms to 1.500. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your help Manjunath.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 13 Nov 2011 10:19:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/read-dataset-encoding-problem-on-unicode-programs/m-p/8366545#M1641563</guid>
      <dc:creator>kadir_ozgur</dc:creator>
      <dc:date>2011-11-13T10:19:21Z</dc:date>
    </item>
    <item>
      <title>Re: Read Dataset encoding problem on unicode programs</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/read-dataset-encoding-problem-on-unicode-programs/m-p/8366546#M1641564</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry, i am not very sure what your issue is.&lt;/P&gt;&lt;P&gt;On your SAP Logon PAD ,  click on Change Item --&amp;gt; Go to Code Page  tab&lt;/P&gt;&lt;P&gt;Check the Encoding details over there : try using 'DEFAULT - ANSI for UNICODE system'&lt;/P&gt;&lt;P&gt;see if this works&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 Nov 2011 04:19:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/read-dataset-encoding-problem-on-unicode-programs/m-p/8366546#M1641564</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-11-14T04:19:40Z</dc:date>
    </item>
  </channel>
</rss>

