cancel
Showing results for 
Search instead for 
Did you mean: 

Creating user and get the password

Former Member
0 Kudos

Hi all,

I want to create an r/3 user through some coding. I dont want to use transaction SU01. My problem is that I am able to create the user using the BAPIs but its not taking the given password. It's taking logon details as input but I dont get what to pass in that structure. And if it's generating some default password then it should return some value for password.

Can anyone tell me how can i create a user with default password or given password without using any tcode.

Thanks in Advance!

Accepted Solutions (0)

Answers (4)

Answers (4)

Former Member
0 Kudos

BAPI_USER_CHANGE worked fine.

Former Member
0 Kudos

Hi Shailly

Please check the following link:

http://www.guidancetech.com/people/holland/sap/abap/yusermod.htm

I hope it helps

Regards

Chen

Former Member
0 Kudos

Hi,

You can use another BADI to change the password again. Check the below code,you may get an idea


 CALL FUNCTION 'BAPI_USER_CHANGE'
                EXPORTING
                  username   = userid
                  password   = new_password
                  passwordx  = 'X'.

Hope this helps.

Regards,

Gowrinadh

JPReyes
Active Contributor
0 Kudos

Wonder what do you need this for?...

For example CUA uses idocs... As far as i remember you can use SCAT but that will be a transactiom

Regards

Juan

Former Member
0 Kudos

We are creating a user management application. In that I have to create a user and send a mail to the user with generated password.