cancel
Showing results for 
Search instead for 
Did you mean: 

OTR Translation text is displayed in Secondary language

Former Member
0 Kudos


Dear Experts,

We are using LSO applications(Package :- LSO_FRONTEND_WDUI). For those languaguages which are not installed in system, User is expecting translations for OTR should be displayed in supplementary language, however translations are displayed in secondary language. Same issue exists with old application(Package:- HCM_LEARNING)

What needs to be done for translations to be displayed in supplementary language?

Thanks & Regards,

Sachin

Accepted Solutions (0)

Answers (1)

Answers (1)

former_member184578
Active Contributor
0 Kudos

Hi,

Use the below code

lv_text = CL_WD_UTILITIES=>GET_OTR_TEXT_BY_ALIAS( ALIAS = 'ALIAS_NAME'

                                                                                  Language = sy-langu )

if lv_text is initial.

lv_text = CL_WD_UTILITIES=>GET_OTR_TEXT_BY_ALIAS( ALIAS = 'ALIAS_NAME'

                                                                                  Language = lv_lang ) " pass supp lang

endif.

now set the text to the corresponding labels.

hope this helps u,

Regards,

Kiran

Former Member
0 Kudos

Hi kiran,

I will have to do changes at all places then which is too much. Also how to do this where UI text property is binded to OTR? No code is called there.

Thanks & Regards,

Sachin

former_member184578
Active Contributor
0 Kudos

Hi,

Also how to do this where UI text property is binded to OTR? No code is called there.

In that case, you have to set the Text of the UI in the WDDOMODIFYVIEW dynamically.

Regards,

Kiran

Former Member
0 Kudos

Thanks Kiran but for this i will have to write logic at many places & for almost all OTR's which will include huge effort. Is there not any setting which will do this automatically?

Thanks & Regards,

Sachin