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: 

Email ID of an User

Former Member
0 Kudos

Hi,

How to find the Email id of an User.

I have user name in USR02-BNAME. I want to find the Email ID related to

that User-ID. From which table I can get these details?

is there any function module to get these details?

Please help me how to procede to find this.

Thanks,

Sreenivas

1 ACCEPTED SOLUTION

former_member194669
Active Contributor
0 Kudos

Hi,

Try to use


    call function 'BAPI_USER_GET_DETAIL'
      exporting
        username = i_user-bapibname
      importing
        address  = wa_address
      tables
        return   = i_return.
    move wa_address-e_mail to wa_recipients-recipient.

2 REPLIES 2

former_member194669
Active Contributor
0 Kudos

Hi,

Try to use


    call function 'BAPI_USER_GET_DETAIL'
      exporting
        username = i_user-bapibname
      importing
        address  = wa_address
      tables
        return   = i_return.
    move wa_address-e_mail to wa_recipients-recipient.

Former Member
0 Kudos

Hi,

Get ADDRNUMBER & PERSNUMBER from USR21.

put those values in ADR6 Table you will get smtp_addr(email id).

Regards,

Satish