cancel
Showing results for 
Search instead for 
Did you mean: 

Language parameter in CRM Web UI

mauricio_padilla
Explorer
0 Kudos

Hello CRM experts.

I'm a Web Dynpro developer (Java) and I've been asked to set internationalization for my application in CRM Web UI based on the language set in login screen. Can anyone tell me how can I get the language parameter set in login screen? Thanks in advance...

Accepted Solutions (0)

Answers (1)

Answers (1)

VishnAndr
Active Contributor
0 Kudos

If you in some way use ABAP in your application than there is sy-langu variable with the language user used to login.

former_member202474
Contributor
0 Kudos

Hi ,

The current system's login language you get from parameter sy-langu, May be you can check this.

Regards,

Ruby.

mauricio_padilla
Explorer
0 Kudos

Thank you very much for your answers.

I've solved the problem by getting parameter "sap-language" from the request object:


String usrLang = null;
IWDProtocolAdapter protocolAdapter = WDProtocolAdapter.getProtocolAdapter();
IWDRequest request = protocolAdapter.getRequestObject();
usrLang = request.getParameter("sap-language");

Regards,

Mauricio