Skip to Content
0
Former Member
Apr 13, 2009 at 11:46 AM

Determine text-nnn language by code-condition

17 Views

Hi there good people, I've got a question.

I've got a text, let's say text-001 ... now I'd like to determine it's language by code, so for example:

IF ( condition1 ) .
  text-001 will be taken in language A .
ELSEIF ( condition 2 ) .
  text-002 will be taken in language B .
ENDIF .

How can I achieve that? I tried

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.