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

bapi_user_change

Former Member
0 Likes
793

hai ferinds i am using the bap_user_get_detail to get the details of the user , but i want to change soem fields of this that is email id and name , so i am using bapi_user_change to change the details of user and i am entering the new email id in structure addrsmtp it is giving message that it is changing but when i am gettign again the detials it is not fetching

can any one answer my query

thanx in advance

afzal

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
743

Hi

What are the statements u have passed for it

regards

Pavan

5 REPLIES 5
Read only

Former Member
0 Likes
744

Hi

What are the statements u have passed for it

regards

Pavan

Read only

0 Likes
743

i have passed user name and email address only

Read only

0 Likes
743

Hi

Yes you can reset the password for any body using ABAP Code. But for that you really don't need any client number.

If this process is on regular basis, then recommended is to use BAPI for changing the user details Otherwise BDC also works fine.

=> Function Module - BAPI_USER_CHANGE

Call this in the program for resetting the password.

call function 'BAPI_USER_CHANGE' 
exporting
username = pw-bname
password = pw_struc
passwordx = pw_strucx
tables
return = return_dummy.

=> CALL TRANSACTION 'SU01' USING InternalTable

This will be executed in the BDC of SU01 transaction recording. Use the Password Change button in the application toolbar of transaction while recording.

Reward all helpfull answers

Regards

Pavan

Read only

Former Member
0 Likes
743

Hi

use 'BAPI_USER_CHANGE' in this way

call function 'BAPI_USER_CHANGE'

exporting

username = pw-bname

password = pw_struc

passwordx = pw_strucx

tables

return = return_dummy.

Regards,

Reward points if helpful

Read only

0 Likes
743

hai azra the thing is that when i am sendiong email using abap program the sender name and email id is picked from default user , but the thing i want is that i want to change email id and detials each time when i am sending to different receivers that is where i am facing the problem if u can find solution reply me

bye

mohammad afzal