Skip to Content
0
Former Member
Dec 21, 2006 at 12:50 PM

WebDynpro RFC-Model/JCo : UnauthorizedUserException

21 Views

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.