cancel
Showing results for 
Search instead for 
Did you mean: 

How to display text in multiple languages at the same time in web dynpro abap gui

Former Member
0 Kudos

Hi All,

Please help us for the below requirement.

How to display text in multiple languages at the same time in web dynpro abap gui  like below sample text:

Name / नाम  _____________________________ .

Thanks in advance.

Accepted Solutions (0)

Answers (2)

Answers (2)

farooq_basha
Active Participant
0 Kudos

Hi,

Please check with below solution, not sure it will work or not.

Create OTR text for English (Name) and Hindi () in SOTR_EDIT.

http://saptechnical.com/Tutorials/WebDynproABAP/Translations/OTR2.htm

Try to change manually sy-langu = 'H'.(Hindi value pass plz check) before executing the below statement

text = cl_wd_utilities=>get_otr_text_by_alias( 'SOTR_NAME_HINDI' ).

Set the value to label bind for hindi text.

Regards,

shaik farooq

Sharathmg
Active Contributor
0 Kudos

Something new:

Try to place two context variables on the screen for a label/ ui element.

set separate texts for each variables. Provide translation for one of the varible. So, when user logs in the foreign language, the engligh  text remains as it is(coz there is no translation) but other text which translation shows up on screen.

May  be also include the logic, to hide the variable in case user logs in english, so that english does not appear.

Come to think of it, I myself am confused.

Regards.

Sharath