cancel
Showing results for 
Search instead for 
Did you mean: 
Subscribe

Hi,

I'm using BAPI_USER_CHANGE for reseting a user's pass.

The problem with this function is that it sets an initial pass => in the next logon the user will be prompted to change it.

Is there a way to change this behavior?

If not, do I have any other BAPI alternative?

tx a lot,

s.

0 Likes
View Entire Topic
Former Member
0 Likes

Hi,

Can you please explain How to reset password by using "BAPI_USER_CHANGE" function module....!

Thanks in Advance.

Former Member
0 Likes

Hi,

If someone ever needs this info:

DATA      lt_return         TYPE                   bapiret2 OCCURS 1.

CALL FUNCTION 'BAPI_USER_CHANGE'

               EXPORTING

                 username  = 'USERXYZ'

                 password  = 'newpassword123'

                 passwordx = 'X'

               TABLES

                 return    = lt_return.


This sets the password for USERXYZ to newpassword123. However, you should implement several checks like: May the user reset/change his password? Is the user locked, may we unlock him? etc., confirm your security manager for details.


Regards,


Simon Ging