How to change sap-language parameter at runtime

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?

Hi,
As far I know, there is no way to get the current url in browser. Alternately, you can get the url parameters and then construct the url with the parameters.
write the below code in HANDLEDEFAULT method of Window:
DATA: lt_parameters TYPE tihttpnvp.
*Get URL params
  Wdevent->get_data(
  EXPORTING name = if_wd_application=>all_url_parameters
  IMPORTING value = lt_parameters ).
*Construct URL
CALL METHOD cl_wd_utilities=>construct_wd_url
     EXPORTING
       application_name = 'APPL_NAME' " your appl name
       it_parameters    = lt_parameters  " to this params itself you can append the sap-language
     IMPORTING
       out_absolute_url = lv_url.
you may refer this document: Read URL Parameters in Web Dynpro ABAP
Regards,
Kiran

Similar Messages

  • How portal finds the vale for the sap-language parameter for iView

    In the portal one of the ABAP WebDynpro iView is getting displayed in German. The reason for that is the sap-language parameter is being passed as DE. All other iViews in the system are passing the sap-language parameter is as en.
    In our system the Logon Language property is blank for the all the iViews. Could you tell me why one specific iView the sap-language is being passed as a DE?
    How the portal finds the value for the sap-language parameter?

    Hello Venkata,
    Check if your Component locale is set to DE.
    Component locale
    This locale is defined by the following component profile properties:
    --ForcedRequestLanguage
    --ForcedRequestCountry
    Check this for more:
    http://help.sap.com/saphelp_nw2004s/helpdata/en/42/938297a5061d69e10000000a1553f6/content.htm
    Greetings,
    Praveen Gudapati
    p.s Points are always welcome for helpful answers

  • How to change the language in smartform?

    hi
    how to change the language in smartform?

    Hi,
    U can't change the language in the smartform, the main language of the smartform is the language used to create it (so the language used for SAP log on.
    But u can translate it (by trx SE63) and if u need to print in a new language u have to indicate it when the smartform is called.
    U can transfer the language to be used for the print in the parameter CONTROL_PARAMETERS, like structure SSFCTRLOP, here u can indicate the language in the field LANGU.
    see this..
    Use transaction SE63, after activate your smartform, to translate.
    In the First Page of your Smart Forms click on Global Settings under that click Form Attributes
    now in the Right side screen Go to Subscreen Language Attributes.
    select the Radiobutton Translate To all Languages
    from the Translate subscreen out of three radio buttons.
    rewaards if useful
    regards,
    nazeer

  • SAP language parameter setting

    Dears:
    The parameter zcsa/installed_languages which is in RZ10, control the sap language parameter setting, but i am not very understand how to set the value, i find some set the value to 123EM, i don't know that the 123 meaning here. And some just set it to DE2, D is for Germany, and E is for English, so what is 2 for? Do you know the standard value setting for this parameter?

    The language environment that comes with the standard SAP installation includes German and English. To use SAP with other languages, you must perform a language import or supplement (use transaction SMLT). Changes in the language environment usually require changes in the codepage setup, which requires changes in some database tables and in the profile files.
    Most language administration can be done with transactions SMLT and SP12, and reports RSCP0001, RSCP0004, RSCP0017, and RSCP0020.
    The codepage environment is summarized in the report RSCP0001. Running the report will generate a screen with codepage parameters drawn from different places. A proper codepage setup usually requires that all codepage parameters are the same. This table show the output of the RSCP0001 report, and where its data is drawn from:  Report output Source 
    1.  Table TCPDB   
    Code page for transparent data in the database  Entry in TCPDB table 
    Code page for non-transparent data in the
    database (for example, pools and clusters)  Entry in TCP0C table (can change from online report above) 
    2.  System profile parameters   
    Code page for transparent data in the database  install/codepage/db/transp = 8300 
    Code page for non-transparent data in the
    database (for example, pools and clusters)  install/codepage/db/non_transp = 8300 
    Code pages used by this application server  install/codepage/appl_server = 8300 
    Code pages used by SAPTEMU  saptemu/Codepage = 8300 
    For example, changes in the instance profile, for Traditional Chinese, might look like:
    Change Installed languages to include M (Traditional Chinese)
    zcsa/installed_languages = DEM
    Change to desired language for logon screen
    zcsa/system_language = E
    Add the following parameters for Chinese Character Set
    install/codepage/appl_server = 8300
    install/codepage/db/transp = 8300
    install/codepage/db/non_transp = 8300
    saptemu/Codepage = 8300
    abap/locale_ctype = Chinese(Taiwan)_Taiwan.950
    install/collate/active = 0
    abap/locale_all/needed = 0
    rscp/TCP0B = TCP0D
    abap/set_text_env_at_new_mode =1
    abap/import_char_conversion = 0

  • I have recently had my hard drive replaced due to a fault whilst in Germany working. Happy with the replacement, however when i go to log on as a user that screen is in German? Any idea how to change the language?

    i have recently had my hard drive replaced due to a fault whilst in Germany working. Happy with the replacement, however when i go to log on as a user that screen is in German? Any idea how to change the language?

    Greetings Lex,
    Kind of you to comment ... but you are also adding years to my signature!   I know I'm 76 but I don't want to think about it. 
    Regards  71.

  • How to change the language of the document in Pages 5.0.1

    Does anyone have an idea about how to change the language of a document in the new version of Pages (version 5.0 or later) without having to restart the computer?

    Edit > Spelling and Grammar > Show Spelling and Grammar

  • I cannot find how to change the language for labels in a quiz

    I cannot find how to change the language for labels in a quiz

    You have to be aware that this will only change labels if you edit before adding quiz slides: Preferences, Quiz, Default Labels. You will have to edit the labels, choosing another language will not change them automatically.

  • How to change the language of administrator system message in outlook

    I wonder where is the option which changes the language of the text
    related
    to : Your mailbox is over its size limit send by the system
    administrator ?
    Some mailboxes get this message in French and other in
    English ?
    Is anyone can help me ?
    I work with French Outlook 2003 sp2 and
    English Exchange server 2000 sp3
    I try to change the regional setting on the
    server but nothing has changed.
    Thanks,

    Hi,
    Please refer to this duplicate thread below:
    http://social.technet.microsoft.com/Forums/en-US/5afe1e1a-82a9-445f-bcce-a76173ceb6bb/how-to-change-the-language-of-administrator-system-message-in-outlook?forum=outlook
    Regards,
    Melon Chen
    TechNet Community Support
    It's recommended to download and install
    Configuration Analyzer Tool (OffCAT), which is developed by Microsoft Support teams. Once the tool is installed, you can run it at any time to scan for hundreds of known issues in Office
    programs.

  • How to change "Regional Language" in iPad air

    Hello, I use an iPad air with iOS 7.0.4.
    I was wondering how to change the regional language in ipad air. I mean exactly what I said, I know how to change a region, and I know how to change the language. I need to change the regional language. Whenever I choose my own religion, the date, time, battery etc. are all shown in my region's language instead of English. This is irritating since the time 'am' and 'pm' translations are stupid as he'll. Furthermore, the text is harder to read because of the font.
    All said and done, I need to completely irradiate that language from displaying while not changing the region. Plus, I do think that the regional settings option should be in the settings (like no matter which region you are in, you should be able to choose the language, date time format, temperature in c or f etc.)

    It's not possible yet to do what you want (unless by chance you can pick another region which natively combines the language with the other settings you want).  To ask Apple to fix this, use
    http://www.apple.com/feedback

  • How to change ipad language back to english from Greek?

    How to change ipad language back to english from Greek?
    It changed to Greek after the upgrade of Itunes and IOS, but I want it in English!!!

    Yes that might be hard to do if you do not read any Greek!
    Everything should be in the same place and the icons are the same. Here is a screenshot for where the setting is in English.
    Open the Settings app;
    In Settings choose General and then scroll to the bottom and choose International;
    Then choose Language and pick your preferred English.
    Good luck.

  • How to change the language from english to punjabi in Xcode?

    i am trying to make an app for my religon and it requires me to make those letter sysmblos and i want to know how to change a language in xcode
    Thankyou
    reply please ASAP

    have you activated the Gurmukhi keyboard in system preferences/language and text/input sources and then selected it in the "flag" menu at thr top right of your screen?

  • I would like to know of how to change the language in my Ipod touch ?? anyone can help me please

    I would like to know of how to change the language in my Ipod touch ?? anyone can help me please

    Did you try Settings/General/International and choose your settings?
    copied from page 107 ipod touch user guide 5

  • How to change the language in Photoshop CC2014 from Dutch to English?

    How to change the language in Photoshop CC2014 from Dutch to English?

    Cloud language change http://helpx.adobe.com/creative-cloud/kb/change-installed-language.html

  • How to change the language in my printer hp officejet 4620?

    How to change the language in my printer hp officejet 4620?

    Hi,
    You can change the settings in the Control Panel. Check from page #13 of the following document:
       http://bizsupport1.austin.hp.com/bc/docs/support/SupportManual/c03251656/c03251656.pdf
    Regards.
    BH
    **Click the KUDOS thumb up on the left to say 'Thanks'**
    Make it easier for other people to find solutions by marking a Reply 'Accept as Solution' if it solves your problem.

  • How to change Marketplace Language. I don't want M...

    When I 1st use Lumia 800. the Marketplace language I saw is English.After I sign in Window Live ID and select the marketplace country to Malaysia .The marketplace language change to Malay. Who know how to change back. How to change Marketplace Language. I don't want Malay Language~~~.. I check from nokie FAQ , there say can;t to change back. Malaysia country is using Malay only... How can like that, it much put two  language in Malaysia Marketplace .( Malay and English ), like this people just can choose/ select language which they want .
    Solved!
    Go to Solution.

    reason for the malay language is because the email you are linking with is default to malaysia as your location, and msia marketplace doesnt have full apps collection.
    so two things i did:-
    (1) Reset your phone to default setting, start all setting all over
    (2) Create a new window live account, and not choosing malaysia as base country
    (3) Same goes to market place,choose an english spoken country (like U.S) as your default country when you click into market place for the first time.
    and Voila, everything is now in english. Sweet.

Maybe you are looking for

  • Inheritance questions

    Say a superclass has 3 methods and 3 properties. NExt, I create a subclass which overrides these same 3 methods and properties. Either way, my question really is this... When casting up and down, when it is a subclass and a super class reference, are

  • Creative Zen Vision M Stuck

    So umm... i posted yesterday, but I guess it got moved or something. I really need help with my player though. I plugged it into the computer and it turned on but it got stuck on the ZEN logo. So paper clipped it a couple times and still the same thi

  • My torch fell in soda:(

    Hi was wondering if there is anything else I can do,my daugter dropped it in a cup of diet soda(not real sugar, dont know if that matters)  when it happened I immediately opened it up and took out the battery and sim & sd cards  and wiped it out with

  • Returning Companies via API

    Hi, I am looking to retrieve a list of the Company Entities in a BC CRM database via the API, is this possible? Jason.

  • IDVD project has skips in the music

    I have a 40 minute slide show with 500 photos and music - When I burn to DVD in iDVD I have two problems: 1. There are occaisional skips in the sound track when the music seems to stop for a few seconds then recover. This is ok but unprofessional. 2.