Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

E-Mail Alerts/User Accounts

Former Member
0 Kudos

Hi folks,

Is it possible to configure an e-mail alert to the Admin team to flag up when a user has locked their account?

Not interested in any automatic unlocking or anything of that nature. Just a simple e-mail alert.

Many thanks

Paul

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Hi Paul,

You can do this with a simple prog that periodically looped through USR02 looking for userID's that had been locked (you can choose which lock codes are suitable for reporting on). When it finds a record that has been locked since it last ran then uses a standard FM to email a group inbox or set of email addresses.

7 REPLIES 7

Former Member
0 Kudos

Hi Paul,

You can do this with a simple prog that periodically looped through USR02 looking for userID's that had been locked (you can choose which lock codes are suitable for reporting on). When it finds a record that has been locked since it last ran then uses a standard FM to email a group inbox or set of email addresses.

0 Kudos

Thank you for the reply Alex, much appreciated.

We're all quite new to this SAP game here so that'll be a good one to ask the ABAP lads to have a go at.

0 Kudos

Hi Paul, it should be a nice & easy one for them. A couple of gotcha's to look out for:

1. Lock codes - unless you really want to, don't report on admin lock codes otherwise you could have some fun and games when you have to do a mass lock...

2. Only picking up locked ID's that were locked since the last run. A few years back we had a program coded and the developer forgot this. As a result we kept on getting lists of locked users that had been reported but had not requested their ID's to be unlocked yet.

3. Being careful with the period of the report - can be a pain to keep getting stuff in your inbox unless it is really mission critical and you want to spend loads of time chasing users about.

0 Kudos

Alex,

That's great information, I shall pass that onto the lads, thank you very much.

0 Kudos

Hi Alex,

Any suggestions on the best to way to get the correct FM to use?

0 Kudos

Hi Shekar,

The one that I have seen used in the past is SO_NEW_DOCUMENT_SEND_API1

If you need to send attachments you can use SO_NEW_DOCUMENT_ATT_SEND_API1

Former Member
0 Kudos

Probably the easiest way of all would be to use the CCMS (transaction RZ20). You can also monitor and react to it centrally from a SolMan. Mail alerts are a configurable reaction method in the properties.

Password based locks are recorded in the system log already and the audit log if activated. You will even get the terminal name.

Cheers,

Julius