on 11-23-2005 11:43 AM
Hi, how to display last login date&time of a WD application?
I use this code:
IWDClientUser wdUser = WDClientUser.getCurrentUser();
IUser user = wdUser.getSAPUser();
IUserAccount[] IUA = user.getUserAccounts();
Date lastLogin = IUA[0].getLastSuccessfulLogonDate();
but it returns date and time of the current login.
Any idea?
Andrea
Andrea,
Change
Date lastLogin = IUA[0].getLastSuccessfulLogonDate();
to
Date lastLogin = IUA[0].getPreviousSuccessfulLogonDate();
Is it necessary function?
VS
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi everyone,
UPDATE on this: From SP16 on, the last successful login date does not get logged into the database anymore, see http://help.sap.com/saphelp_nw04/helpdata/en/43/bc6b9202454dece10000000a422035/frameset.htm - for performance reasons, as it is stated...
Hope it helps not to fall into this new trap
Detlev
User | Count |
---|---|
87 | |
23 | |
11 | |
9 | |
8 | |
5 | |
5 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.