cancel
Showing results for 
Search instead for 
Did you mean: 

Determine if a user is open for Maintenance (in SU01)

former_member449168
Participant
0 Kudos

Hi

I would like to determine if a specific is user is currently being maintained in SU01.
So let's assume I'm busy maintaining John in SU01, where can I find a list of all the users being maintained at the moment (which should include John's name)?

I've managed to find something in the ABAP Debugger's global variables, but I would like to access the info from a table, FM or BAPI. Is that possible?

Accepted Solutions (1)

Accepted Solutions (1)

raymond_giuseppi
Active Contributor

Basically SU01 will lock the user (look with SM12, to identify lock object E_USR04, table USR04) and you can get the lock list with ENQUEUE_READ.

CALL FUNCTION 'ENQUEUE_READ'
  EXPORTING
    guname                = space
    gname                 = 'USR04'
  IMPORTING
    subrc                 = subrc
  TABLES
    enq                   = enq
  EXCEPTIONS
    communication_failure = 2
    OTHERS                = 1.
former_member449168
Participant
0 Kudos

Thanks a lot. I've opened SM12 and can see the entry. The username (Lock Argumant) are actually concatenated with the Client ID like "800JOHN", but I guess I can work with that. Will test out the ENQUEUE_READ.

Answers (0)