cancel
Showing results for 
Search instead for 
Did you mean: 

Last login date & Time

Former Member
0 Kudos

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

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Andrea,

Change

Date lastLogin = IUA[0].getLastSuccessfulLogonDate();

to

Date lastLogin = IUA[0].getPreviousSuccessfulLogonDate();

Is it necessary function?

VS

detlev_beutner
Active Contributor
0 Kudos

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

Former Member
0 Kudos

Hi Detlev,

So just to re-iterate, webdynpro app or not, there is NO way to get a list of users who have not logged in in say the past 3 months? If there is way, can you please point me in the right direction?

Regards,

Patrick

Former Member
0 Kudos

Hi Patrick,

Could you please let me know if you were able to get any solution for your question i.e., to find the users not logged in.

Regards,

KSK

Answers (0)