on 10-21-2011 5:21 PM
Hi Experts,
I am using class cl_wd_label method set_text to change the label text dynamically during runtime. This works fine but in case of different language the label is not assigned the correct translation as its always hardcoded to same value. Is there any proper way to assign an OTR during runtime to a label to avoid this issue?
lr_lbl->set_text( ' Text' ).
Basically I want the label to be be available in the local language login like in standard.
Hello Srinivas,
you can maintain the text in OTR and then you can use the CL_WD_UTILITIES=>GET_OTR_TEXT_BY_ALIAS method to retireve text at runtime and assign the same as label text.
BR, Saravanan
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
87 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.