on 11-02-2006 9:03 AM
Hi everyone,
I created a JCO destination based on an unique user (administrator).
So, each user running WD applications and making calls to RFCs, in fact they have super rights when they go to to SAP/R3.
Is it possible to pass the user id to that JCO connection in that way that each connection has only the rights of the current user...and not the admin ones ?
Thanks.
Regards.
Hi David,
Try this While creating JCO Destinations.
WD_MODELDATA_DEST- Use Ticket option.
WD_METADATA_DEST- Use Username/Password option. Service user name and password of the R/3 system: Administrator has to create this users.
Regards, Suresh KB
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
hi David,
if you use userid/passwd while creating JCo then it will take the userid of JCo for all the application.
So create JCo using ticket method. this will send the logged on user to backend.
If you still want to userid/passwd and send the portal user to backend then capture the username and send it to RFC.
Code to caputre username.
<b>String Username = "";
IWDClientUser wdUser = null;
try {
wdUser = WDClientUser.getCurrentUser();
} catch (WDUMException e) {
e.printStackTrace();
}
IUser user = wdUser.getSAPUser();
//Username =user.getDisplayName();
Username =user.getUniqueName();
</b>
Hi David,
In my previous reply i mentioned clearly.
For webdynpro we have to create two JCO destination.
one for Application and other for meta data.
1. Application user Ticket option
2. MeteData user Service user(user name and password).
this option is looks no where hard coded any user details for accessing R/3 System. who ever logged into the portal having authorization to access the R/3 can access R/3 using ticket logon.
see this link too:
https://www.sdn.sap.com/irj/sdn/downloaditem?rid=/library/uuid/f0b0e990-0201-0010-cc96-d7ecd2e51715
Regards, Suresh KB
Hi David,
You achieve this using SSO. In the JCo connections, dont choose user/password. Choose Ticket instead.
Regards
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
SSO - Single Sign-On
http://geekswithblogs.net/bcorazza/articles/86595.aspx
Message was edited by: Roberto Tagliento
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
82 | |
10 | |
10 | |
9 | |
6 | |
6 | |
5 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.