Skip to Content

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

UserId in Web Dynpro for Portal User


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 Fix the classpath then rebuild project. Where is the classpath and how do i do this?

Thanks for your help.


Former Member
Former Member replied


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



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