cancel
Showing results for 
Search instead for 
Did you mean: 

Master language / fallback language for otr text

rb
Active Participant
0 Kudos

Hi,

i have created an otr text with sotr_edit. Now if this text is created in english, the fallback is also in english if the user logs in with an other language. I have now some text which are created in german, so the fallback is german. I want to change this zu english. I have tried to change the master language of the otr text but it doesnt change aynthing (after OTR buffer reset).

Does somebody have an idea?

bye & thx Richard

Accepted Solutions (0)

Answers (2)

Answers (2)

walt_b
Participant
0 Kudos

OTR fallback language is determined statically via FM SOTR_SYSTEM_GET_SECOND_LANGU when using cl_wd_utilities=>get_otr_text_by_alias.

If you need something dynamic, please use following function-module

CALL FUNCTION 'SOTR_GET_TEXT_KEY'
EXPORTING
alias = lv_otr_alias
langu = lv_langu " <-- primary language
search_in_second_langu = abap_true
second_langu = 'E' " <-- fallback language
IMPORTING
e_text = lv_otr_text
EXCEPTIONS
no_entry_found = 1
parameter_error = 2
OTHERS = 3.

rb
Active Participant
0 Kudos

No idea anybody?