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.
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.
It is not possible to use parameter sap-language. So the problem still exist ![]()
Hello MK
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?
BR
-SS
Hi Abdullah Azzouni,
I just want to change language, but it depends in various things. So I want somehow to change it in application. So I think the best way is to use parameter sap-language.
Thank you.
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
Hi srinivas sana,
So I want to change language by sap-language URL parameter. How I can change url that make effect in application???
Thank you.
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
www.gmail.com;sap-language=en
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
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 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.
Hi,
I and want to reload application with new parameter: sap-language=xx
But I am stuck with it. Maybe you could write more detail about this solution???
There is examples how to open in new window, but how to reload actual with another URL I can't find.
Thant's in advance.