Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

BAPI_USER_GET_DETAIL - Last Logon Date not available

Former Member
0 Kudos

From R3 I want to check the last logon Date (USR02-TRDAT) of a user in an outside system such as EBP or BW. BAPI_USER_GET_DETAIL seemed like a good choice but TRDAT is not passed to the BAPI. Last Logon Time is (LTIME) but not Last logon date (TRDAT). How can this be easily done.

Thanks,

-don.

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Try using the RFC SUSR_GET_ADMIN_USER_LOGIN_INFO, the export parameter LAST_LOGON_DATE will return the Last logon date.

Regards,

Trikanth Basetty

4 REPLIES 4

former_member589029
Active Contributor
0 Kudos

If there is no standard BAPI available providing the last logon date you might want to think about creating an RFC that returns this data (USR02-TRDAT and LTIME). Don't forget to add an authorization check to your RFC to avoid unauthorized users to call it.

Hope that helps,

Michael

Former Member
0 Kudos

Try using the RFC SUSR_GET_ADMIN_USER_LOGIN_INFO, the export parameter LAST_LOGON_DATE will return the Last logon date.

Regards,

Trikanth Basetty

0 Kudos

Yes, that will do the trick. Thanks for the quick response.

-d.

0 Kudos

the problem with this is that it makes a call for each user. If you have 100k users it becomes a very inefficient process.

If you build something in the backend to collect the details a useble format....1) it is custom, and 2) you need to deply in each backend and 3) maintain it in each backend.

not a good solution.

If anyone has better idea please shout. Again....this RFC call does the job.....but it is like empting a pool full of water with a  teaspoon, does the job but very inefficiently.

DenisO