<?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 Determine text-nnn language by code-condition in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/determine-text-nnn-language-by-code-condition/m-p/5544016#M1265962</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi there good people, I've got a question. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've got a text, let's say text-001 ... now I'd like to determine it's language by code, so for example:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
IF ( condition1 ) .
  text-001 will be taken in language A .
ELSEIF ( condition 2 ) .
  text-002 will be taken in language B .
ENDIF .
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How can I achieve that? I tried &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
IF ( condition1 ) .
  sy-langu = 'A' .
ELSEIF ( condition 2 ) .
  sy-langu = 'B' .
ENDIF .

but it has no effect, because when sy-langu in one line is set to new value ... in the next line in debuger it takes the old value :( 

I'd be thankful for some tip, greetings. P.

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 13 Apr 2009 11:46:26 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-04-13T11:46:26Z</dc:date>
    <item>
      <title>Determine text-nnn language by code-condition</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/determine-text-nnn-language-by-code-condition/m-p/5544016#M1265962</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi there good people, I've got a question. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've got a text, let's say text-001 ... now I'd like to determine it's language by code, so for example:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
IF ( condition1 ) .
  text-001 will be taken in language A .
ELSEIF ( condition 2 ) .
  text-002 will be taken in language B .
ENDIF .
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How can I achieve that? I tried &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
IF ( condition1 ) .
  sy-langu = 'A' .
ELSEIF ( condition 2 ) .
  sy-langu = 'B' .
ENDIF .

but it has no effect, because when sy-langu in one line is set to new value ... in the next line in debuger it takes the old value :( 

I'd be thankful for some tip, greetings. P.

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Apr 2009 11:46:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/determine-text-nnn-language-by-code-condition/m-p/5544016#M1265962</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-04-13T11:46:26Z</dc:date>
    </item>
    <item>
      <title>Re: Determine text-nnn language by code-condition</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/determine-text-nnn-language-by-code-condition/m-p/5544017#M1265963</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;create text element &lt;/P&gt;&lt;P&gt;in english &lt;/P&gt;&lt;P&gt;txt-001 = attention&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in german&lt;/P&gt;&lt;P&gt;txt-002 = achtung&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF ( condition1 ) .&lt;/P&gt;&lt;P&gt;  text-001 &lt;/P&gt;&lt;P&gt;ELSEIF ( condition 2 ) .&lt;/P&gt;&lt;P&gt;  text-002 &lt;/P&gt;&lt;P&gt;ENDIF .&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Apr 2009 12:14:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/determine-text-nnn-language-by-code-condition/m-p/5544017#M1265963</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-04-13T12:14:37Z</dc:date>
    </item>
    <item>
      <title>Re: Determine text-nnn language by code-condition</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/determine-text-nnn-language-by-code-condition/m-p/5544018#M1265964</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;The user gets the text objects in language ,which he uses as logon language.&lt;/P&gt;&lt;P&gt;You just declare your text object and then in that screen In menu  Go to -&amp;gt; Translation .&lt;/P&gt;&lt;P&gt;there a popup window will come and asking for the original language and target language.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I mean you just maintian the translations for your texts of your program in different language. Then you need not have to harcode the text in different language in your program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can also go to se63 for translation.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope this will help you&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Apr 2009 12:34:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/determine-text-nnn-language-by-code-condition/m-p/5544018#M1265964</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-04-13T12:34:45Z</dc:date>
    </item>
  </channel>
</rss>

