Change the user portal  language by code

Hi,
I want to change the portal user language  by code .
Untill the user sets the portal language the default is the browser/or application .....
I want to write code that if the user didnt set the portal language ..then the language  is set to X.
Any ideas ?
Thanks.

Hi,
Try this....
IWDClientUser user=WDClientUser.getCurrentUser();
             IUser myuser=null;
             myuser=user.getSAPUser();
String userID=
try {
     IUser myuser=userFact.getUserByLogonID( myuser.getUniqueName() );
     IUserMaint usermaint=userFact.getMutableUser(myuser.getUniqueID());
                usermaint.setEmail(wdContext.currentContextElement().getVa_Email());
     Locale lc=new Locale("en");
     usermaint.setLocale(lc);
     usermaint.commit();
     } catch (UMException e) {
     wdComponentAPI.getMessageManager().reportException(e.getMessage(), false );
     e.printStackTrace();
Regards,
Srinivas

Similar Messages

  • How do you change the user for Home Sharing on the Apple TV?

    I need to change the user on the Apple TV for Home Sharing but can't figure how or where to do it in the Apple TV settings. Can anyone help? Thank you.

    I bought my ATV at the Apple store Zurich Switzerland.  All the movies default to German. I hired a US movie and pressed and held the play/pause button once the movie had started but only the chapter menu displayed and there were no options to change the language (from the default German to English)
    Are all movies flagged on Swiss accounts only available in German? Is there a way of pointing my ATV to a different server.
    BR

  • How to change the spelling correction language in Mail

    Hey!
    Often I have to write emails in different languages and I'm looking for a solution to change the spelling language by a click. My plan was to record the procedure of changing the language and then to add for every language one button to the mail tool bar. First I tried to record an AppleScript in Mail. Didn't work at all (actually the only app I found which records scripts is Finder). Then I recorded a similar task in Finder which works fine and tried to adopt it to Mail. It didn't work out. Has someone an idea how I can solve that problem.
    My simple training script what I tried to adopt for Mail (i just tried to change something in the Mail preferences, not the language):
    tell application "Finder" <--- replaced all "Finder" with "Mail"
    activate
    select Finder window 1
    open window of Finder preferences
    set folders open in new windows of Finder preferences to true
    close window of Finder preferences
    end tell
    Thanks
    Bastian

    Hi
    It's not that easy! Apart from the fact that Mail doesn't work the same way as Finder, it also doesn't have its own spell checker: it uses the system-wide AppleSpell service.
    The pane you see when you manually change the preferred spelling language in Mail (or TextEdit, or Safari) doesn't belong to Mail at all, and isn't directly accessible by AppleScript because AppleSpell is an invisible and unscriptable process.
    See this closed Apple Discussions thread for a brief indication of how you can change the preferred language using a shell script.
    And see this macoshints thread for an indication of the complexity of the issue.
    You need to know the "code" for each language used in the preferences file: "en_GB" for British English, "fr" for French etc etc. You would then need to wrap each shell script in an AppleScript "do shell script" command like this:
    do shell script "defaults write 'Apple Global Domain' 'NSPreferredSpellServerLanguage' \"fr\""
    to change the language to French.
    Unfortunately, I think you would also need to quit Mail and relaunch it before the change will take effect.
    HTH
    H

  • Function Module to change the user status of a business transaction

    Hi,
      I want to change the user status of a business transaction. Plz let me know if there is a function module to change the user status.I found some FMs.
    - CRM_STATUS_MAINTAIN_OW
    - BBP_PROCDOC_STATUS_CHANGE_DIRE
    - CRM_ORDER_CHANGE_STATUS
      But these FM says that it has to be used for changing system status.
    Thanx,
    Sivagami.R

    hi Siva,
    here is some sample code :
    data :
      ip_guid            type  crmt_object_guid,
      ls_status            type  crmt_status_com,
      lt_status            type  crmt_status_comt,
      ls_input_field       type  crmt_input_field,
      ls_input_field_names type  crmt_input_field_names,
      lt_input_fields      type  crmt_input_field_tab,
      lt_obj_guids         type  crmt_object_guid_tab,
    ip_guid = <your guid>.
    ls_status-ref_guid = IP_GUID.
    ls_status-ref_kind = 'A'.
    ls_status-status = lv_newstat.
    ls_status-user_stat_proc = 'ZCRMCOM1'.
    ls_status-activate   = 'X'.
    INSERT ls_status INTO TABLE  lt_status.
    ls_input_field-ref_guid = IP_GUID.
    ls_input_field-ref_kind = 'A'.
    ls_input_field-objectname = 'STATUS'.
    ls_input_field_names-fieldname = 'ACTIVATE'.
    INSERT ls_input_field_names INTO TABLE ls_input_field-field_names.
    INSERT ls_input_field INTO TABLE lt_input_fields.
    ls_input_field_names-fieldname = 'STATUS'.
    INSERT ls_input_field_names INTO TABLE ls_input_field-field_names.
    INSERT ls_input_field INTO TABLE lt_input_fields.
    insert IP_GUID into table lt_obj_guids.
    CALL FUNCTION 'CRM_ORDER_MAINTAIN'
    EXPORTING
        it_status       = lt_status
    CHANGING
        ct_input_fields = lt_input_fields.
    CALL FUNCTION 'CRM_ORDER_SAVE'
    EXPORTING
        it_objects_to_save = lt_obj_guids
    EXCEPTIONS
        OTHERS              = 2.
    COMMIT WORK.
    please award points if helps
    cheers

  • How to set FBL1N T code Layout to default to all the users using this T cod

    Dear Friends
    I have created a new layout by modifying the some of the fields in FBL1N T code output.  I want to set as default layout to all the users using this T Code. Is there any way we can set the  custom layout as default layout  to all the users.
    Presently Only I can see as default layout but  not the other users
    Thanks in Advance
    Thanks
    MVS

    Hi
    I have one above like issue but in FB03, I have been one layout as default using -lay admin when i come back and re execute the
    FB03 transaction  the default lay out not working directly every time i have to  "display as list from the" Go to" menu then only
    document showing as per lay out..I want  that lay out has to be work with out  going to Dispaly as list
    please advice me where i did wrong .its not working  even after the changes i log out the from the SAP and re login
    thanks
    Ranamka
    Edited by: Ranamka on Mar 10, 2011 9:59 PM

  • How can I change the Apple Store language and keep the country of residence?

    How can I change the Apple Store language and keep the country of residence?

    Users do not have control over the language of the Mac App Store or iTunes stores for a particular country or region. It is what it is and can't be changed.

  • Change The EM Console Language To English

    Hello to all,
    From note ID 370178.1, I read how can I change language, but I don't understand where is
    3. Change the following lines (2 times) in the "sub getDBConsoleLaunchCmd()" section from:
    I didn't find nothing in ORACLE_HOME/bin/emwd.pl in 11gR2 meanwhile it exists in 10g
    How can I change in release 11?
    Any help ?
    Thanks

    Rosario,
    I don't think it is possible to change the language since the the possible languages (next to English) had to be selected during the installation in the Select Languages screen. Fonts related to the selected languages were installed during this phase.
    However, if you mean you want to change the User Interface pages of the Console this can be done by changing the language settings of your browser. See Setting Language preferences in a browser: http://www.w3.org/International/questions/qa-lang-priorities
    Eric

  • ERS - MRRL/MR90 - changing the user ID

    Hi all,
    We have recently changed the Output Type for ERS to external send - where the invoice is automatically emailed to the supplier rather than having to print and fax the invoice.  However - we need to change the user ID that the email is sent from - so suppliers do not contact the processors directly. 
    I have tried using user exit SAPLMRMN_002 with no luck.  Any ideas on how I can force the email to come from a particular user id?  Our default user is set up with RemoteMail.
    Also - any ideas on how to put a message into the body of the email?  The Invoice form is being attached to the email - but how do I add text to the body of the email??
    Thanks!
    ~Carrie

    Login into Portal -
    Open Content Administration -
    > Click on Web Dynpro
    Open in the left side you have Tabstrip--> Deployed content --> Browse to your
    application -- open Application. Right side you will get Tabstrip. Open JCo
    connections tab. Select the JCo DEST --> Click on Edit
    in the third step You will get security attributes. There you can set Set Used Method ---> Ticket (for <MODELDATA_DEST> )
    Remember : Before this SSO should be configured for Portal and the R/3
    Regards
    Siva

  • I just upgraded to mountain lion and I can't figure out how to use messages...  it wants me to use AIM or something like it, but I can't change the user...

    I just upgraded to mountain lion and I can't figure out how to use messages...  it wants me to use AIM or something like it, but I can't change the user... How do I do this??

    See this Thread

  • HT201342 How can I change the USER of my i-cloud address? My 12 year old set up the e-mail account and used a silly user name (like: turtle!!). I would like to have an icloud e-mail account but under my own user name. The other /old name can be deleted?

    How can I change the USER name of my i-cloud e-mail account? It was set up by my son and he used a silly / embarrassing user name. I would like to change this name OR set up another i-cloud e-mail account under my own name / reference. Help?

    iCloud email addresses can't be changed or deleted, but you can set up an alias namethat he can use which will be linked to his current iCloud account and will receive email in the existing iCould inbox.  This guide explains how: http://support.apple.com/kb/PH2622.

  • Since updating my iPhone 3GS on my friends laptop, it keeps asking for her iTunes Id not mine. When I log onto a computer it comes up with my Id but from my phone it's my friends. I don't have an option to change the user Id when it pops up either.

    Since updating my iPhone 3GS on my friends laptop, it keeps asking for her iTunes Id not mine. When I log onto a computer it comes up with my Id but from my phone it's my friends. I don't have an option to change the user Id when it pops up either. So I can't update my apps, download songs or games now as it will charge my friend

    Hello, 34sandy. 
    Thank you for the question.  This behavior is normal if updated on another Apple ID account holders computer.  To change the Apple ID on your device, follow the steps in the article below. 
    iOS: Changing the signed-in iTunes Store Apple ID account
    http://support.apple.com/kb/ht1311
    Cheers,
    Jason H. 

  • Is it possible to change the user status of a TECO Order

    Hello Folks
    Is it possible to changes the user status of a TECO Order?
    I have tried to change it using the FM 'STATUS_CHANGE_EXTERN'. Its working fine for NON TECO Orders but not for TECO Orders.
    On the other hand I was able to manually change the user status for a TECO Order in transaction IW32.
    I need to change the user status from NFBK to FBK.
    Please provide some inputs for the same.
    Thanks n Regards
    Ramesh

    The simple way is via the Internationalization settings via ARD or RDP or Screen Sharing, either via System Preferences or (if enabled) via the menu bar. If you're looking for a lower-level approach, there's not AFAIK a direct command for this. As for one possible approach, might [threadID=2106201|http://discussions.apple.com/thread.jspa?threadID=2106201] help?

  • Error while trying to change the user password on OSX Lion

    Hello,
    I am trying to change the user password ( no admin user ) using the webinterface. I enabled the functionality in webservices on the server.
    I can loginto the three line password changing form. After I enter the old and two times the new password, I get the information
    "Your request could not be completed. The password server may be unavailable."
    How can I fix this problem?  I also tried https://discussions.apple.com/thread/2485167?start=0&tstart=0.
    Thanks in advance for help.

    I currently have this error on my 10.6.8 ML server when trying to change password.
    In my situation, the message definitely comes from the password policies. As soon as I use a new password that respects minimum complexity (e.g. 8 characters min, 1 lowercase letter, 1 uppercase letter, 1 number), the password changes flawlessly.
    It would be nice to change this horrible message to something more meaningful... If someone has any ideas on how to do this, thanks for sharing!

  • I recently lost my iphone 4 and have an iphone3 on loan until I get upgrade in Aug.  I want to sync my data - contacts most important  - from my itunes account...is this possible?  Is it possible to change the user ID on the borrowed phone to my ID?

    I recently lost my iphone 4 and have an iphone3 on loan until I get upgrade in Aug.  I want to sync my data - contacts most important  - from my itunes account...is this possible?  Is it possible to change the user ID on the borrowed phone to my ID?

    There are no contacts in itunes.
    Your contact should be on your computer in whatever program you have selected to sync.  Just sync them to the new one.
    Click Support at the top of this page, then click manuals
    Changing the itunes account on nthe iphone is covered there as is restoring the iphone as new or from backup.

  • How to change the user of a cancelled background (batch) job?

    Hi All,
    I have a batch job which is being cancelled as the reference user account is locked. I want to update the job with a new user.
    How can I change the user for a cancelled job? I am able to change the user for a scheduled job (by right clicking the job >> Change) but not for a cancelled job.
    I am getting the error: "<<Job Name>> cannot be changed due to its status" when trying to change the cancelled job.
    Please help.
    Thanks
    Vijay

    Hi Vijay,
    change the user of a cancelled background (batch) job
    1) Goto <b>SM37</b>
    2) Select the cancelled job and goto menu bar select <b>Job</b> )&#61664; click on change.
    3) Click on step tab
    4) Select the job and click on change tab. Change the user name and save.
    regards,
    kanthi

