<?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: Transform the code to Unicode in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/transform-the-code-to-unicode/m-p/1418124#M200968</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Clemens,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for a reply.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It works. But it is very limited solution. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'd prefer to use CL_ABAP_CHAR_UTILITIES=&amp;gt;GET_SIMPLE_SPACES_FOR_CUR_CP to get white-space chars in Unicode system. As I wrote, I need to replace ALL forbidden chars: hex 00 - 1F.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Eugene&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 23 Jul 2006 13:05:54 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-07-23T13:05:54Z</dc:date>
    <item>
      <title>Transform the code to Unicode</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/transform-the-code-to-unicode/m-p/1418118#M200962</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 have the code converting TAB, CR and LF into spaces:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FIELD-SYMBOLS: &amp;lt;tb&amp;gt; TYPE x,&lt;/P&gt;&lt;P&gt;&amp;lt;tc&amp;gt; TYPE c.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA:&lt;/P&gt;&lt;P&gt;tab(6) TYPE x VALUE '09200D200A20',&lt;/P&gt;&lt;P&gt;char60(60) TYPE c.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CONCATENATE 'abCD' cl_abap_char_utilities=&amp;gt;horizontal_tab&lt;/P&gt;&lt;P&gt;cl_abap_char_utilities=&amp;gt;CR_LF '1234' INTO char60.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ASSIGN tab TO &amp;lt;tb&amp;gt; CASTING.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ASSIGN &amp;lt;tb&amp;gt; TO &amp;lt;tc&amp;gt; CASTING.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TRANSLATE char60 USING &amp;lt;tc&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I was told that it would fail in Unicode system.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How to transform the code to make it work in Unicode?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Eugene&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 22 Jul 2006 17:50:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/transform-the-code-to-unicode/m-p/1418118#M200962</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-07-22T17:50:07Z</dc:date>
    </item>
    <item>
      <title>Re: Transform the code to Unicode</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/transform-the-code-to-unicode/m-p/1418119#M200963</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;Go to program attributes and check unicode option and try.if system gives any error.then i think it won't work in unicode system.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Appana&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 22 Jul 2006 17:59:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/transform-the-code-to-unicode/m-p/1418119#M200963</guid>
      <dc:creator>Laxmana_Appana_</dc:creator>
      <dc:date>2006-07-22T17:59:36Z</dc:date>
    </item>
    <item>
      <title>Re: Transform the code to Unicode</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/transform-the-code-to-unicode/m-p/1418120#M200964</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi&lt;/P&gt;&lt;P&gt;you need to select the attribute Unicode in the Program Attribute.If it shows error then you need to replace the error statement with the correct syntax which will be supported in Unicode System..&lt;/P&gt;&lt;P&gt;For a list of valid Syntax in Unicode System Have look at the same in &lt;A href="http://help.sap.com" target="test_blank"&gt;http://help.sap.com&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Abdul Hakim&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 22 Jul 2006 18:30:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/transform-the-code-to-unicode/m-p/1418120#M200964</guid>
      <dc:creator>abdul_hakim</dc:creator>
      <dc:date>2006-07-22T18:30:36Z</dc:date>
    </item>
    <item>
      <title>Re: Transform the code to Unicode</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/transform-the-code-to-unicode/m-p/1418121#M200965</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Eugene,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;what about:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;pre&amp;gt;&lt;/P&gt;&lt;P&gt;REPLACE: &lt;/P&gt;&lt;P&gt;  cl_abap_char_utilities=&amp;gt;horizontal_tab WITH ' '&lt;/P&gt;&lt;P&gt;  INTO char60,&lt;/P&gt;&lt;P&gt;  cl_abap_char_utilities=&amp;gt;CR_LF WITH ' '&lt;/P&gt;&lt;P&gt;  INTO char60.&lt;/P&gt;&lt;P&gt;&amp;lt;/pre&amp;gt;&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;Clemens&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 22 Jul 2006 18:47:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/transform-the-code-to-unicode/m-p/1418121#M200965</guid>
      <dc:creator>Clemenss</dc:creator>
      <dc:date>2006-07-22T18:47:34Z</dc:date>
    </item>
    <item>
      <title>Re: Transform the code to Unicode</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/transform-the-code-to-unicode/m-p/1418122#M200966</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Guys,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for your answers, but they don't help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I know about checking the program for unicode and I went through help.sap.com, searched threads in forums. Still it's not clear for me.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The code of mine does work in non-unicode system.&lt;/P&gt;&lt;P&gt;I don't need to enhance it for non-unicode system.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need to rewrite it to make it work in Unicode.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I suppose that I have to use some Unicode specific  data types, probably the other ABAP statements etc.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How to do it?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I can use CL_ABAP_CONV_OUT_CE=&amp;gt;UCCP for returning Unicode codes, but in my case I always get 0030 (hex 23 == # as a replacement of invalid characters).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My main task: either to rewrite the code, or write another one which will replace hex codes 00 - 1F in Unicode system by spaces, for example.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Eugene&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: Eugene Khusainov&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 23 Jul 2006 08:38:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/transform-the-code-to-unicode/m-p/1418122#M200966</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-07-23T08:38:40Z</dc:date>
    </item>
    <item>
      <title>Re: Transform the code to Unicode</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/transform-the-code-to-unicode/m-p/1418123#M200967</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Eugene,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;there are no Unicode specific data types. But unicode systems use (at least) 2 bytes to store one character, that means the internal representation of a single character is 2 bytes enabling you to store more than 255 different characters but thousands as required for Chinese and other languages.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I just tried &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REPLACE cl_abap_char_utilities=&amp;gt;cr_lf WITH space INTO lv_string.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and it works perfect replacing Carriage Return and Line feed with a space character.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So I don't understand why this solution is not working for you - why is Replace not working?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Clemens&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;//&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 23 Jul 2006 13:00:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/transform-the-code-to-unicode/m-p/1418123#M200967</guid>
      <dc:creator>Clemenss</dc:creator>
      <dc:date>2006-07-23T13:00:15Z</dc:date>
    </item>
    <item>
      <title>Re: Transform the code to Unicode</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/transform-the-code-to-unicode/m-p/1418124#M200968</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Clemens,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for a reply.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It works. But it is very limited solution. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'd prefer to use CL_ABAP_CHAR_UTILITIES=&amp;gt;GET_SIMPLE_SPACES_FOR_CUR_CP to get white-space chars in Unicode system. As I wrote, I need to replace ALL forbidden chars: hex 00 - 1F.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Eugene&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 23 Jul 2006 13:05:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/transform-the-code-to-unicode/m-p/1418124#M200968</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-07-23T13:05:54Z</dc:date>
    </item>
    <item>
      <title>Re: Transform the code to Unicode</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/transform-the-code-to-unicode/m-p/1418125#M200969</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;To replace TAB, CR, and LF change variable tab(6) to&lt;/P&gt;&lt;P&gt;tab(12) type x value '00090020000D0020000A0020' in your old code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To replace all chars between 00-0F with space, try the following code. I don't have unicode system to test this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: len type i,&lt;/P&gt;&lt;P&gt;      off type i,&lt;/P&gt;&lt;P&gt;      hex(2) type x value '000F'. " '0F00' on windows app server&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data char60(60) type c.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;field-symbols &amp;lt;fs&amp;gt; type any.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;concatenate 'abCD' cl_abap_char_utilities=&amp;gt;horizontal_tab&lt;/P&gt;&lt;P&gt;cl_abap_char_utilities=&amp;gt;cr_lf '1234' into char60.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;len = strlen( char60 ).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;while off lt len.&lt;/P&gt;&lt;P&gt;  assign char60+off(1) to &amp;lt;fs&amp;gt; casting type x.&lt;/P&gt;&lt;P&gt;  if &amp;lt;fs&amp;gt; le hex.&lt;/P&gt;&lt;P&gt;    char60+off(1) = ' '.&lt;/P&gt;&lt;P&gt;  endif.&lt;/P&gt;&lt;P&gt;  add 1 to off.&lt;/P&gt;&lt;P&gt;endwhile.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;write:/ char60.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Sridhar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 24 Jul 2006 15:35:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/transform-the-code-to-unicode/m-p/1418125#M200969</guid>
      <dc:creator>sridhar_k1</dc:creator>
      <dc:date>2006-07-24T15:35:11Z</dc:date>
    </item>
  </channel>
</rss>

