‎2008 Sep 11 7:09 AM
hi all,
I have created one program for unlocking sapusers.
I want one functionality in that.
when user get unlocked, password of that user reset to initial password i.e. initpass or any other. which i can give.
is there any function module to do this for reseting password for sapuser.
thanks in advance.
waiting for positive reply.
thanks
vinod.
‎2008 Sep 11 7:33 AM
Hi !
The the FM
S_WAP_USER_PASSWORD_RESET
... or one of the FMs it is using.
One of them should work...
Regards
Rainer
‎2008 Sep 11 8:04 AM
Vinod,
Try using this functional module BAPI_USER_CHANGE
data : PASSWORD type XUNCODE,
c_x type BAPIPWDX value 'X'.
DATA : L_BAPIRET2 TYPE STANDARD TABLE OF BAPIRET2 WITH HEADER LINE.
CALL FUNCTION 'BAPI_USER_CHANGE'
EXPORTING
USERNAME = Sapuser
PASSWORD = PASSWORD
PASSWORDX = C_X
TABLES
RETURN = L_BAPIRET2.