cancel
Showing results for 
Search instead for 
Did you mean: 

GET_OTR_TEXT_BY_ALIAS

Former Member
0 Kudos

Hi expert,

I have a problem with the method GET_OTR_TEXT_BY_ALIAS.

In my web appliaction I have a dropdown with these elements:

ls_type_list-value = cl_wd_utilities=>get_otr_text_by_alias( 'LSO_WDUI_VISIBLE/REPORTING_ORG_UNIT' ).

ls_type_list-key = '1' .

append ls_type_list to lt_type_list.

ls_type_list-value = cl_wd_utilities=>get_otr_text_by_alias( 'LSO_WDUI_VISIBLE/REPORTING_POSITIONS' ).

ls_type_list-key = '2' .

append ls_type_list to lt_type_list.

ls_type_list-value = cl_wd_utilities=>get_otr_text_by_alias( 'LSO_WDUI_VISIBLE/DIRECT_REPORTING_EMPLOYEES' ).

ls_type_list-key = '3' .

append ls_type_list to lt_type_list.

ls_type_list-value = cl_wd_utilities=>get_otr_text_by_alias( 'LSO_WDUI_VISIBLE/INDIRECT_REPORTING_EMPLOYEES' ).

ls_type_list-key = '4' .

append ls_type_list to lt_type_list.

I changed the text of the OTR by the se63 transaction.

But when I run the program, there are already the old texts and not the new.

I debuggeg the program and I saw that by this method that the old text is returned?

Someone can help me ???

Thanks in advance,

Virginie

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Thanks for your help

kr,

virginie

Madhu2004
Active Contributor
0 Kudos

HI,

Switch to you webdynpro component view and

change the he OTR trest using the follwoing path

GOTO(menu)-> OTR texts, Select the texta nd click on edit and save.

Regards,

MAdhu

Former Member
0 Kudos

Hi,

I agree with you but my change is the translation.

So the original language of the text is english and my customer told me to change the translation for the french language.

So, I used the SE63 transaction to make this.

But when I run the web dynpro, it's the old text in french and not the new.

Kr,

Virginie

Former Member
0 Kudos

Hi,

Check the following forum..

The program SOTR_DEFAULT_CONTEXT_FLAG_SET will help u in clearing the buffer.

Ranganathan