Deactivate an Account in SAP

This report de-activates the account of the specified user. This can be used as a utility to SAP BASIS people.

Please be cautious of its use, and thus should be used correctly.

 

Source Code

 

REPORT Zdispass.

tables: usr02.

types: begin of ty_users .

include structure usr02 .

types: end of ty_users.

data: it_users type table of ty_users with header line .

 

select-options: s_users for usr02-bname.

start-of-selection.

select * from usr02 into table it_users

 where bname in s_users.

 

loop at it_users.

 

it_users-codvn = ‘X’.

 clear it_users-bcode.

 write:/1(35) sy-uline.

 write: /1 sy-vline ,

 2 ‘Deactivating ‘ color 7,

 22 it_users-bname color 5,

 35 sy-vline.

 write:/1(35) sy-uline.

 update usr02.

 

endloop .

You might also be interested in these posts:

  1. ABAP Program to Unlock Login ID in SAP
  2. ABAP program to get User Exits and BADI List for a T-Code
  3. ABAP Program to show My Inactive Programs
  4. ABAP Program to Break the Editor Lock
  5. ABAP Program to Track ‘Hard Coding’ in Programs

No Responses to “Deactivate an Account in SAP”

Post a Comment