cancel
Showing results for 
Search instead for 
Did you mean: 

Delete Audit log on SM20

manthana_c
Contributor
0 Kudos

Hello Guru:

I can display list on Audit Log on SM20.

I wonder how to clear this log please.

I have try SLG2 with option delete before expiration date but nothing list as in SM20.

Please advise and thanks in advance.

Accepted Solutions (1)

Accepted Solutions (1)

manthana_c
Contributor

Where can I change the min. from 3 to 0 day please?

Former Member
0 Kudos

Sorry, 3 is hardcoded in the function module RSAU_CLEAR_AUDIT_LOG. You can try copying this to Z.

AUTHORITY-CHECK OBJECT 'S_ADMI_FCD'

ID 'S_ADMI_FCD'

FIELD 'AUDA'.

IF SY-SUBRC NE 0. RAISE NO_AUTHORITY. ENDIF.

IF LIFETIME < 3. RAISE INVALID_LIFETIME. ENDIF.

PURGEDATE = SY-DATUM - LIFETIME.

manthana_c
Contributor
0 Kudos

Hello Sravanthi:

I have no authorization to do ABAP.

any other possibilities?

Former Member
0 Kudos

Its hardcoded in SAP standard program, unfortunately No other way.

Former Member
0 Kudos

Hi,

As another alternative, you can carefully delete, move or compress the audit files from the OS level to achieve your purpose.

Regards,

Varun

Answers (1)

Answers (1)

Former Member
0 Kudos
manthana_c
Contributor
0 Kudos

Hello Guru:

I try SM18 but I can delete the log occur today.

message "Mininum Age to small less than 3"

pls advise how to proceed.

Former Member
0 Kudos

Hi Manthena,

To remove today's or latest log, In SM18, remove the Mimum Age Value before executing. You can test by Simulation Checkbox by removing Minimum Age value.

Thanks,

Sravanthi

manthana_c
Contributor
0 Kudos

I have try remove mimum age value , still same message "less than 3 "

pls help again.

Former Member
0 Kudos

Looks like you cannot delete the logs age less than 3 days. But you can try to Archive it.

Check this link

http://help.sap.com/saphelp_nw70ehp2/helpdata/en/b6/d6af916bc011d1a56c0000e835363f/content.htm