Skip to Content

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

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

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

replied

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

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