Skip to Content
author's profile photo Former Member
Former Member

No LogonDataBroker available

Hallo community,

following problem. I want to create a JCO-Coonection to backend SAP System by using information from landscape and usermanagment service in the pdk enviroment.

First step I made was to create a new user in KMUsers file.

part of KMUser:

user.application.id=SAPSystem

user.application.SAPSystem.additionallogondata=

user.application.SAPSystem.userencryptedpassword=pwd

user.application.SAPSystem.username=user

user.firstname=user

user.id=pwd

user.lastname=user

user.locale=de_de

user.password=pwd

user.roles=portal_demo, portal_admin

After this I configured system- an jcoDestination.xml so that the system has to use the UIDPW-Logon method.

part of system.xml:

Third step I made was to map portal user to a user of backend SAP system (see part of KMUser). After I made a successful test of jcoDestination to backend SAP system in landscape cockpit.

The last step I made was to create a JCO Connection to SAP System by using usermanagment service.

part of code:

ILandscapeService landscapeService = (ILandscapeService) request.getService(ILandscapeService.KEY);

Properties props = landscapeService.lookupJCOLoginParams("SAPSystem");

Locale locale = request.getLocale();

String language = locale.getLanguage();

if (language != null) {

props.setProperty("LANG", language.toUpperCase());

}

IUserManagementService umService = (IUserManagementService) request.getService(IUserManagementService.KEY);

IUserFactory userFactory = umService.getDefaultFactory();

IUser myUser= null;

try {

myUser = userFactory.getUser(request.getUser().getUserId());

} catch (UserManagementException ume){

}

ILogonDataBroker authen = myUser.getMappingInfo();

authen.enrich(request.getServletRequest(),props,landscapeService.lookupJCOSystem(sapSystem),landscapeService.lookupJCOLogonMethod(sapSystem));

JCO.Client jcoClient = JCO.createClient(props);

jcoClient.connect();

These Trial fails because the return value of function call "curentUser.getMappingInfo()" of was null.

Does anybody have an idea want kind of mistake i made. I don't have anyone.

Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • Posted on Dec 29, 2003 at 11:50 AM

    I assume you mention EP5.0

    Download PDK 5.5 - there is an example with UIDPW. And the UME at all is explained.

    I think I also put an article about UME 4.0 which is EP6.0 here on SDN.

    BR;

    Oliver

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.