Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Using UME API and set language for user

Hello all,

I would like to use UME API andd UserFactory to set the language for user...

Do you have some examples for english, spanish, french ?

Thanks a lot



Hi Aurélien HENRY,

// You can get the 'UID' from the IUser object (unique name or unique id or hard code it)
String UID = "USER.CORP_LDAP.omcohen"; 
IUserMaint us = UMFactory.getUserFactory().getMutableUser(UID);
//Setting the Language
us.setLocale(Locale.ENGLISH); // For English
us.setLocale(new Locale("iw")); // For Hebrew;

IUserMaint us1 = UMFactory.getUserFactory().getMutableUser(UID);
response.write("Lang "+us1.getLocale()); 



0 View this answer in context
Not what you were looking for? View more on this topic or Ask a question