Setting dynamic language for WD ABAP application iView

Hi,
I have created an iView for a WD ABAP application which runs with two languages, EN and FR.
When I run this application with app parameter sap-language=EN or FR, it works fine in corresponding language.
How do I set this in its portal iView so that it picks up browser language?
Thanks and regards,
Amey

HI Amey,
The language is determined in the order below.
       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
Refer to
http://help.sap.com/saphelp_nw70ehp1/helpdata/en/7b/fb57412df8091de10000000a155106/frameset.htm
Just clear the logon language parameter for the user in SU01 and it should pick the browser language.
If you change the browser language, you will have to logout and login again to the portal for the changes to take effect.
Thanks
Prashant

Similar Messages

  • Creating iView for WD ABAP application - Handling URL parameters

    Hi,
    I have a Web Dynpro ABAP application with me for which I have to create a iView in portal.
    This application has certain parameters to be passed via application URL.
    How do I take care of these URL parameters when iView is called?
    Thanks and regards,
    Amey

    Hi Sandip,
    I have created an iView for WD ABAP application.
    But for some unknown reason, it just displayed a tiny cross symbol while previewing it.
    Here are the properties of iView I created :-
    Authentication Scheme = basicauthentication
    Application Name = ZPLdaApp
    Application Parameters = dp=2&tn=ZGLTCO_ATTCH&so=ZGLTCO_ATT&dt=ZLDA_TCO&in=WD_ABAP_TEST
    System = mysap400
    Web Dynpro Client = Windows client
    Any idea what is going wrong here?
    Thanks and regards,
    Amey

  • Set a language on the portal application

    Dear All, 
    How I can write code to set a language on the portal application?  
    thanks in advance,
    Marcelo Osako

    Hi Marcelo,
    I assume you mean how to change language for a single iView only. For changing overall language, the user can just go to the portal personalize page.
    For an iView, you can do a lookup of the iView and change the language, like so:
    InitialContext iCtx = null;
    String personalHello = "portal_content/DanielContent/DanRole/danWS/hello";
    try {
       iCtx = new InitialContext(env);
       IiView myIView = (IiView)iCtx.lookup(personalHello);
       myIView.putAttribute("ForcedRequestLanguage","de");
       myIView.save();
    You would have to do a personalized JNDI lookup, so the language is only changed for the user. However, this would permanently change the page for this user.
    Hope this helps.
    Daniel

  • How to set the icon for the entire application with JFrame.setIconImage

    I set the icon on the main frame using JFrame.setIconImage(). The icon is shown properly in the main frame.
    If more JFrames are opened from the main frame, the newly opened JFrames also show the icon.
    However if JDialogs are opended, in some cases the icon set on the main frame is shown and in other cases the coffee cup.
    What is JFrame.setIconImage() expected to do? Setting the icon for a single JFrame or the entire application?
    How can I set the icon for the entire application?
    How can I set the icon for JDialogs?
    Thank you

    In order for your dialogs to use the same icon as the frame, you must parent the dialogs to the frame which has the custom icon.
    See the following thread for more information: http://forum.java.sun.com/thread.jsp?forum=57&thread=362542
    cheers,
    Greg

  • Can I set the language (for spellcheck) of a document in the iCloud Web version, or iOS version, of Pages? If yes, how?

    Can I set the language (for spellcheck) of a document in the iCloud Web version, or iOS (iPad) version, of Pages? If yes, how?

    In iOS, the spellcheck language follows the keyboard.
    The forum for questions about iOS Pages is at
    https://discussions.apple.com/community/app_store/iwork_for_ios

  • How to set default language for Portal?

    Hi All,
    We use EP6.
    Default language is not defined and therefore is being set by the browser's language.
    Where do I set default language for all users?
    (I don't want that the users will be able to change it by themselves by browser/EU role).
    I tried to set the "request.mandatorylanguage" and
    "request.mandatorycountry" in prtDefault.properties but it didn't help.
    Thanks,
    Omri

    Hi Omri,
    are those to parameters
    request.defaultlanguage=...
    request.defaultcountry=...
    set in the prtDefault.properties, and the J2EE Server restarted after the change?
    Check out this thread and the link given there for more info: HOW to define the default language in the portal
    Hope this helps,
    Robert

  • Set dynamic variant for time

    Hi,
    I have selection options for field as defined as TIME . I need to set dynamic variant for this field as
    TIME should be "from"='current time-30 minutes' and "to"='24:59:59'.
    This report going to run in 00 hours and 30 hours (48 times ie 24 X 2)
    PS : Pl. remember this is for a SAP standard report
    Any Info?

    Naimesh Patel wrote:
    > I digged more deeper and found one FM RS_VARI_V_INIT_TIME which fill the options like Current Time, Current Time +/- ???, From Start of Day to Now etc. and Surprisinly all 3 options are hardcoded in it..!!
    As you suggested due to hardcoded values here , we could not able to do much on this.
    So i came in round away solution. Whenever program A called ( program with TIME selection input) i have called another custom program C . (This custom program will using the following function module RS_VARIANT_CONTENTS, and RS_VARIANT_CHANGE , So get the DEFAULT variant content of program A and change the variant content with LOW as current time - 30 and HIGH with 24:59:59)  as preceding job.
    In PI 7.01 system program A always called in JOB mode
    Thanks for info.

  • Iview for Webdynpro ABAP application with TimedTrigger

    Hello,
    I created an IView  for a WebDynpro  ABAP  application. This application uses a UI element TimedTrigger. Without portal integration this TimedTrigger works fine. Inside an IView  this TimedTrigger element does not work anymore. Did anyone have a similar problem? Does anyone have a solution for this?
    Thanks and regards
    Marc

    hi,
    Go through this link
    [****************/Tutorials/WebDynproABAP/TransactionCode/Create.htm]
    Hope it will help you.
    Regards,
    Rohit

  • Unable to change language for SAP BW Report Iview

    Dear all
    We are currently rolling out BW Web Templates can be displayed in both EN and MS languages. The language can be changed via the URL that we display, e.g.
    For English Language:
    http://<hostname>:<port>/sap/bw/BEx?SAP-LANGUAGE=EN&cmd=ldoc&template_id=ZTEST
    For Malay Language :
    http://<hostname>:<port>/sap/bw/BEx?SAP-LANGUAGE=7&cmd=ldoc&template_id=ZTEST
    We have published these templates into Ent. Portal 6 using SAP BW Report Iview, but unfortunately we cannot view the report in the Malay language (SAP-LANGUAGE=7), even though we have inserted the command SAP-LANGUAGE=7 in the SAP BW Report Iview query string. All the reports, although defaulted to SAP-LANGUAGE=7 displays in English. We also tried to set the language settings for the Iview, but there are no language 7 or MS in the Iview. It can only be defaulted to the Portal’s language, which is English.
    Note that the reports can be viewed in the different languages if we using the URL separately outside of Portal, and also within BW Bex Analyzer itself. Only the Portal doesn’t allow us to view the reports in MS language.
    Can someone help us on this matter? All helps really appreciated. Thanks a lot.

    Hi Chris,
    That's a bit odd indeed. If I understand your question correctly, you do get the BW reports in the correct language (either English or Malay) using the url's in your post but not when using them within a standard BW report iView?
    The language setting for the iView has, unfortunately, nothing to do with the language for the content itself but can you tell me what the requested URL is for both Reports?
    The BW Report iView is based on the Application Integration Component that generates the URL based on the paramaters you provide in the BW report iView.The following template is being used: <iView[PORTAl_URL]>?System=<System[url_Encode]>&Report=<Report>&DynamicParameter=<DynamicParameter[url_Encode]>. I could be that the generation of the URL fails due to the 7 (don't know why, just a gut feeling because it's the only thing that's different between those urls). You could try to use create an iView based on the Application Integrator instead (some more control over the URL template) but first you need to check whether the URL generated by the iView is correct.
    Cheers!
    Frodo
    P.S: Award points if you find this useful

  • Runtime Error for WD ABAP Application in Portal

    Hello Everyone,
    I developed a WD ABAP Application and then created an iview in portal for this WD ABAP application and then assigned this iview to a role.
    Now, when I click on this WD ABAP iview it is working fine for the first time. If I click on the iview "again" it is throughing the following error message. Please let me know why I am getting this error.
    The following error text was processed in the system DV1 : User session (HTTP/SMTP/..) closed after timeout
    The error occurred on the application server sapdv5_DV1_00 and in the work process 0 .
    The termination type was: ERROR_MESSAGE_STATE
    The ABAP call stack was:
    Method: PREPROCESS_REQUEST of program CL_WDR_CLIENT_ABSTRACT_HTTP===CP
    Method: IF_HTTP_EXTENSION~HANDLE_REQUEST of program CL_WDR_MAIN_TASK==============CP
    Method: EXECUTE_REQUEST_FROM_MEMORY of program CL_HTTP_SERVER================CP
    Function: HTTP_DISPATCH_REQUEST of program SAPLHTTP_RUNTIME
    Module: %_HTTP_START of program SAPMHTTP
    I greatly appreciate your help.
    Regards,
    Gopal.
    Edited by: Gopal on Sep 17, 2009 7:09 PM

    Hi Gopal,
    I m not sure enough regarding this error but on searching i came accros a thread in wjhich some solution is provided which might help you.
    User session (HTTP/SMTP/..) closed after timeout
    just go thru this ..
    regards,
    anand

  • Mapping SAP R3 role to EP role for WD ABAP Application

    Hi,
    I have a WD ABAP application which uses POWL component.
    I have assigned this application to a role in SAP R3 system.
    Now, I have created an iview in portal for this WD ABAP application.
    I want to map this SAP R/3 role to Portal Role so that only people having that role can see the application on portal.
    How do I handle this?
    Thanks and regards,
    Amey

    Hi,
    Scenario 1:
    You need to maintain 2 roles one from Portal and one from R/3
    On the portal end:
    Assign the role which have the WDA application to all the users who should have access.
    On the R/3 end:
    Assign the R/3 role which you have created to access the WDA application to all the users for whom you have added the Portal Role.
    Scenario 2:
    If using CUA (Central User Administration) as UME for Portal and also R/3 then you can maintain the roles from one place that is from CUA.
    You create a role in CUA and this role is shown as group in Portal now add the Portal role to the group or the CUA role.
    And create another role which gives access to the WDA application. Now add these 2 roles to all the users who are supposed to have access to the application.
    Hope this helps.
    Cheers-
    Pramod

  • Create Transaction for Webdnypro ABAP  Application

    Hi Guru's,
    1.I created one webdnpro application for reimbursement form .Now the user want run the application in SAP tcode , for that i created one tcode in SE93. Thats fine .  When i run the application through the T CODE some standard toolbar buttons(BACK,EXIT AND CANCEL )  are came .
    My requirement is i have  to deactivate the buttons  or else i have to write my own logic inside  those  buttons. I found the screen no by Menu bar ----->system---------->status .But its asking access key for edit the screen .
    How i can deactivate the buttons are or else i have to write my own logic for those buttons.Give me yours valuable suggestion .
    2. How i can print the entire my application in that TCODE. I created one button called PRINT.but it is not working .anyone have  code for. print the application  when i click PRINT button .
    Thanks,
    Pasumpon Karuppaiah

    Hi,
    It is the standard transaction WDYID, when you try to change, you will be prompted for access key as it is a modification. the GUI status is set using PF-STATUS 'HTMLVIEW' .  In PBO, you can comment the PF status using modification or in PAI, you can write the handling for back button using OK Code.
    And, to print WDA application, use the following code in on action Print button:
       data:  l_api_componentcontroller type ref to if_wd_component,
        l_appl type ref to if_wd_application. l_api_componentcontroller = wd_comp_controller->wd_get_api( ).     l_appl = l_api_componentcontroller->get_application( ). 
        l_appl->print_page( ).
    Check this help for more details: Printing Web Dynpro ABAP Applications - Web Dynpro for ABAP - SAP Library
    Hope this helps u,
    Regards,
    Kiran

  • IE language in WEBDYNPRO ABAP application

    Dear all,
    I have a requirement in whcih my webdynpro application view lables are linked to OTR or some custom table whcih allows me to display lable text based on logged in Language.
    but I want to change the language of text available in application based on IE( internet explorer language :- IE->right click->Encoding->more->language->select language) language.. how it can be achieved ??
    Regards,
    Kranthi

    Hi,
    but I want to change the language of text available in application based on IE( internet explorer language :- IE->right click->Encoding->more->language->select language) language.. how it can be achieved ??
    First, you will not get the IE menu on right click in browser in Web dynpro application. You cannot read the browser language in Web Dynpro Application. It is based on SAP log on language.
    You can create a button( say change language) in your application, and on action of button, set the url parameter sap-language to change the language.
    If you are on Netweaver 7.3 Ehp1, you could use HTML Element, and using Java Script you can get the Browser language. Then you can set the application parameter, sap-language  to the browser language which will change the labels accordingly.
    hope this helps u,
    Regards,
    Kiran

  • Personalization data for WebDynpro ABAP application ?

    Dear Experts,
    We can personalize WebDYnpro ABAP application via right click , show hide buttons , columns etc.
    Where is this personalization data stored or how can it be retrieved assuming my application is executing outside the  portal ?
    Greetings
    Prashant

    Hi Prashant,
    it is stored in the ABAP system - not the portal, so no issues about running outside the portal.
    This is different to WDJ pagebuilder configuration/personalisation - which is stored in the portal!
    you can see some of the personalisation framework that is used for things like storing POWL user preferences etc in the backend via the IMG path
    Cross-Application Components --> General Application Functions --> Generic SAP Business Suite Functions --> Personalization (sic) .
    Hope this helps you,
    Chris

  • Getting Pernr for WebDynpro ABAP application

    I am building a new WebDynpro ABAP application and I want to be able to get the PERNR for the user logged into the portal and this application.
    I have read some information on this forum about getting the URL or application parameters in order to get the userid or similiar parameters and to handle this within the Window in the HANDLEDEFAULT method of a WebDynpro ABAP application.
    I have looked into this and I don't think pulling information from the application parameters will work.  For example, I checked one of our current services for "Personal Data"  and when I go to the portal content administration,  application parameters, I don't see any reference to userid..etc.  I see Property ID, Property Category, Inheritance, End-User Personalization, and Property Description.  In addition, I do not see any information from the URL itself that I could use. 
    Here is the scenario.  The user logs into the portal using the 3 character Network id which in turn, I assume, gets their SAP userid and PERNR in order to retrieve all the HR infotype information for each service.  By the way, the service I mentioned above, "Personal Data", is written in JAVA, so I am not able to see how this particular service works or handles getting the userid and PERNR.
    Has anyone come across this scenario before and how was it handled in terms of getting the userid and PERNR?

    I was thinking that SY-UNAME would be available, but was not sure.  For some reason, I was thinking I was going to have to pass something from the applicaton parameters or some other method to my WebDynpro ABAP program..
    I am not the portal administrator so I have not yet added my WebDynpro ABAP program to the portal yet.  Once, it's added, I will check out the availablility of sy-uname.
    Thanks.

Maybe you are looking for