<?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 - TRANSLATE... TO CODE PAGE in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/unicode-translate-to-code-page/m-p/3400951#M816561</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Mixed structures cant be handled in such a way under unicode. You have to do the work whatever is needed component ba component.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Without unicode you can determine where characters are in the structure by knwoing strating psition and length.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In Unicode you cant to that anymore because depending on the content the starting position my vary now. Without unicode a character is always one byte. In Unicode a character might be one, two, three or even four bytes long depending on the representing character.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So using translate a &lt;STRONG&gt;mixed&lt;/STRONG&gt; structure to a code page makes not really sense.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What do you really want to achieve?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 08 Feb 2008 07:45:30 GMT</pubDate>
    <dc:creator>rainer_hbenthal</dc:creator>
    <dc:date>2008-02-08T07:45:30Z</dc:date>
    <item>
      <title>Unicode - TRANSLATE... TO CODE PAGE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/unicode-translate-to-code-page/m-p/3400950#M816560</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Everyone,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am working on a Unicode Upgrade Project from 4.6C to ECC 6.0&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Has any one of you worked with the TRANSLATE statement using the TO CODE PAGE variant? First of all, I am not clear on its utility. I&amp;#146;m not very good with character formats etc. I tried reading the SAP Help&amp;#133; but that&amp;#146;s not very clear. Please help me with this. The sample code that I have with me goes like this: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;* ABC is a structure with fields of mixed data types.&lt;/CODE&gt;&lt;/PRE&gt;&lt;PRE&gt;&lt;CODE&gt;TRANSLATE ABC TO CODE PAGE '0100'.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Secondly, my actual requirement is to replace this coding style and make it Unicode compatible. For this I found that I&amp;#146;m supposed to use the methods of either of the classes: CL_ABAP_CONV_IN_CE or CL_ABAP_CONV_OUT_CE. I am not able to decide on which method to pick because I&amp;#146;m not clear with the basic functionality of the obsolete code i.e. TRANSLATE&amp;#133; TO CODE PAGE&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need to resolve this issue at the earliest. Any help would be much appreciated!!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Priya&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Feb 2008 06:59:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/unicode-translate-to-code-page/m-p/3400950#M816560</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-08T06:59:37Z</dc:date>
    </item>
    <item>
      <title>Re: Unicode - TRANSLATE... TO CODE PAGE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/unicode-translate-to-code-page/m-p/3400951#M816561</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Mixed structures cant be handled in such a way under unicode. You have to do the work whatever is needed component ba component.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Without unicode you can determine where characters are in the structure by knwoing strating psition and length.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In Unicode you cant to that anymore because depending on the content the starting position my vary now. Without unicode a character is always one byte. In Unicode a character might be one, two, three or even four bytes long depending on the representing character.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So using translate a &lt;STRONG&gt;mixed&lt;/STRONG&gt; structure to a code page makes not really sense.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What do you really want to achieve?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Feb 2008 07:45:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/unicode-translate-to-code-page/m-p/3400951#M816561</guid>
      <dc:creator>rainer_hbenthal</dc:creator>
      <dc:date>2008-02-08T07:45:30Z</dc:date>
    </item>
    <item>
      <title>Re: Unicode - TRANSLATE... TO CODE PAGE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/unicode-translate-to-code-page/m-p/3400952#M816562</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for the prompt response and clearing certain points about usage of TRANSLATE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am working on a Unicode upgrade task where I have to find all statements that are not Unicode compatible and replace them with corresponding Unicode compatible statements.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The TRANSLATE... TO CODE PAGE statement is used on a structure in one of my programs. I need to find out a Unicode way of doing what the obsolete variant of TRANSLATE was doing.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope my query is clear now. Please do revert with your comments on it.&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;Regards,&lt;/P&gt;&lt;P&gt;Priya&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Feb 2008 08:27:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/unicode-translate-to-code-page/m-p/3400952#M816562</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-08T08:27:07Z</dc:date>
    </item>
    <item>
      <title>Re: Unicode - TRANSLATE... TO CODE PAGE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/unicode-translate-to-code-page/m-p/3400953#M816563</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Just had a quich look, translate is not allowed in unicode programs. You need use one of cl_abap_conv* classes instead.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Feb 2008 11:24:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/unicode-translate-to-code-page/m-p/3400953#M816563</guid>
      <dc:creator>rainer_hbenthal</dc:creator>
      <dc:date>2008-02-08T11:24:47Z</dc:date>
    </item>
    <item>
      <title>Re: Unicode - TRANSLATE... TO CODE PAGE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/unicode-translate-to-code-page/m-p/3400954#M816564</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Rainer.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have already tried using the cl_abap_conv* conversion classes. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The classes/ methods that I tried using so far works fine, but it gives me an error in my particular program because the structure being converted has variables of varied data types.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The methods I tried are giving the C_OBJECTS_NOT_CONVERTIBL error. This is related to type conversion related errors.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am still working on this. Please update me if you get any specific example on this issue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Priya&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Feb 2008 06:35:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/unicode-translate-to-code-page/m-p/3400954#M816564</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-11T06:35:56Z</dc:date>
    </item>
    <item>
      <title>Re: Unicode - TRANSLATE... TO CODE PAGE</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/unicode-translate-to-code-page/m-p/3400955#M816565</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Did you try&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CL_ABAP_CONV_OUT_CE, Method convert_struc?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This method is not throwing an exception like you posted and this looks suitable,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Feb 2008 09:25:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/unicode-translate-to-code-page/m-p/3400955#M816565</guid>
      <dc:creator>rainer_hbenthal</dc:creator>
      <dc:date>2008-02-11T09:25:46Z</dc:date>
    </item>
  </channel>
</rss>

