cancel
Showing results for 
Search instead for 
Did you mean: 

Getting R3 user/password using UME

Former Member
0 Kudos

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...

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

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

former_member182372
Active Contributor
0 Kudos

Hello Sam,

How to get jco connection

Best regards, Maksim Rashchynski.

former_member182372
Active Contributor
0 Kudos

Hello Sam,

Check this

Best regards, Maksim Rashchynski.

fereidoon_samii
Explorer
0 Kudos

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