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

Getting R3 user/password using UME

I am using UME to store R3 username/password. How can I get the R3 username/password from Dynpro application? Also is there a way to get the R3 logon ticket?

Any sample code or tips appreciate...

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

3 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Sep 27, 2005 at 04:02 AM

    Hi Sam,

    Hope this works.

    // Example:

    // get the currently logged in user

    IWDClientUser user = WDClientUser.getCurrentUser();

    wdComponentAPI.getMessageManager().reportSuccess("User is "+user.getSAPUser().getUniqueID());

    Make sure you have following jar file added to classpath

    C:Program FilesSAPJDTeclipsepluginscom.sap.securitylibcom.sap.security.api.jar"

    // check whether the current user is authenticated or anonymous

    if ( user.isAnonymous() ) {

    // anonymous user

    } else {

    // authenticated user

    }

    // read some user profile information

    String name = user.getLastName();

    String title = user.getTitle();

    // get the com.sap.security.api.IUser; it is null in case user

    // represents an anonymous user

    IUser iUser = user.getSAPUser();

    To enable authentication for a Web Dynpro application, the application property “sap.authentication” has to be set to “true”.

    Also see link

    retrieving-web-dynpro-user-info

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Sep 27, 2005 at 07:29 AM

    Hello Sam,

    Check this

    How to get R3 user from Portal user? (User Mapping)

    Best regards, Maksim Rashchynski.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Sep 27, 2005 at 06:35 PM

    This is useful but it does not answer my question...I think I didn't present the question in right format...

    From my web dynpro application, I am calling other application which talks to R3 directly...So I need to send R3 username,password, system name etc to this application..How do I do that? Now I know how to get the username but how do I get the password, client number etc. In my web dynpro iView, I would like to get the username/password from the system alias which I have defined for my R3 system called SAP_R3_1 which connects to R3 using user mapping.

    Other possible (actually preferred ) solution is to be able to send R3 ticket as a string to the other application. Is this possible?

    Message was edited by: Sam Watts

    Message was edited by: Sam Watts

    Message was edited by: Sam Watts

    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.