cancel
Showing results for 
Search instead for 
Did you mean: 

Passing the user to JCO destination

david_fryda2
Participant
0 Kudos

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.

Accepted Solutions (0)

Answers (3)

Answers (3)

suresh_krishnamoorthy
Active Contributor
0 Kudos

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

david_fryda2
Participant
0 Kudos

Hi everyone,

Do I have to use Username/Password or a ticket ?

If I understand well, it is not a programer issue but a configuration issue ?

Thanks for the help.

Regards.

Former Member
0 Kudos

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>

suresh_krishnamoorthy
Active Contributor
0 Kudos

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

david_fryda2
Participant
0 Kudos

Thanks Suresh for the help.

Regards.

Former Member
0 Kudos

Hi Suresh,

Do you know what roles are needed for the service user in R3 for the METADATA JCo connection?

Thanks,

Megha.

lajitha_menon
Contributor
0 Kudos

Hi David,

You achieve this using SSO. In the JCo connections, dont choose user/password. Choose Ticket instead.

Regards

roberto_tagliento
Active Contributor
0 Kudos

SSO - Single Sign-On

http://geekswithblogs.net/bcorazza/articles/86595.aspx

Message was edited by: Roberto Tagliento