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