on 12-04-2007 7:18 PM
Hi All ,
I want to get the last login time & Date of the user . But the SAP documentation says that these values are no more logged into the UME <a href="http://help.sap.com/saphelp_nw04/helpdata/en/43/bc6b9202454dece10000000a422035/frameset.htm"></a>
So what is the best way to get the date & time . Please give your suggestions.
Hi
Use this code
IWDClientUser CUser = WDClientUser.getCurrentUser();
IUser user = CUser.getSAPUser();
IUserAccount[] acc = user.getUserAccounts();
Date objDate = acc[0].getPreviousSuccessfulLogonDate();
Regards
LakshmiNarayana
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
hi user,
as you can read in the API the code of LakshmiNarayana can not work ...
"get last sucessful logon date NOTE: This attribute is not automatically updated during login."
only idea i have: write your own JAAS login module and handle your lastlogindate issue there:
example:
store it in db or use a singleton to retrieve it from your app.
Regards, Jens
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
86 | |
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.