<?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 in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/unicode-error/m-p/3716439#M894650</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;check this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: con_cret TYPE c VALUE cl_abap_char_utilities=&amp;gt;cr_lf.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Raj.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 23 Apr 2008 05:08:10 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-04-23T05:08:10Z</dc:date>
    <item>
      <title>Unicode error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/unicode-error/m-p/3716436#M894647</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 upgrading version 4.6 to 6.0 . In one of my programs &lt;/P&gt;&lt;P&gt;i have a statement like &lt;/P&gt;&lt;P&gt;begin of quote&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;x type x value 39&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;end of quote&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;type x is no longer valid data type&lt;/P&gt;&lt;P&gt;the result of the statement is value of quote becomes &lt;STRONG&gt;'&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;wt should i replace it with&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Apr 2008 05:00:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/unicode-error/m-p/3716436#M894647</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-23T05:00:51Z</dc:date>
    </item>
    <item>
      <title>Re: Unicode error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/unicode-error/m-p/3716437#M894648</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;Refer this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Error:&lt;/P&gt;&lt;P&gt;Constants : c_tab type x value '09' .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Correct:&lt;/P&gt;&lt;P&gt;Constants : c_tab type abap_char1 value cl_abap_char_utilities=&amp;gt;horizontal_tab .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward if helpful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ramya&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Apr 2008 05:03:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/unicode-error/m-p/3716437#M894648</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-23T05:03:01Z</dc:date>
    </item>
    <item>
      <title>Re: Unicode error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/unicode-error/m-p/3716438#M894649</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thanks 4 ur reply but i want statement for  value 39 only&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Apr 2008 05:06:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/unicode-error/m-p/3716438#M894649</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-23T05:06:12Z</dc:date>
    </item>
    <item>
      <title>Re: Unicode error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/unicode-error/m-p/3716439#M894650</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;check this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: con_cret TYPE c VALUE cl_abap_char_utilities=&amp;gt;cr_lf.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Raj.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Apr 2008 05:08:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/unicode-error/m-p/3716439#M894650</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-23T05:08:10Z</dc:date>
    </item>
    <item>
      <title>Re: Unicode error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/unicode-error/m-p/3716440#M894651</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hai&lt;/P&gt;&lt;P&gt;  surbi dara,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;        For ur question, this is the correct way of representation &lt;/P&gt;&lt;P&gt;to get correct output in ECC6.0&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;data: begin of quote,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;        &lt;STRONG&gt;x type x value '39',&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;      &lt;STRONG&gt;end of quote.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      &lt;STRONG&gt;write quote-x.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now, u got req. output. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If useful, reward points.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;G.V.K.Prasad.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: PRASAD GVK on Apr 23, 2008 7:11 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Apr 2008 05:10:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/unicode-error/m-p/3716440#M894651</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-23T05:10:10Z</dc:date>
    </item>
    <item>
      <title>Re: Unicode error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/unicode-error/m-p/3716441#M894652</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Check this out.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Error: &lt;/P&gt;&lt;P&gt;In case of TYPE X Error; &amp;#145;Variable must be of C, N, D, T or STRING type.&amp;#146;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Correction: &lt;/P&gt;&lt;P&gt;We need to change all the Type X (Hexadecimal) variables to Type C with their values unchanged.&lt;/P&gt;&lt;P&gt;So the method to be followed is:-&lt;/P&gt;&lt;P&gt;1. Load the definition of the class CL_ABAP_CONV_IN_CE or CL_ABAP_CHAR_UTILITIES.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. Declare the variable as Type C, and use the method UCCP(&amp;#145;XXXX&amp;#146;) of the class CL_ABAP_CONV_IN_CE where XXXX represents the 8-bit Hexadecimal value and incase the variable holds a Hex value for a Horizontal Tab , then the Attribute &amp;#147;HORIZONTAL_TAB&amp;#148; of the class CL_ABAP_CHAR_UTILITIES can be used directly instead of using the method UCCP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;E.g.:&lt;/P&gt;&lt;P&gt;i) *DATA: TAB TYPE X VALUE 09, &amp;#147;Tab character&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CLASS: CL_ABAP_CHAR_UTILITIES DEFINITION LOAD.&lt;/P&gt;&lt;P&gt;DATA TAB TYPE C VALUE CL_ABAP_CHAR_UTILITIES=&amp;gt;HORIZONTAL_TAB.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ii) * DATA: CHAR TYPE X VALUE 160. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CLASS: CL_ABAP_CONV_IN_CE DEFINITION LOAD.&lt;/P&gt;&lt;P&gt;DATA CHAR TYPE C.&lt;/P&gt;&lt;P&gt;CHAR = CL_ABAP_CONV_IN_CE=&amp;gt;UCCP(&amp;#145;00AO&amp;#146;). &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(Here &amp;#145;00A0&amp;#146; is the Hexadecimal equivalent of the decimal 160).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3. Incase the TYPE X Variable has a length more than 1, then an internal table must be created for the variable.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;E.g.:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CLASS: CL_ABAP_CONV_IN_CE DEFINITION LOAD.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA : LF(2) TYPE X VALUE 'F5CD'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA : BEGIN OF LF,&lt;/P&gt;&lt;P&gt;A1 TYPE C,&lt;/P&gt;&lt;P&gt;A2 TYPE C,&lt;/P&gt;&lt;P&gt;END OF LF.&lt;/P&gt;&lt;P&gt;LF-A1 = CL_ABAP_CONV_IN_CE=&amp;gt;UCCP('00F5').&lt;/P&gt;&lt;P&gt;LF-A2 = CL_ABAP_CONV_IN_CE=&amp;gt;UCCP('00CD').&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward if helpful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ramya&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Apr 2008 05:13:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/unicode-error/m-p/3716441#M894652</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-23T05:13:25Z</dc:date>
    </item>
  </channel>
</rss>

