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

Email id from SU01 tcode

Former Member
0 Likes
5,629

Hi Guys,

I am trying to get email id in SU01 tcode. I don't find it in USR* tables.

Any FM available to get it.

Thanks

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
3,394

Hi,

Please make use of USR21 and ADR6 table.

Regards,

Ankur Parab

11 REPLIES 11
Read only

Former Member
0 Likes
3,394

Hi,

try using FM

HR_FBN_GET_USER_EMAIL_ADDRESS

EFG_GEN_GET_USER_EMAIL

UMB_SERVICE_USER_EMAIL

best of luck!!!

thanks

Ravi

Read only

Former Member
0 Likes
3,394

Hi,

Try this FM: UMB_SERVICE_USER_EMAIL

George

Read only

arpit_shah
Contributor
0 Likes
3,394

Hi,

Pl check ADR6 table.

Regards,

Arpit

Read only

GauthamV
Active Contributor
0 Likes
3,394

Plz SEARCH in SCN before posting.

Read only

UmaArjunan
Active Participant
0 Likes
3,394

1. Try this function module : BAPI_USER_GET_DETAIL

2. Another way by using sap tables :

DATA: lv_smtp_addr TYPE adr6-smtp_addr.

SELECT SINGLE a~smtp_addr

INTO lv_smtp_addr

FROM adr6 AS a

INNER JOIN usr21 AS b

ON apersnumber = bpersnumber

AND aaddrnumber = baddrnumber

WHERE b~bname = va_username.

va_username - name of the user for which the email address retreived and stored in the variable

lv_smpt_addr.

Thanks,

Uma

Read only

Former Member
0 Likes
3,395

Hi,

Please make use of USR21 and ADR6 table.

Regards,

Ankur Parab

Read only

former_member585060
Active Contributor
0 Likes
3,394

Hi,

Instead of FM use below 2 select statements to get the Email address

SELECT SINGLE addrnumber persnumber FROM usr21 INTO (lv_addrnumber, lv_persnumber)
                                                              WHERE bname = lv_user.

SELECT SINGLE smtp_addr FROM adr6 INTO lv_smtp_addr
                                                  WHERE addrnumber = lv_addrnumber
                                                   AND persnumber      = lv_persnumber.

Regards

Bala Krishna

Read only

Former Member
0 Likes
3,394

Solved

Read only

Former Member
0 Likes
3,394

Hi

if you want to see only Email ID then go to ADR6 but you cant see user ID here.

to see both user ID and Email ID then join two tables called USR21 and ADR6 by uisng SQVI tcode..

I hope this will help you.

Thanks

Ravi

Read only

0 Likes
3,394

Hi Ravi,

This is good information.  I need to use a tool like Tivoli, (Political), to monitor a few critical ID's and if they get locked then send an email to our BASIS and Security team.  Is the "Change Documents for Users" in ADR6?  Basically I need to query the table and if the status is locked for a particular ID, then send out the email.

Cheers,

Dan Mead

Read only

0 Likes
3,394

Old post I know, but thanks, SQVI really helped me out.