<?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 error for type x in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/unicode-error-for-type-x/m-p/11785870#M1953043</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;the following class is quite convenient: &lt;A href="http://help.sap.com/abapdocu_750/en/index.htm?file=abencl_abap_codepage.htm"&gt;CL_ABAP_CODEPAGE&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Horst&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 06 Jul 2016 06:37:04 GMT</pubDate>
    <dc:creator>retired_member</dc:creator>
    <dc:date>2016-07-06T06:37:04Z</dc:date>
    <item>
      <title>Unicode error for type x</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/unicode-error-for-type-x/m-p/11785868#M1953041</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&amp;nbsp; Hi SAP Experts,&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&amp;nbsp; I am working on a SAP system upgrade in which an include is have some data definitions which are no longer valid in Unicode systems.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&amp;nbsp; I learned from the below link that type 'X' is no longer valid in Unicode systems.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;SPAN lang="EN-US" style="font-size: 12.0pt; font-family: 'Arial Unicode MS'; color: #1f497d;"&gt;&amp;nbsp;&amp;nbsp; &lt;A href="http://help.sap.com/saphelp_nw70ehp1/helpdata/ja/79/c554d9b3dc11d5993800508b6b8b11/content.htm"&gt;http://help.sap.com/saphelp_nw70ehp1/helpdata/ja/79/c554d9b3dc11d5993800508b6b8b11/content.htm&lt;/A&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 12px; color: #333333; background: #ffffff;"&gt;&amp;nbsp;&amp;nbsp; Now in order to make it unicode compatible we have to replace all the declarations &amp;amp; command lines involving 'type x'&lt;/P&gt;&lt;P style="font-size: 12px; color: #333333; background: #ffffff;"&gt;&amp;nbsp;&amp;nbsp; into&amp;nbsp; respective character&amp;nbsp; equivalents. This is usually done using the class 'cl_abap_char_utilities'.&lt;/P&gt;&lt;P style="font-size: 12px; color: #333333; background: #ffffff;"&gt;&amp;nbsp;&amp;nbsp; But this class can be used only for a few attributes like horizontal_tab, vertical_tab,linefeed,form feed.&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&amp;nbsp; Hence, I need to modify some data definitions like the below but I can't find any CLASS METHOD for &lt;SPAN style="font-size: 13.3333px;"&gt; '81', &lt;SPAN style="font-size: 13.3333px;"&gt;'9F', &lt;SPAN style="font-size: 13.3333px;"&gt;'E0', &lt;SPAN style="font-size: 13.3333px;"&gt;'FC'.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&amp;nbsp; DATA:$$sjis_1f TYPE x VALUE '81'.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; DATA:$$sjis_1t TYPE x VALUE '9F'.&lt;/P&gt;&lt;P&gt;&amp;nbsp; DATA:$$sjis_2f TYPE x VALUE 'E0'.&lt;/P&gt;&lt;P&gt;&amp;nbsp; DATA:$$sjis_2t TYPE x VALUE 'FC'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried the below two ways but they are not working:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;$$sjis_1f_new = CL_ABAP_CONV_IN_CE=&amp;gt;UCCP( '0081' ).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL METHOD CL_ABAP_CONV_IN_CE=&amp;gt;UCCP&lt;/P&gt;&lt;P&gt;EXPORTING&lt;/P&gt;&lt;P&gt;UCCP = $$sjis_1f&lt;/P&gt;&lt;P&gt;RECEIVING&lt;/P&gt;&lt;P&gt;CHAR = $$sjis_1f_new.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 12px; color: #333333; background: #ffffff;"&gt;Do you know which class to use for these values of hex.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 12px; color: #333333; background: #ffffff;"&gt;&amp;lt;Removed by moderator&amp;gt;&lt;/P&gt;&lt;P style="font-size: 12px; color: #333333; background: #ffffff;"&gt;&lt;/P&gt;&lt;P style="font-size: 12px; color: #333333; background: #ffffff;"&gt;Best Reagrds,&lt;/P&gt;&lt;P style="font-size: 12px; color: #333333; background: #ffffff;"&gt;Lucy&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: Matthew Billingham&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Jul 2016 04:53:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/unicode-error-for-type-x/m-p/11785868#M1953041</guid>
      <dc:creator>lucy_gray2</dc:creator>
      <dc:date>2016-07-06T04:53:54Z</dc:date>
    </item>
    <item>
      <title>Re: Unicode error for type x</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/unicode-error-for-type-x/m-p/11785869#M1953042</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;please check the methods of class CL_ABAP_CONV_OUT_CE.&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;Klaus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Jul 2016 05:05:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/unicode-error-for-type-x/m-p/11785869#M1953042</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2016-07-06T05:05:09Z</dc:date>
    </item>
    <item>
      <title>Re: Unicode error for type x</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/unicode-error-for-type-x/m-p/11785870#M1953043</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;the following class is quite convenient: &lt;A href="http://help.sap.com/abapdocu_750/en/index.htm?file=abencl_abap_codepage.htm"&gt;CL_ABAP_CODEPAGE&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Horst&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Jul 2016 06:37:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/unicode-error-for-type-x/m-p/11785870#M1953043</guid>
      <dc:creator>retired_member</dc:creator>
      <dc:date>2016-07-06T06:37:04Z</dc:date>
    </item>
    <item>
      <title>Re: Unicode error for type x</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/unicode-error-for-type-x/m-p/11785871#M1953044</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE&gt;&lt;CODE&gt;
