cancel
Showing results for 
Search instead for 
Did you mean: 

Retriving email id of logged in user from portal in webdynpro java

Former Member
0 Kudos

Hi,

Can you please suggest me how to retrive mail id of portal user in webdynpro applications?

I have seen two jar files also need to add. Can any one suggest me where to get those files?

Thanks,

Raz

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi raz,

U can get the mail id of user with this code

try{

IWDClientUser clientuser=WDClientUser.getCurrentUser();

IUser user=clientuser.getSAPUser();

String email=user.getEmail();

}

catch(WDUMException e)

{

e.printStackTrace();

}

u need to add these 2 jar files to buildpath

1)com.sap.security.api.jar

2)com.sap.security.api.perm.jar

U can get them from

sap ins direc\IDE 7\eclipse\plugins\com.sap.tc.ap_..\comp\sap_jee\DCs\sap.com\com.sap.secutiry.api...

Regards,

Srikanth Reddy.T

Former Member
0 Kudos

Thanks a lot. This solved my problem.

Answers (0)