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: 

Change eMail of existing SU01 User

Former Member
0 Kudos
673

Hi all,

i need to know how to change eMail address of an SU01 User. I've looked at class cl_sapuser_bcs and

function module bapi_user_change, but i can't find a way to change it. So what do i have to do?

Regards

Mark-André

6 REPLIES 6

former_member181995
Active Contributor
0 Kudos
104

Mark,

you can even change by SU01 itself.

just look and see in Su01.

Amit.

0 Kudos
104

Hi Amit,

that's true, but i need to change it with ABAP Code.

In my application i want to send eMails. Every employee has an eMail address stored in Infotype 0105 Subtype 0010 and every employee has an SU01 User. I want to send Mails with class CL_BCS. This class needs an eMail address of a SU01 User. So i want to write all employee eMail addresses to their existing SU01 Users.

Regards

Mark-André

0 Kudos
104

Use FM HR_INFOTYPE_OPERATION to change the

email address

0 Kudos
104

hi check this..

do like this..

loop at it_pa0105 .

if it_pa0105-subty = '0010'.

it_update-usrid_long = it_pa0105-usrid_long .

append it_update.

endif.

endloop.

update pa0105 set usrid_long = it_update-usrid_long.

0 Kudos
104

Hi Srinivas,

the eMail addresses are already stored in that Infotype. I want to copy that eMail addresses to SU01 User, which are linked to each employee by IT0105 Subtype 1.

Regards

Mark-André

0 Kudos
104

U need to write a BDC program to update Email address

in SU01 ..