cancel
Showing results for 
Search instead for 
Did you mean: 

Display name or alias of specific UserID

S0009809053
Explorer
0 Kudos
618

Hello

In our company we use a specific combination of characters to define the  USERID  nomenclature  of a SAP user.

Sometimes,  a user wants to access a record that is previously locked by other user,  and a message appears saying something like: "Record XXX is  locked by user: MT2RGIOP"  But Who exactly is  MT2RGIOP  ?

So users need to call  HelpDesk to ask what the name of person who owns  userid MT2RGIOP.

I want to  know  if there is a way that users can see quickly the name of the person who owns specific USERID.

I know  tcode SU01D is an option, but I don´t give  this Tcode because I don´t want employees to see more than the Name of the person.

Could you guys give me some ideas?

Thanks in advance

Sergio.

View Entire Topic
Former Member
0 Kudos

Hi Sergio!

Maybe function module SUSR_USER_ADDRESS_READ can help.

br Thomas

S0009809053
Explorer
0 Kudos

Hi Thomas

Could you tell me how to run that function module?

Thank you

Sergio

Former Member
0 Kudos

Hi Sergio!

Try this, if the selected user is maintained, a pop-up will be displayed, having the detailed information for it.:

*---------------------------------------------------------

REPORT zzz_sample_name_for_user.

DATA:

       gv_okcode TYPE  c.

* Define a parameter to give the possibility to select some user

PARAMETERS: gpa_user TYPE suid_st_bname-bname. "xubname.

* call function module, popup with the user data will occur.

CALL FUNCTION 'SUSR_SHOW_USER_DETAILS'

   EXPORTING

     bname  = gpa_user.

*---------------------------------------------------------

Best regards

Thomas

S0009809053
Explorer
0 Kudos

Hi Thomas

Thank you !

I had to ask for  help  to my Abap developer but she undestood very well your suggestion and it   worked.

Best  Regards

Sergio