steps of a sap audit
DESCRIPTION
SAP audit approachTRANSCRIPT
Steps Required for Sap-Auditing
1. List the SAP Users which have not done login since last month.
2. Copy User’s Profile & roles which are to be deleted.
3. Delete Users which have not login above month
4. With the help of RZ10 change parameter to stop multiple login
5. With se16 User table usr41_mld for getting highest peak & counter.
6. Save above file in your local PC.
7. With the help below Zprogram we can remove exceeds counter & peak
As below *&---------------------------------------------------------------------
*
*& Report ZTMP_SU41
*
*&
*
*&---------------------------------------------------------------------
*
*&
*
*&
*
*&---------------------------------------------------------------------
*
report ztmp_su41
message-id z0.
tables :usr41_mld.
data : begin of itab occurs 0,
bname like usr41_mld-bname,
cal_year like usr41_mld-cal_year,
peak like usr41_mld-peak ,
counter like usr41_mld-counter,
first_date like usr41_mld-first_date,
first_time like usr41_mld-first_time,
last_date like usr41_mld-last_date,
last_time like usr41_mld-first_time,
peak_date like usr41_mld-peak_date,
peak_time like usr41_mld-first_time,
end of itab.
call function 'UPLOAD'
exporting
* CODEPAGE = ' '
filename = 'C:\USR41_MLD.TXT'
filetype = 'DAT'
* HEADLEN = ' '
* LINE_EXIT = ' '
* TRUNCLEN = ' '
* USER_FORM = ' '
* USER_PROG = ' '
* DAT_D_FORMAT = ' '
* IMPORTING
* FILELENGTH =
tables
data_tab = itab
* EXCEPTIONS
* CONVERSION_ERROR = 1
* FILE_OPEN_ERROR = 2
* FILE_READ_ERROR = 3
* INVALID_TYPE = 4
* NO_BATCH = 5
* UNKNOWN_ERROR = 6
* INVALID_TABLE_WIDTH = 7
* GUI_REFUSE_FILETRANSFER = 8
* CUSTOMER_ERROR = 9
* NO_AUTHORITY = 10
* OTHERS = 11
.
if sy-subrc <> 0.
message e014 with 'NO RECORDS TO UPLOAD'.
endif.
loop at itab.
select single * from usr41_mld where
bname = itab-bname and
cal_year = itab-cal_year.
if sy-subrc = '0'.
update usr41_mld set
peak = itab-peak
counter = itab-counter
first_date = itab-first_date
first_time = itab-first_time
last_date = itab-last_date
last_time = itab-last_time
peak_date = itab-peak_date
peak_time = itab-peak_time
where bname = itab-bname and
cal_year = itab-cal_year.
endif.
endloop.
===============================
*&---------------------------------------------------------------------
*
*& Report ZTMP_SU41_del
*
*&
*
*&---------------------------------------------------------------------
*
*&
*
*&
*
*&---------------------------------------------------------------------
*
report ztmp_su41
message-id z0.
tables :usr41_mld.
selection-screen begin of block input with frame title text-000.
* SELECTION CRITERIA HERE.
select-options: iname for usr41_mld-bname,
iyear for usr41_mld-cal_year.
selection-screen end of block input.
delete from usr41_mld
where bname in iname and
cal_year in iyear.
After running above program peak counter is set to minimum.
Check Same & Run the program given by SAP for Auditing.