on 02-26-2008 3:00 PM
Hi All,
I am using the RFC Hr_Getemployeedata_Fromuser to get the pernr of the current portal logged in user.
It leads me to the following errors.
[echo] output dir: C:\Documents and Settings\vvinchurkar\.dtc\0\t\9109A5439441204B65D6AD79990B56DF\classes
[javac] Compiling 214 source files to C:\Documents and Settings\vvinchurkar\.dtc\0\t\9109A5439441204B65D6AD79990B56DF\classes
[javac] ERROR: C:\Documents and Settings\vvinchurkar\.dtc\0\t\9109A5439441204B65D6AD79990B56DF\gen_wdp\packages\com\sempra\opsqual\CreateSubsequentQualsView.java:33: package com.sap.security.api does not exist
[javac] ERROR: import com.sap.security.api.IUser;
[javac] ERROR: ^
[javac] ERROR: C:\Documents and Settings\vvinchurkar\.dtc\0\t\9109A5439441204B65D6AD79990B56DF\gen_wdp\packages\com\sempra\opsqual\CreateSubsequentQualsView.java:177: cannot resolve symbol
[javac] ERROR: symbol : class IUser
[javac] ERROR: location: class com.sempra.opsqual.CreateSubsequentQualsView
[javac] ERROR: IUser user = wdUser.getSAPUser();
[javac] ERROR: ^
[javac] ERROR: C:\Documents and Settings\vvinchurkar\.dtc\0\t\9109A5439441204B65D6AD79990B56DF\gen_wdp\packages\com\sempra\opsqual\CreateSubsequentQualsView.java:178: cannot resolve symbol
[javac] ERROR: symbol : class IUserAccount
[javac] ERROR: location: class com.sempra.opsqual.CreateSubsequentQualsView
[javac] ERROR: IUserAccount accounts[] = user.getUserAccounts();
[javac] ERROR: ^
[javac] ERROR: C:\Documents and Settings\vvinchurkar\.dtc\0\t\9109A5439441204B65D6AD79990B56DF\gen_wdp\packages\com\sempra\opsqual\CreateSubsequentQualsView.java:181: cannot resolve symbol
[javac] ERROR: symbol : class IUserAccount
[javac] ERROR: location: class com.sempra.opsqual.CreateSubsequentQualsView
[javac] ERROR: IUserAccount account = accounts;
[javac] ERROR: ^
[javac] WARNING: Note: Some input files use or override a deprecated API.
[javac] WARNING: Note: Recompile with -deprecation for details.
[javac] 4 errors
How should this be implementes ?
Is it a deprecated API?
Thanks.
Thats right i am working on a DC project.
Can you tell me the procedure to implement this ?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Can it not import if it not in the scope of the active project ?
If that be the case ? What is the solution ?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
hi,
use this import statmenty:
import com.sap.tc.webdynpro.services.sal.um.api.IWDClientUser;
import com.sap.tc.webdynpro.services.sal.um.api.WDClientUser;
You can access user as below:
IWDClientUser wdClientUser = WDClientUser.forceLoggedInClientUser();
com.sap.security.api.IUser sapUser = wdClientUser.getSAPUser();
String epuser = sapUser.getName().toString().toUpperCase();
Regards,
Kiran Yadav
User | Count |
---|---|
86 | |
10 | |
10 | |
9 | |
7 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.