Monday, 11 November 2013

Client Lock/Unlock on SAP



From SAP

To lock or unlock a client in R/3 System, run the following function modules in transaction SE37

1. SCCR_LOCK_CLIENT (to lock the client)
2. SCCR_UNLOCK_CLIENT (to unlock the client)

Run these functions with a client input which is to be locked/unlocked. This function set flag ''
Client is locked temporarily for client copy" in client maintenance menu. The client will be available for users DDIC and SAP*. If any other user tries to login, system gives message that ' Client locked temporarily'.


To Unlock the client

1. Run transaction
SE37
2. Enter the function module as SCCR_UNLOCK_CLIENT
3. Press F8 or test run (single run).
4. Specify the client and execute (
F8).

Follow similar procedure for locking the client
To Lock the client
There is no direct tcode to lock a client. the easiest way to Lock a client is 
1. Run Tcode
SE37
2. Type function module name SCCR_LOCK_CLIENT
3. Enter the Client No.
4. Execute the function module.


From OS level  


To Lock/Unlock Client from OS Level, Login as <SID>adm and execute the below commands.

TP LOCKSYS <SID> <client nr> pf=<usr/.../tp_domain.pfl>    (Lock Client)


TP UNLOCKSYS <SID> <client nr> pf=<usr/.../tp_domain.pfl>   (Unlock Client)

To Lock/Unlock entire system

If you want to lock entire system instead of each client then the commands as follows 


TP LOCKSYS <SID>  pf=<usr/.../tp_domain.pfl>    (Lock all Clients)


TP UNLOCKSYS <SID>  pf=<usr/.../tp_domain.pfl>   (Unlock all Clients)


Note: only DDIC/SAP* can login to any client when system is in Lock mode.





THANK YOU

No comments:

Post a Comment