on 2005 Nov 22 1:44 PM
Hi all,
I have written the following code to use User mapping method to login to R/3 using SSO.
try {
IUser randomuser = UMFactory.getUserFactory().getUserByLogonID("vedun1");
r3id=UMFactory.getUserMapping().getR3UserName(randomuser,"UIDPW",null,true);//getMappedSystemsForPrincipal(currentuser);
} catch (UMException e1) {
// TODO Auto-generated catch block
wdComponentAPI.getMessageManager().reportWarning(e1.toString());
}
wdComponentAPI.getMessageManager().reportSuccess("R/3 login id for infy1"+r3id);
But this returns exactly the same name as that of the portal user name. For example, it returns "vedun1" in the above case. If I change it to "xyz", it will return "xyz" even if there is no R/3 id with that name.
Could some one please help me in this.
Regards,
Narahari
Message was edited by: Narahari Vedula
Hello Narahari,
Check this . The problem is the same. You are using "UIDPW" as system identifier and it seems to be not system identifier (hm...all can be ). So, if UME cannot find system by system identifier and mapping for specified system it returns same value as first parameter (vedun1 in your case).
Best regards, Maksim Rashchynski.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
This may be bcoz, u r storing 'vedun1' in the randomuser and using this variable in r3id.
To ur query,by default randomuser is going to have ur name as 'vedun1' and now u r not using r3id means u hav to pass some valus for displaying the text,so u might give that as randomuser itself.By default the username gets stored.
Regards,
Nagarajan.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
70 | |
10 | |
10 | |
7 | |
6 | |
6 | |
6 | |
5 | |
5 | |
5 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.