on 01-31-2007 1:11 PM
Hi
i have to develop an application to get the portal user and display that user id and his details int he web dynpro view.
so please let me know the code and procedure to achive this.
regards
mmukesh
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Mukesh,
You can use the following code to get he portal login user:
IWDClientUser wdUser = WDClientUser.forceLoggedInClientUser();
IUser user = wdUser.getSAPUser();
String Username = user.getUniqueName();
Note: You need to add the "<b>com.sap.security.api"</b> jar file inorder use the above code.
Refer to the following thread for more information:
Regards,
Jhansi
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi mukesh,
You have to use the com.sap.security.api.jar file to the library of your project, you can find it in in SAP\JDT\eclipse\plugins folder... You can get firstName, lastname, uid, uniqueid etc.
Then, get the IUser object using....
IUser user = WDClientUser.getCurrentUser().getSAPUser();
Hope this help you,
Vito
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
85 | |
10 | |
10 | |
10 | |
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.