Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

BAPI_USER_LOCK usage

Former Member
0 Likes
2,774

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

3 REPLIES 3
Read only

Former Member
0 Likes
1,368

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

Read only

Former Member
0 Likes
1,368

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

Read only

Former Member
0 Likes
1,368

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