on 10-30-2007 9:42 AM
Hi Gurys!
Maybe somebody can help me.
I need to get portal user inside web dynpro application (abap).
All portal users are mapped to one r/3 user.
Thank you very much in advance.
Mikalai,
Here is the code to get the portal users in the WebDynpro app.
Import package com.sap.tc.webdynpro.services.sal.um.api
To get current users
trY{
IWDClientUser clientUser = WDClientUser.getCurrentUser();
WDContext.currentContextElement().setUser(clientUser.getLastName());
}
catch(Exception e)
{
}
Find the no of portal users logged in
IWDClientUser clientUsers[] = WDClientUser.getCurrentUsers();
wdContext.currentContextElement().setLength(clientUsers.length);
There are some other methods present in the package which may help u.
Mr.Chowdary
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
This code will capture the user in portal to webdynpro,
IWDClientUser wdUser = WDClientUser.forceLoggedInClientUser();
IUser user = wdUser.getSAPUser();
String userID = user.getUniqueName();
Award points if found usefull.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
that code is for java, I am unaware in AbAp.
and it gets both logged in user id in java and if not logged in due to expiry of session, it forces to login again.
I used this in WD in Java.
maybe these parameters help
IWDClientUser wdUser = WDClientUser.forceLoggedInClientUser();
IUser user = wdUser.getSAPUser();
Check for wdclientuser in AbAp, this fetches the userID.
and IUser fetches the user details in portal.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi! Mikali,
i have a little doubt about your question?
Do you want all the users who has portal account or only those users who are currently logged-in the portal?
what is dataSource you are using to store the portal Users, is it any LDAP server?
regards,
Mithileshwar
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
79 | |
9 | |
9 | |
7 | |
7 | |
6 | |
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.