&lt;P&gt;[...] type 'X' is no longer valid in Unicode systems&lt;/P&gt;
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Hopefully X is still fully valid. What is not valid is to mix C and X in the same ABAP statement, because a character is 2 bytes long in a Unicode system while a byte (type X) is 1 byte long (in non-Unicode systems, a character was one byte, from the compiler point of view of course).&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
&lt;P&gt;$$sjis_1f_new = CL_ABAP_CONV_IN_CE=&amp;gt;UCCP( '0081' ).&lt;/P&gt;
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;This is because UCCP accepts only a type X length 2 parameter. You need to write:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
&lt;P&gt;DATA sjis_1f_new(1) TYPE c.&lt;/P&gt;
&lt;P&gt;DATA uccp_dummy(2) TYPE x VALUE '0081'.&lt;/P&gt;
&lt;P&gt;sjis_1f_new = CL_ABAP_CONV_IN_CE=&amp;gt;UCCP( uccp_dummy ).&lt;/P&gt;
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;or using UCCPI (decimal value instead of hexadecimal) :&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
&lt;P&gt;sjis_1f_new = CL_ABAP_CONV_IN_CE=&amp;gt;UCCPI( 129 ).&lt;/P&gt;
&lt;/CODE&gt;&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Jul 2016 07:27:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/unicode-error-for-type-x/m-p/11785871#M1953044</guid>
      <dc:creator>Sandra_Rossi</dc:creator>
      <dc:date>2016-07-06T07:27:46Z</dc:date>
    </item>
    <item>
      <title>Re: Unicode error for type x</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/unicode-error-for-type-x/m-p/11785872#M1953045</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;Thanks for your replies, but unfortunately the methods suggested by you guys didn't work.&lt;/P&gt;&lt;P&gt;Lastly, I decided to replace all the UNICODE unsupported coding with some FMs to&lt;/P&gt;&lt;P&gt;achieve the include program's desired functionality.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Lucy&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 09 Jul 2016 03:28:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/unicode-error-for-type-x/m-p/11785872#M1953045</guid>
      <dc:creator>lucy_gray2</dc:creator>
      <dc:date>2016-07-09T03:28:11Z</dc:date>
    </item>
    <item>
      <title>Re: Unicode error for type x</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/unicode-error-for-type-x/m-p/11785873#M1953046</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;So, I guess your question was misleading, because we understood that you wanted to define one character based on a "Unicode code point" (i.e. what to do to get char = U+0081).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 09 Jul 2016 07:28:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/unicode-error-for-type-x/m-p/11785873#M1953046</guid>
      <dc:creator>Sandra_Rossi</dc:creator>
      <dc:date>2016-07-09T07:28:32Z</dc:date>
    </item>
  </channel>
</rss>

