‎2008 Feb 20 2:18 PM
Hi,
Can I use BAPI_USER_LOCK to lock users in a particular client for a particular system say client 200 for ECC system.OR Would it lock that user in all clients for that system, say clients,200,400 and 600 For ECC.?OR Would it also lock the user globally and locally(in all clients) simultaneously? I do not want the user to be locked globally as he/she may not be able to access other systems such as CRM,BW etc.if locked globally?Please provide inputs.Is there any other to achieve this.
Thanks!
Savitha
‎2008 Feb 20 2:21 PM
Hello,
Short text
Lock User
Functionality
Method Lock locks user USERNAME from logging onto the system.
Notes
You can unlock user USERNAME with the method Unlock.
The method is fully integrated in the central user administration
system.
If the method is called in a sytem that belongs to a group for central
user maintenance, the method behaves accordingly.
If the method is called in the central system of this type of system
group, this triggers user distribution.
The user is also locked in the dependent systems.
The prerequisite for this is that the field maintenance attributes
(Transaction SCUM) are set.
Parameter
USERNAME
RETURN
Exceptions
Function group
SU_USER
EG:
DATA RETURN_DUMMY LIKE RETURN OCCURS 0.
CALL FUNCTION 'BAPI_USER_LOCK'
EXPORTING
USERNAME = USERID
TABLES
RETURN = RETURN_DUMMY.
Cheers,
Vasanth
‎2008 Feb 20 2:24 PM
Hi,
If you use BAPI_USER_LOCK then the User will be locked Globally in the Server,
if you use SUSR_BAPI_USER_LOCK, then you have an option to lock it Globally or Locally
Enjoyee the coading
Sudheer
‎2008 Feb 20 2:27 PM
U need to use BAPI_LOCK_USER. The condition is if a user is a centralized user then the FM locks all the systems.
If the user is not a centralized user then the FM locks only the current system.
or u can even use
SUSR_BAPI_USER_LOCK
Edited by: Ramesh Babu Chirumamilla on Feb 20, 2008 7:59 PM