cancel
Showing results for 
Search instead for 
Did you mean: 

Is it possible to reset password for any user using abap program

Former Member
0 Kudos

Hi friends,

Is it possible to reset password for any user using abap program by specifying client number and user id. in selection screen.

if any code for that to reset password please mail me.

Thanks & Regards,

Yogesh

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

Thanks

Former Member
0 Kudos

Hello Yogesh,

Yes you can reset the password for any body using ABAP Code. But for that you really don't need any client number.

If this process is on regular basis, then recommended is to use BAPI for changing the user details Otherwise BDC also works fine.

=> Function Module - BAPI_USER_CHANGE

Call this in the program for resetting the password.

=> CALL TRANSACTION 'SU01' USING InternalTable

This will be executed in the BDC of SU01 transaction recording. Use the Password Change button in the application toolbar of transaction while recording.

Hope this helps.

PS If the answer solves your query, plz close the thread by marking it solved and rewarding each reply.

Regards

Former Member
0 Kudos

Hi,

try function module BAPI_USER_CHANGE:

call function 'BAPI_USER_CHANGE'

exporting

username = pw-bname

password = pw_struc

passwordx = pw_strucx

tables

return = return_dummy.

Regards,

Sebastian