Application Development 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: 

Function Module to set a user's password from "set by admin" to "productiv"

daniel_humberg
Contributor
0 Kudos

I have a couple of users (100) for which the status of the password is "Initial password (set by administrator)". I would like to change this status to "productive" without logging in as all of these users manually. Is there a function module or something similar for this?

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Hi Daniel,

check out function module SUSR_USER_CHANGE_PASSWORD_RFC.

Cheers, harald

3 REPLIES 3

Former Member
0 Kudos

Hi Daniel,

check out function module SUSR_USER_CHANGE_PASSWORD_RFC.

Cheers, harald

0 Kudos

Hi Harald,

this allows me to change the password, but not the password status (i.e. initial, productive, etc.), right?

Regards, Daniel

0 Kudos

Hi Daniel,

I hope by "productive" means you want to avoid the initial popup asking to change the password when the user logs in for the first time.

You can use FM BAPI_USER_CHANGE . Here you can pass LTIME field in LOGONDATA importing structure. This will let the system know that User has logged on already. Please make sure you fill LOGONDATAX structure accordingly. You can change the password also using this FM if you have proper authorization to do so.

Hope this helps.

Regards,

R