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

Lock/unlock a user

Former Member
0 Likes
1,078

Hello everyone!!!

I've another strange requirement. Does anyone have any suggestions on how to lock and unlock a set of users?.

Any FM or sample coding would be appreciated!!

Thanks!

-Mahesh

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
999

Hi Mahesh,

U can use the BAPIs or FMs ENQUEUE_E_USR04 and DEQUEUE_E_USR04.

First lock the user, process the user info / update , then unlock the userid.

Regards,

Raj

Hello everyone!!!

I've another strange requirement. Does anyone have any suggestions on how to lock and unlock a set of users?.

Any FM or sample coding would be appreciated!!

Thanks!

-Mahesh

6 REPLIES 6
Read only

Former Member
0 Likes
999

Hi

Try these FMs...

BAPI_USER_LOCK Lock User

BAPI_USER_UNLOCK Unlock User

SUSR_BAPI_USER_LOCK SUSR_BAPI_USER_UNLOCK

Regards,

Raj

Read only

0 Likes
999

Hi...thanks for the post...

Raj...each of these BAPI FMs do both locking and unlocking...are these special FMs when BAPIs are used to update master data...

my requirement is to lock the user before a certain cycle of jobs begin and unlock the same user after all the jobs are done. Will these FMs solve the purpose??

i also came across these FMs ENQUEUE_E_USR04 and DEQUEUE_E_USR04. Can these be used as well??

Please let me know!!

Thanks again!

Read only

Former Member
0 Likes
999

use transaction SU10

Read only

0 Likes
999

Hi Chandrasekhar...i'm aware it can be dont thru SU10 but i need to do it in ABAP without doing a recording of the SU10 transaction!

Thanks!

Read only

Former Member
0 Likes
1,000

Hi Mahesh,

U can use the BAPIs or FMs ENQUEUE_E_USR04 and DEQUEUE_E_USR04.

First lock the user, process the user info / update , then unlock the userid.

Regards,

Raj

Read only

0 Likes
999

Thanks!