Maybe you are looking for

  • Can you have two itunes accounts on one mac

    My husband bought a mac book pro with a larger screen and I have his smaller screen mac pro. His itunes are on my mac book pro. Do I have to delete his itunes to add mine? He has his itunes on his new mac book pro and iphone.  Thanks!

  • Error while deploying the application into 11.1.1.2

    Hi, I am trying to deploy the application into Jdev 11.1.1.2 i am getting the following error. 04:11:39 PM] Wrote Enterprise Application Module to C:\Documents and Settings\rkanigolla.admin\Application Data\JDeveloper\system11.1.1.2.36.55.36\o.j2ee\d

  • Find out how much data is in a certain table

    Hi experts, I have deleted a lot of entries in a certain table by running the reorganisation-reports in SAP. Now I know that the table do not change its size because of the HWM. So new data in the table will be inserted in the freed blocks. Now I wou

  • Strange things happens while sharing i-Calender posts.

    In our familiy we have four iPhone4 and one iPad. Today we tried to ad a post in the calender of the iPad (using mom's Apple-ID) and it worked well. The post was shown in both the iPad and her iPhone. But, when trying to share it to dad's iPhone it d

  • Security Zones

    Hi, Can anyone explain in simple terms, what Security zone refers to. I went thru the Help materials and got to know that it adds an additional level of security. But where in real scenario's would I use this option. Mostly all my applciation will be