We have added search box. Key in SAP issue keyword to search
TopBottom

Announcement: wanna exchange links? contact me at sapchatroom@gmail.com.

RE:[sap-security] Automatic way to block users that dont use the system?

Posted by Admin at
Share this post:
Ma.gnolia DiggIt! Del.icio.us Yahoo Furl Technorati Reddit

Posted by SAP_Secure (SAP NW Security Consultant)
on Aug 31 at 5:51 PM
Mark this reply as helpfulMark as helpful
Hi Thomas
I found some old programs from 8 years ago that an ABAP friend had written. I think the ZINACTIVE works. Its pretty straight forward and not check for special Users, Groups or who is running the program. With that, I can not promise it still works and ask you to proceed with caution and obviously take no responsibility for it. With that, here it is:
*&--------------------------------------------------------------------*
*& Report ZINACTIVE *
*& *
*&---------------------------------------------------------------------*
*& This program checks the lat logon date to the current date and *
*& changes the ?Valid To? date in USR02 to the Run Date. *
*&---------------------------------------------------------------------*
REPORT ZINACTIVE. .
*
TABLES: USR02, T000.
DATA: time_limit TYPE sy-datum.
DATA: days TYPE i VALUE 100.
time_limit = sy-datum - days.
SELECT * FROM T000.
SELECT * FROM USR02 CLIENT SPECIFIED WHERE MANDT = T000-MANDT.
case TRDAT
when < time_limit
update USR02 set ERDAT=sy-datum client specified.

ENDSELECT.
ENDSELECT.
Also, please look at USR02 in SE11 to make sure the 'Valid To' date is actually ERDAT.
Good luck
Chris Sugg
__.____._
Copyright © 2009 CEB Toolbox, Inc. and message author.

Toolbox.com 4343 N. Scottsdale Road Suite 280, Scottsdale, AZ 85251

0 comments:

Post a Comment

T r a n s l a t e to your language