cancel
Showing results for 
Search instead for 
Did you mean: 

Can i get Portal User's details in webdynpro??

Former Member
0 Kudos

Hi all,

I am new to webdynpro.

I have one doubt.

Can i get the Portal User (who has logged in) information in webdynpro?

For ex: if i want his login id or his name....how can i get it?

Is it possible????

If yes, how?

Kindly help me.

bye,

KK.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hai there,

This is not the forum where you should post queries regarding webdynpro. Check out in Web Application Server > WebDynpro forum.

Anyways, You need to add something called <b>com.sap.security.api.jar</b> file to the library of your project(It will be in <b>SAPJDTeclipseplugins</b> folder).Check it out.

Then, you can get the IUser object by::

IUser user = WDClientUser.getCurrentUser().getSAPUser();

Now, you can get firstName, lastname,uid, uniqueID etcc....from this user object.

You can get more information from the following threads:

Search in the webdynpro forum, you will get more threads.

Hope it helped you.

<b>Regards,

Sai Krishna.</b>

<b>PS:</b> Please award points if it helps.

Message was edited by: Sai Krishna T

Former Member
0 Kudos

Thanks sai & prakash for ur quick replies.

Sai: Your reply was crystal clear.i looked those links. They helped me. Thanks alot once again.

Bye,

KK.

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi,

Include the jar com.sap.security.api.jar

Use the following code

IWDClientUser wdUser = WDClientUser.getCurrentUser();

IUser user = wdUser.getSAPUser();

Regards

Prakash