Skip to Content

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

UserId in Web Dynpro for Portal User

Hi,

I am using the code below to get the portal user id but am having some difficulties building the project.

try {

IWDClient user = WDClientUser.getCurrentUser();

wdContext.currentContextElement().setUserID(user.SAPUser()); }

catch (Exception ex) {

}

However i am getting the following error - 'The rpoject was not built since its classpath is incomplete. Cannot find the class file com.sap.security.api.IUser. Fix the classpath then rebuild project. Where is the classpath and how do i do this?

Thanks for your help.

Sivajan

Former Member
Former Member replied

Hi,

To use IUser you will need to add the jar file "com.sap.security.api.jar" to your classpath. In case you don't find this file, look for "com.sap.security.api.ap5.jar". Add these files to your classpath.

Regards,

Satyajit.

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