on 09-27-2005 2:25 AM
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...
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
88 | |
10 | |
10 | |
9 | |
7 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.