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 to update user lock status

Former Member
0 Likes
5,305

Hello all,

Is there any BAPI to update the user lock status. USR02-UFLAG. The bapi BAPI_USER_CHANGE has options to update various fields but not the user flag.

Any pointer to this?

Regards,

Vikram.M

Hello all,

Is there any BAPI to update the user lock status. USR02-UFLAG. The bapi BAPI_USER_CHANGE has options to update various fields but not the user flag.

Any pointer to this?

Regards,

Vikram.M

5 REPLIES 5
Read only

Former Member
0 Likes
2,827

Welcome to SDN!!

CALL FUNCTION 'BAPI_USER_LOCK'

EXPORTING

USERNAME = USERID

TABLES

RETURN = TABLE_NAME.

BAPI_USER_LOCK -> User will be locked Globally in the Server,

SUSR_BAPI_USER_LOCK->Have an option to lock it either Globally or Locally

Read only

0 Likes
2,827

BAPI_USER_LOCK WORKS GOOD. But then I need to set the lock to a particular one (32). Use of the BAPI set the suer lock status to 64 and we do not have the option of chooseing the same.

Any inputs?

Read only

0 Likes
2,827

Hi Vikram,

Just go to BAPI_USER_LOCK

inside the FM u shall find another FM called SUSR_BAPI_USER_LOCK

double click on that FM and within the FM u shall find another FM BALW_BAPIRETURN_GET2

WITH PARAMETER number u need to change the source code through modification by clicking on the icon besides the change icon

change the Number Parameter to 64 .

try out.. let me know....

all the best...

Thanks

Ravi Aswani

Read only

Former Member
0 Likes
2,827

Hi,

try using BAPI

BAPI_USER_LOCK

BAPI_USER_UNLOCK

thanks

ravi

Read only

Former Member
0 Likes
2,827

Hi,

Check these FM's

SUSR_USER_LOCK_CHECKS

BAPI_USER_LOCK

Regards,

Jyothi CH.