cancel
Showing results for 
Search instead for 
Did you mean: 

UserId in Web Dynpro for Portal User

Former Member
0 Kudos

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

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

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.

Former Member
0 Kudos

Thanks Guys it worked.

Answers (1)

Answers (1)

former_member182372
Active Contributor
0 Kudos

Hi Sivajan,

Add WD_RUNTIME/com.sap.security/lib/com.sap.security.api.jar to your project`s java build path.

Best regards, Maksim Rashchynski.