<?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: Unicode Problem in Open data  Set Statement in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/unicode-problem-in-open-data-set-statement/m-p/3706842#M892533</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;It is necessary to specify as an option, which character set is used in the disk file. Since the legacy system is still using the "old" character set and not Unicode.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Find out the character set in the legacy and use like this way&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
open dataset fnam for input in legacy text mode code page '1100'.
&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>Fri, 18 Apr 2008 14:05:26 GMT</pubDate>
    <dc:creator>former_member194669</dc:creator>
    <dc:date>2008-04-18T14:05:26Z</dc:date>
    <item>
      <title>Unicode Problem in Open data  Set Statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/unicode-problem-in-open-data-set-statement/m-p/3706839#M892530</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 getting the unicode problem in transfer statement.&lt;/P&gt;&lt;P&gt;Please follow the code.&lt;/P&gt;&lt;P&gt;DATA : BEGIN OF FINALDATA1 OCCURS 0,&lt;/P&gt;&lt;P&gt;       TEXT(25) TYPE C,&lt;/P&gt;&lt;P&gt;       f0(1) type c value ',',&lt;/P&gt;&lt;P&gt;       QUANTITY LIKE S780-ZZPRDPRQTY,&lt;/P&gt;&lt;P&gt;       f1(1) type c value ',',&lt;/P&gt;&lt;P&gt;       CURRENCY LIKE S780-ZZPRDPURCS,&lt;/P&gt;&lt;P&gt;       f2(1) type c value ',',&lt;/P&gt;&lt;P&gt;       TRATE1 TYPE P DECIMALS 3,&lt;/P&gt;&lt;P&gt;       END OF FINALDATA1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;OPEN: DATASET OFILE FOR OUTPUT IN TEXT MODE ENCODING DEFAULT.  "open the input file "ECC6&lt;/P&gt;&lt;P&gt;  IF SY-SUBRC &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;    WRITE: 'Input file could not be opened', SY-SUBRC.&lt;/P&gt;&lt;P&gt;    STOP.&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; LOOP AT FINALDATA1.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;   perform move_neg_sign1.&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;   perform move_neg_sign2.&lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;   perform move_neg_sign3.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;*&lt;/P&gt;&lt;P&gt;    TRANSFER FINALDATA1 TO OFILE .&lt;/P&gt;&lt;P&gt;  ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In this the unicode problem will comin in runtime mode.&lt;/P&gt;&lt;P&gt;please solve this problem urgently.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards,&lt;/P&gt;&lt;P&gt;Radhakrishna.Y&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Apr 2008 13:51:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/unicode-problem-in-open-data-set-statement/m-p/3706839#M892530</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-18T13:51:38Z</dc:date>
    </item>
    <item>
      <title>Re: Unicode Problem in Open data  Set Statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/unicode-problem-in-open-data-set-statement/m-p/3706840#M892531</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Use the &lt;STRONG&gt;OPEN DATASET&lt;/STRONG&gt; command &lt;STRONG&gt;IN BYNARY MODE&lt;/STRONG&gt; saving the data to an &lt;STRONG&gt;XSTRING&lt;/STRONG&gt; variable and later on convert it to the desirable data type.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Follow an example:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
DATA: file TYPE string VALUE `flights.dat`, 
      wa TYPE spfli. 

FIELD-SYMBOLS &amp;lt;hex_container&amp;gt; TYPE x. 

OPEN DATASET file FOR INPUT IN BINARY MODE. 

ASSIGN wa TO &amp;lt;hex_container&amp;gt; CASTING. 

DO. 
  READ DATASET file INTO &amp;lt;hex_container&amp;gt;. 
  IF sy-subrc = 0. 
    WRITE: / wa-carrid, 
             wa-connid, 
             wa-countryfr, 
             wa-cityfrom, 
             wa-cityto, 
             wa-fltime, 
             wa-distance. 
  ELSE. 
    EXIT. 
  ENDIF. 
