06-19-2008 8:39 AM
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é
06-19-2008 8:46 AM
Mark,
you can even change by SU01 itself.
just look and see in Su01.
Amit.
06-19-2008 8:57 AM
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é
06-19-2008 8:59 AM
06-19-2008 9:06 AM
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.
06-19-2008 9:06 AM
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é
06-19-2008 9:14 AM