<?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 Exception Class Text Translation in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/exception-class-text-translation/m-p/9498674#M1746979</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm hoping someone will be able to help me with this... I have an exception class with texts set up for various errors. I have translated those texts in SE63 (OTR texts) and if I log in to the system in French and look at the texts in the class it shows the texts in French.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My problem is that when I use the GET_TEXT method in a web dynpro application, regardless of what language I am logged in with, I get the English texts... &lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Any help would be greatly appreciated! Let me know if you need more details. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 17 Jun 2013 19:47:06 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2013-06-17T19:47:06Z</dc:date>
    <item>
      <title>Exception Class Text Translation</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/exception-class-text-translation/m-p/9498674#M1746979</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm hoping someone will be able to help me with this... I have an exception class with texts set up for various errors. I have translated those texts in SE63 (OTR texts) and if I log in to the system in French and look at the texts in the class it shows the texts in French.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My problem is that when I use the GET_TEXT method in a web dynpro application, regardless of what language I am logged in with, I get the English texts... &lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Any help would be greatly appreciated! Let me know if you need more details. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Jun 2013 19:47:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/exception-class-text-translation/m-p/9498674#M1746979</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-06-17T19:47:06Z</dc:date>
    </item>
    <item>
      <title>Re: Exception Class Text Translation</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/exception-class-text-translation/m-p/9498675#M1746980</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;There must be a way to pass the language key for selecting the text or is it always set to EN by default.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Arindam&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Jun 2013 22:28:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/exception-class-text-translation/m-p/9498675#M1746980</guid>
      <dc:creator>arindam_m</dc:creator>
      <dc:date>2013-06-17T22:28:00Z</dc:date>
    </item>
    <item>
      <title>Re: Exception Class Text Translation</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/exception-class-text-translation/m-p/9498676#M1746981</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The method &lt;STRONG&gt;get_text&lt;/STRONG&gt; is implemented in the class &lt;STRONG&gt;cx_root&lt;/STRONG&gt; and the signature has no importing parameters. As far as I can tell it should be simply based on logon language... I'm searching for related notes right now.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Jun 2013 22:36:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/exception-class-text-translation/m-p/9498676#M1746981</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-06-17T22:36:08Z</dc:date>
    </item>
    <item>
      <title>Re: Exception Class Text Translation</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/exception-class-text-translation/m-p/9498677#M1746982</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;I just noticed the statement &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;P&gt;I have an exception class with texts set up for various errors. I have translated those texts in SE63 (OTR texts)...&lt;/P&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;I think you need to translate the text of the class from which the exceptions are raised. That is the class in which the message originates. Say you have some message that raised in say CL_PROCESS_DATA. The message is captured in say CX_MY_EXPCL of type CX_ROOT. Then the message text is designed in Exceptions tab of CL_PROCESS_DATA so this needs to be there in required translated languages. Hopefully that helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Arindam&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Jun 2013 02:08:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/exception-class-text-translation/m-p/9498677#M1746982</guid>
      <dc:creator>arindam_m</dc:creator>
      <dc:date>2013-06-18T02:08:48Z</dc:date>
    </item>
    <item>
      <title>Re: Exception Class Text Translation</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/exception-class-text-translation/m-p/9498678#M1746983</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Lucas,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Just out of curiosity i want to request you post solution if you get.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BR.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Jun 2013 06:07:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/exception-class-text-translation/m-p/9498678#M1746983</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-06-18T06:07:05Z</dc:date>
    </item>
    <item>
      <title>Re: Exception Class Text Translation</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/exception-class-text-translation/m-p/9498679#M1746984</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I don't know (yet) the solution of your problem, but I would like to point out that the text of the message could come either from T100 message table either from otr messages, in this last case the CX_ROOT class will use CL_MESSAGE class to create the message texts, and this class has an instance method SET_LANGUAGE, so you could try to put a break-point in its CONTRUCTOR method ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Raymond&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Jun 2013 06:36:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/exception-class-text-translation/m-p/9498679#M1746984</guid>
      <dc:creator>RaymondGiuseppi</dc:creator>
      <dc:date>2013-06-18T06:36:16Z</dc:date>
    </item>
    <item>
      <title>Re: Exception Class Text Translation</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/exception-class-text-translation/m-p/9498680#M1746985</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;A __default_attr="311021" __jive_macro_name="user" class="jive_macro jive_macro_user" href="https://community.sap.com/"&gt;&lt;/A&gt;,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That's where the default language is picked up but in this case as stated its always picks EN which I think is happening because the exception texts get transferred from the main class to the exception class and in the main class which raises the exception might be missing the translated text.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Arindam&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Jun 2013 06:48:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/exception-class-text-translation/m-p/9498680#M1746985</guid>
      <dc:creator>arindam_m</dc:creator>
      <dc:date>2013-06-18T06:48:20Z</dc:date>
    </item>
    <item>
      <title>Re: Exception Class Text Translation</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/exception-class-text-translation/m-p/9498681#M1746986</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for the input everyone... After some further debugging I realized that the exception that was being raised was not actually from the exception class I had done the translation in. I changed the exception that is being raised and now the translated value is showing up correctly... What a waste of time!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Arindam was correct though, the logon language gets picked up and then in the function module SOTR_GET_TEXTS_WITH_KEYS it looks to the table SOTR_TEXT. If it doesn't find a matching value with the logon language it tries the system default (D in my case) and if it still doesn't find something it checks for English. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Jun 2013 16:03:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/exception-class-text-translation/m-p/9498681#M1746986</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-06-18T16:03:46Z</dc:date>
    </item>
  </channel>
</rss>

