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: 

How to update User-Email in SU01 with an abap program ?

Former Member
0 Kudos

Hi

i am creating an automatic abap program in order to update the employee email in su01.

I tried using Bapi_User_Change in order to update it - i entered data in the table ADDSMTP in the tab tables of the bapi but i didnt sucesseded.

Does anyone know a different bapi/function ( i dont want to use batch input )  ?

Thanks

Ami

1 ACCEPTED SOLUTION

nabheetscn
Active Contributor
0 Kudos

You have to fill ADDRESS and ADDRESSX.

4 REPLIES 4

Former Member
0 Kudos

Hi,

Use the BAPI to change the attributes. check the documentation as well for more information.

BAPI_USER_CHANGE

Pass User Name:

go to Address structure enter the E_MAIL =  'XXXX.COM'

go to ADDRES                            E_MAIL                     U

nabheetscn
Active Contributor
0 Kudos

You have to fill ADDRESS and ADDRESSX.

Former Member
0 Kudos

Hi Ami,

Can you try to pass the email address in the ADDRESS field and mark the same field in ADDRESSX field as 'X'.

Regards,

Santanu.

koolspy_ultimate
Active Contributor
0 Kudos

Hi,

    Check for email filed in ADDRESS structure of bapi  BAPI_USER_CHANGE.

Regards,

Madhumahesh.