SAP standard provides FM- SUSR_SHOW_USER_DETAILS to get the details of a USER.
Go to – Tx- SE37 and test the FM.
This is Tx- SU01 and details of an user- ABAP.
Provide the USER NAME and NO_DISPLAY as ‘X’ and execute.
So here is the details of a user.