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: 

Automate Audit Trail Report

Former Member
0 Kudos


Hi All,

We have set up the Security Audit Log via SM20 for our Production system. As per our current Audit process, we select random dates every quarter and generate the log for those dates. Now, we have a requirement to automate this activity and generate the Audit report. Is it possible to achieve this via standard SAP job or do we need to configure some other setting?

Many thanx.

Kind regards,

Amer.

1 ACCEPTED SOLUTION

ACE-SAP
Active Contributor
0 Kudos

Hello

You can schedule report RSAU_SELECT_EVENTS in background and create a variant with a dynamic date selection.

The audit files themselves can also be processed quite easily with an specific ABAP (or perl/shell script).

It can also be possible to read the audit files using function RSAU_READ_FILE and write a ABAP prog to store the audit info in some custom tables.

Apply the here under note for a better layout of report RSAU_SELECT_EVENTS.

1819317 - Enhancement of security audit log

Regards

3 REPLIES 3

ACE-SAP
Active Contributor
0 Kudos

Hello

You can schedule report RSAU_SELECT_EVENTS in background and create a variant with a dynamic date selection.

The audit files themselves can also be processed quite easily with an specific ABAP (or perl/shell script).

It can also be possible to read the audit files using function RSAU_READ_FILE and write a ABAP prog to store the audit info in some custom tables.

Apply the here under note for a better layout of report RSAU_SELECT_EVENTS.

1819317 - Enhancement of security audit log

Regards

Former Member
0 Kudos

Hi,

Thank you for your reply. We have already implemented this note in our environment. However, our requirement is to generate the audit log in report form where by we schedule a job on a monthly basis and get the report. Is this possible via any standard tcode or report?

Kind regards,

Amer.

ACE-SAP
Active Contributor
0 Kudos

Hi

Scheduling a monthly job with prog RSAU_SELECT_EVENTS should do it (trans. SM36).

You can save the generated spool by selecting a printer that redirects the content to a script or a mail.

Regards

513352 - Printing by e-mail (update)

161516 - Printing into a file or anywhere else in NT

6753 - Printing in file (to magnetic tape) or elsewhere