cancel
Showing results for 
Search instead for 
Did you mean: 

How to change SAP users password using BAPI_USER_CHANGE function in c# .net?

Former Member
0 Kudos

Hi all,

I am very very new in SAP, infact that i am also not that much aware from the environment of SAP, but still i am stuck somewhere in my project and need the help of this community to sort out that issue.

Come to Question:-

We have connected SAP using WSDL webservice(by creating proxy client) with our C# application, using that we can access the various functions of SAP BAPI like BAPI_USER_GETLIST, BAPI_USER_GET_DETAILS, etc. and many more, So we need to implement a functionality to change SAP user password in our application. i also have googled this thing many time but i just got that we only can implement using BAPI_USER_CHANGE function only in ABAP, whether i need to implement in C#.

so i will be very thankfull for this community if i get any help from there to change SAP user password in c# .net

Accepted Solutions (0)

Answers (2)

Answers (2)

SimoneMilesi
Active Contributor
0 Kudos

robert.forster3 gave you the solution on ABAP side, while for the .NET one you have to choices:

RAF
Active Contributor
0 Kudos

Hi,

please have a look at the very helpful documentation

Best regards

Robert

Former Member
0 Kudos

Thanks Robert for your help,

We are using BAPI_USER_CHANGE function module to change user's password, we are passing 3 parameters i.e. Username(username of that user whose password need to be change), Password(new password) and Passwordx (not sure what i need to pass there, or should i leave it empty?), also on other post someone was suggested to me to use productive_password in our scenario.

Please clear me another thing also that do we need to use BAPI_TRANSACTION_COMMIT function module, to commit the changes after passing the parameters to BAPI_USER_CHANGE function, or it directly change user's password in SAP?