on 2012 Apr 10 2:41 PM
Hello,
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
EXPORTING
application_name = 'XXXXXX' "
IMPORTING
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
exporting
name = 'sap-language'
value = lv_langu
changing
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?
Thank you.
You can't really dynamically switch the logon language completely. It has to be set at time of logon. You would have to reload the application via a navigation plug and specify the new language as a URL parameter.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
maybe anyone have other solution how modify sap-language parameter before executing application
and change application language, when we are starting application, without buttons.
something like redirect. Thank you.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Language will be dynamically assigned at run time based on user's logon language.
Maybe you can add sap-language as a parameter to the application and see if that does the trick for you.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
Regards
Srinivas
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
2 )
http://us7211.wdf.sap.corp:50021/sap/bc/webdynpro/sap/othello?sap-language=en
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.
http://help.sap.com/saphelp_nw70ehp1/helpdata/en/48/3a0623902131c3e10000000a42189d/content.htm
I have such link
http://us7211.wdf.sap.corp:50021/sap/bc/webdynpro/sap/othello?sap-language=en
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.
Hmmm,
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 )
Regards
Srinvias
User | Count |
---|---|
66 | |
10 | |
10 | |
10 | |
10 | |
8 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.