cancel
Showing results for 
Search instead for 
Did you mean: 

IWDUser Problem!!

Former Member
0 Kudos

Hi all,

I'm using user authemtication when I run my webdynpro application with the following code:

IWDClientUser wdUser = WDClientUser.forceLoggedInClientUser();

String user = wdUser.getSAPUser().getUniqueID();

if (!user.equals(null)){

String UserId = user.toString().toUpperCase().substring(16);

}

String lifnr = UserId.substring(3,UserId.lenght - 1);

lifnr = "0005" + lifnr;

but when I try to rebuild the project, I got this two error that doesn't allow me to do deploy.

The project was not built since its classpath is incomplete. Cannot find the class file for com.sap.security.api.IUser. Fix the classpath then try rebuilding this project.

This compilation unit indirectly references the missing type com.sap.security.api.IUser (typically some required class file is referencing a type outside the classpath).

Does anyone know about this topic?

Thanks,

Jesus.

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

Hi,

I am facing the same problem with my application.

I found the jar file from the given path. But I am not clear on how to use it. Can anybody help me out?

Thanks and Regards

Reena

Former Member
0 Kudos

I finally added com.sap.security.api.jar to an "External Library" project, and added it in "Used DCs".

Assuming you are building DC's...

You'll find the jar under:

C:\Program Files\SAP\JDT\eclipse\plugins\com.sap.security\lib

Former Member
0 Kudos

Are you sure that you have added the com.sap.security.api.jar file in the buildpath?