cancel
Showing results for 
Search instead for 
Did you mean: 

WebDynpro RFC-Model/JCo : UnauthorizedUserException

Former Member
0 Kudos

Hello,

i really could use some help (Netweaver 2004s):

I'm trying to read data from an JCo-Destination in a WebDynpro Application and I'm getting a DdException saying

"TypeBroker failed to access SLD: Error while obtaining JCO connection."

The root cause of this exception seems to be:

"com.sap.lcr.api.cimclient.LcrException: com.sap.lcr.api.cimclient.UnauthorizedUserException: User credentials are invalid or user is denied access"

What i did is:

- I've configuered the JCoDestinations in WebDynpro Content Administrator to use (for development purposes) User/PW-Security Policy. The Connections (Model and Metadata) seem to be ok, Test and Ping work, "Check Connections to SLD" works too.

- I set the data in Visual Admin / SLD DataSupplier (http and CIM). CimClient Test works ok, as does the data transfer to SLD

- The User used for this JCoDestinations has SAP_ALL in ERP-System. In Visual Admin i assigned every SecurityRole in sap.com/com.sap.lcr*sld to this user (just to be sure...)

Still, i'm getting this error.

I'm pretty sure i've missed something (hopefully) obvious, but i'm stuck with this for days now and still can't find a solution. Thanks for your help!

- Both the R/3-system which is hosting the RFC-function i want to call and the system which is hosting the J2EE-Appserver i want to call from have entries in SLD / Technical Systems. The J2EE-Appserver has entries in JCo-Destinations which seem to be ok.

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Christian,

Create a new role in your portal and assign all the lcr related actions to this role. Then, add this role to the user ID you use for setting the JCo destinations. This should solve your problem.

Bala

Former Member
0 Kudos

Hi Balan,

no, it didn't.

I did as you said (in ume) - still the same error when i try to use a JCODestination.

Actually i think what you did suggest is the same i did in Visual Admin before.

Any other idea?

Thanks, Christian