Know Who is doing What in your SAP System

SAP ABAP Tutorial

These days micro-management has become very common. Clients want  the breakdown of all the work you do every day, sometimes as ridiculous as at t-code level. 🙂 . I know clients who monitor when the contractor last logged into the system and from which terminal.

If you are that manager who is in that unavoidable circumstance where you have to keep track of the activities of some users (who are trying to fool you), this tool would be handy for you. Or else, if you are just a developer but still would like to see who performs what activity at any point of time, you can also make use of this tool.

This is more for academic fun rather than having real project usage. No HANA, SAP UI5, OData or Fiori in this post. Just plain Vanilla ABAP. So, relax and try the code for this tool in your system and check what your team members and users do. 😛 . You can also check if your Team Lead/Project Lead ever log into their respective SAP system or are they happy preparing spreadsheet and presentations. 😀

We have provided only 4 radio buttons. You can improvise upon it and create multiple permutations and combinations.

The heart and mind of this application tool is FM ‘TH_LONG_USR_INFO‘. The information is returned in structure UINFO2 (Full information on a user).

Buckle up, we are moving!!!

a) Let us see who all are logged into the system. Just for attendance. 🙂

Monitor User in SAP

See the output below. It provides the unique list of UserId along with the name. Terminal (laptop/desktop) name is also provided. Is it good information?


Also Read: Everyday Simple Security Breach in SAP.

b) Let us see in details what t-code each logged user is using. Have they just logged in or are they really working?

micromanagement in SAP

Check Ali has 6 sessions opened and Shrestha has 3 sessions. You also get the information about the transaction they are using and the time they last logged into that t-code. If someone is in the t-code for long, it means he is idle or not using that SAP session.

User Log

Also Read: Do you have Lazy ABAPers in your Team?

c) Let us check what my best friend is doing in his SAP system.

dynamic selection screen elements

The moment you click the third radio button, the SAP User Id element of the screen would be visible. The simple hide and display code is written at initialization (for freshers only).

Check Shrestha is logged into two different clients and opened six different sessions. Looks like he is working a lot. 😛


d) Finally, let us see who all are messing around with the same t-code at one point of time.

Seems three different users (ali, man and med) in three different clients (110, 120, 140) are playing with t-code HRFORMS. HR is always popular. 😛


This post is just a breather from all the heat and noise from HANA, SAPUI5 and Fiori. After all, the normal ABAP has been the bread and butter of all ABAPers till date. It is like the old habit which cannot be forgotten or left so easily. 🙂

Please find below the working code for the tool. You might need to populate the text elements manually in your program. Create the program in your development/test box and be the secret agent. 😛

Update on 09/11/2016

One of our reader ‘Bikas‘ shared that t-code “AL08” does exact the same thing what we tried with our code snippet. Thanks to Bikas for letting us know. For the reference of our readers, please find the screen print of t-code AL08.

sap abap interview questions

This is a perfect example of learning by sharing. No one can know everything in this world. But we can definitely share our knowledge and educate each other.

If you want to get such useful and practical articles directly to your inbox, please SUBSCRIBE. We respect your privacy and take protecting it seriously.

If you liked this post, please hit the share buttons and like us on facebook.

If you have anything to say and share. Please write below at the comments section. Please, please share your thoughts. Please do not hold back.

Thank you very much for your time!!


    • Thank you Bikas. I was not aware of this t-code AL08. AL08 does the same thing what we intended to do with our code. Thank you so much for sharing.

      We will update it in our post.


    • Thank you so much Biplab Da. How are you?

      Even though you being a very Senior Functional/Business consultant, you visit our technical blog. Really appreciate your time and encouragement.
      And Thank you very much for leaving your comment. 🙂



Please enter your comment!
Please enter your name here