I'm having a bit of trouble finding a proper solution to mass user locking/unlocking in SAP.
When I lock users i want to be able to distinguish between already locked users and users to be locked.
When unlocking users i want to be able to distinguish between users that were locked before I locked them and users we locked with the program. I only want to unlock the users that were locked by the program.
The program we use is a z program that uses the BAPI_USER_LOCK and BAPI_USER_UNLOCK function module.
I've done quite a bit of research, and I'm thinking of adding 1 to the value of users that I lock via the program as a possible solution but I'm not too sure.
Any help would be appreciated.