on 01-30-2006 11:11 PM
Hello:
I've created a webDynpro app that receives a client ID and retrieves the client data using an RFC connection into R/3. It's working now, however, I need to deploy it into the portal and instead of typing the client ID in a text field, the app should get it from the user name.
Let's say, the user "Alejandro" logs in the portal and the app should seek for the name "Alejandro". IS it possible to use a "user mapping" in order to link the portal login into the search parameter for the RFC in the webDynpro app?
Thanks
Alejandro
Hi,
In NDS right click on Your project->properties->Java Build path->Libraries->Add variable-> Eclipse Home->extend->plugins->com.sap.security->lib->com.sap.security.api.jar
These imports should be there
import com.sap.security.api.IUser;
import com.sap.security.api.IUserAccount;
get the IUSer object by
IUser user = WDClientUser.getCurrentUser().getSAPUser();
You will get first name ,last name,Id etc from this object
Once you get the ID you can pass it to an RFC as input parameter
see this post
Hope this helps you
Regards
Rohit
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Alejandro,
Have you got the answer for your query?
Let me know if you need more info?
Regards,
karthick
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
87 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.