cancel
Showing results for 
Search instead for 
Did you mean: 

set otr text

0 Kudos

hi all,

i was defined otr for fixed texts

Now, when I click a button I want to change the text of OTR.

how can i this ?

thanks.

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hello,

Could you please explain what you meant by changing the text of OTR on click of button?

As per my knowledge, you cant change the text of OTR in the code. May be you meant changing the text to a different OTR text?

Regards,

Srilatha

0 Kudos

okey,

example ,

define text = FAVORITEN is language DE ( OTR )

and click a button changing text = FAVORITE . is language EN

thomas_jung
Developer Advocate
Developer Advocate
0 Kudos

Are you saying you are wanting to switch the system langauges dynamically? The system language is set at logon and stays with the user session. You could try the SET LOCALE ABAP command. From the online help:

This statement defines the text environment for all programs of the current internal session for the languages specified in lang, and sets sy-langu to the value of lang. For lang, a character-type data object must be specified. This must contain a language key with a maximum length of one character, and this value must be contained in the column SPRAS of the database table T002. If the data object lang only contains blank characters, the logon language of the current user is used and the additions COUNTRY and MODIFIER are ignored.

0 Kudos

hi,

yes "SET LOCAL LANGUAGE" I changed the language.

but I want to see changes to the screen immediately.