I am searching how to change language in web Dynpro application.
I am doing this in WDDOINIT
CALL METHOD cl_wd_utilities=>construct_wd_url
application_name = 'XXXXXX' "
out_absolute_url = lv_link.
* Get default user language
lv_langu = me->get_langu( ).
* Change URL link (Add language)
CALL METHOD cl_http_server=>append_field_url
name = 'sap-language'
value = lv_langu
url = lv_link.
But with this logic my URL doesn't reach browser.
Maybe someone have any ideas? How I could change language in web dynpro application?
If you want to change WD Application content (Labels , texts..etc)based on language.
If you maintain the OTR's or Text Symbols, automatically based on user language WD Application Content will change.
Can you elaborate your exact requirement and what you looking for?
The language is determined or proposed from the sources listed below: These sources are evaluated in the order below whereby the first in the list is the decisive source.
1. sap-language URL parameter
2. Default language in the setting for the system logon
3. Web browser languages (Accept-Language)
4. Default language of the SAP system
You have to append the the parameter to url
for ex 1) : you have url like www.gmail.com
if you want to append parameter then
and i think by simply providing EN / DE , it wont effect, The relevant language must be installed in your system.( this thing am not sure )
and FYI check this.
I have such link
I am getting it, by code which is on top.
But how to do action or something like that, that this new parameter will be in browser url and take effect for application.
If I writing it by hand and pres ENTER. then everything is ok.
i hope you will call the url in some button action, in that...
data v_url type string.
concatenate ' http://us7211.wdf.sap.corp:50021/sap/bc/webdynpro/sap/othello?' 'sap-language=en ' into v_url .
Then call this url( v_url ) in ur way ( say using create_external_window method )