Quantcast
Channel: SCN : All Content - Web Dynpro ABAP
Viewing all articles
Browse latest Browse all 3667

How to change sap-language parameter at runtime

$
0
0

Hi

 

I want to create a Change Language button on an webdynpro Application. I know that the parameter is determined during url creation, but i need the to give the user the posibility of changing the language without closing the browser and logging out etc.

 

My idea is to us an Outbound plug assigned to lets say a Button. The plug is connected to an Inbound plug og the very same Window. So actually the Application will reload.

 

The action on the button is like this

 

data: l_language type sy-langu.
l_language = cl_wd_runtime_services=>get_url_parameter( name = 'sap-language' ).
wd_this->fire_language_plg).


Then i read the current language - i.ex: E


But of course i will need to change the parameter sap-language to the new language - lets say: K


But how?


Viewing all articles
Browse latest Browse all 3667

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>