ENDDO. 
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Apr 2008 13:56:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/unicode-problem-in-open-data-set-statement/m-p/3706840#M892531</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-18T13:56:20Z</dc:date>
    </item>
    <item>
      <title>Re: Unicode Problem in Open data  Set Statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/unicode-problem-in-open-data-set-statement/m-p/3706841#M892532</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;transfer will fail for currency and Quantity fields.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA : BEGIN OF FINALDATA1 OCCURS 0,&lt;/P&gt;&lt;P&gt;TEXT(25) TYPE C,&lt;/P&gt;&lt;P&gt;f0(1) type c value ',',&lt;/P&gt;&lt;P&gt;QUANTITY type char10,  "they should be character variables&lt;/P&gt;&lt;P&gt;f1(1) type c value ',',&lt;/P&gt;&lt;P&gt;CURRENCY type waers,&lt;/P&gt;&lt;P&gt;f2(1) type c value ',',&lt;/P&gt;&lt;P&gt;TRATE1 TYPE P DECIMALS 3,&lt;/P&gt;&lt;P&gt;END OF FINALDATA1.&lt;/P&gt;&lt;P&gt;data: file type rlgrap-filename.&lt;/P&gt;&lt;P&gt;OPEN: DATASET FILE FOR OUTPUT IN TEXT MODE ENCODING DEFAULT. "open the &lt;/P&gt;&lt;P&gt;IF SY-SUBRC eq 0.&lt;/P&gt;&lt;P&gt;WRITE: 'Input file could not be opened', SY-SUBRC.&lt;/P&gt;&lt;P&gt;STOP.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP AT FINALDATA1.&lt;/P&gt;&lt;P&gt;"so convert that to char format and send.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TRANSFER FINALDATA1 TO FILE .&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Apr 2008 14:04:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/unicode-problem-in-open-data-set-statement/m-p/3706841#M892532</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-18T14:04:02Z</dc:date>
    </item>
    <item>
      <title>Re: Unicode Problem in Open data  Set Statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/unicode-problem-in-open-data-set-statement/m-p/3706842#M892533</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;It is necessary to specify as an option, which character set is used in the disk file. Since the legacy system is still using the "old" character set and not Unicode.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Find out the character set in the legacy and use like this way&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
open dataset fnam for input in legacy text mode code page '1100'.
&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>Fri, 18 Apr 2008 14:05:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/unicode-problem-in-open-data-set-statement/m-p/3706842#M892533</guid>
      <dc:creator>former_member194669</dc:creator>
      <dc:date>2008-04-18T14:05:26Z</dc:date>
    </item>
    <item>
      <title>Re: Unicode Problem in Open data  Set Statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/unicode-problem-in-open-data-set-statement/m-p/3706843#M892534</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;how we convert the quantity, currency and rate fields having decimal values into character format.&lt;/P&gt;&lt;P&gt;my file having data like this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;233,123.000 is the currency&lt;/P&gt;&lt;P&gt;.091 is the rate.&lt;/P&gt;&lt;P&gt;254.678 is the quantity.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;my main problem is when i transfer my data from internal table to operating system file,it displays the unicode problem during runtime.&lt;/P&gt;&lt;P&gt;TRANSFER FINALDATA1 TO OFILE(it is a operating system file).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please provide me profer solution.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards,&lt;/P&gt;&lt;P&gt;Radhakrishna.Y&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 Apr 2008 14:50:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/unicode-problem-in-open-data-set-statement/m-p/3706843#M892534</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-18T14:50:32Z</dc:date>
    </item>
    <item>
      <title>Re: Unicode Problem in Open data  Set Statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/unicode-problem-in-open-data-set-statement/m-p/3706844#M892535</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;data textqty(10) type c.&lt;/P&gt;&lt;P&gt;write quantity to textqty.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This will convert your quantity field to text..keeping the comma's and decimal&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Joe&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Aug 2008 21:41:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/unicode-problem-in-open-data-set-statement/m-p/3706844#M892535</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-20T21:41:07Z</dc:date>
    </item>
  </channel>
</rss>

