Skip to Content
0

How to get the logged in user in SAP WEB UI5 Application?

May 19, 2017 at 08:10 PM

138

avatar image

Hi Team,

I am developing a new SAP WEB UI5 application.

I want to fetch the current logged in user name i.e. something like "HttpContext.Current.User.Identity.Name.ToUpper()" in .Net.

I need above code equivalent in SAP UI . i am new to this technology.

Please help.

Thanks,

Ganesh

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

3 Answers

VIPLOVE KHUSHALANI May 22, 2017 at 09:08 AM
0

Hi ,

If you are using the SAP IDS or Custom IDS for authentication than you can user details through usersapi service of HCP. Follow this blog for step by step method to get the logged in user details

https://blogs.sap.com/2015/04/16/using-the-hcp-user-api-in-web-ide/

thanks

Viplove

Share
10 |10000 characters needed characters left characters exceeded
Silent Monk May 22, 2017 at 10:23 AM
0

hi,

Answer to your question is available on below page

Currently Logged in User SAPUI5

Thank you !

Silent Monk

Share
10 |10000 characters needed characters left characters exceeded
Jun Wu May 22, 2017 at 11:25 AM
0

what's your runtime?abap, java......

Show 2 Share
10 |10000 characters needed characters left characters exceeded

We are developing in SAP UI5 in Web IDE by connecting to SAP Hana database.

is there a way to fetch windows login user in web UI5 code?

0

you are not answering.......

0