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

User Unlock Problem

Former Member
0 Likes
491

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.

2 REPLIES 2
Read only

Former Member
0 Likes
433

Hi !

The the FM

S_WAP_USER_PASSWORD_RESET

... or one of the FMs it is using.

One of them should work...

Regards

Rainer

Read only

Former Member
0 Likes
433

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.