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: 

if i give email id want to get the corresponding user id for that email

Former Member
0 Kudos

Hi,

My requirement is there any function module for getting  userid from email address.

there is fm BUA_GET_ADDRESS_FROM_EMAIL is used to get email address if we give used id. for me its reverse process.

Regards,

Gopi

1 ACCEPTED SOLUTION

former_member183012
Active Contributor
0 Kudos

Hi Gopi,

Can you please check this FM UBC_USER_GET_BY_EMAIL.

It will work.Please check.

Regards,

Ganesh Bothe

12 REPLIES 12

former_member187748
Active Contributor
0 Kudos

Hi Gopi,

have you used,

BAPI_USER_GET_DETAILS

otherwise you can also, do as shown below

you pass the email Id into table ADR6, from where

you will  get the addressnumber(ADDRNUMBER) and person number (PERSNUMBER).

then pass the address number (ADDRNUMBER) and person number  (PERSNUMBER) into table  USR21  

where you will get  User Name - (BNAME)

0 Kudos

hi sanjeev,

thanks for your reply. But my requirement is if i give email address i want to get user name.i want email address as export parameter. i dont need table and all.. i need only function module. can you suggest some other fm.

Regards,

gopi

0 Kudos

Hi Gopi,

as far as i know, there is no such FM which fits your criteria, please do as i have sujjested in my previous post, you will get your result easily, its not a tough task.

0 Kudos

Hi sanjeev,

I think FM prsent please check my reply.

Regards,

Ganesh Bothe

sachin_yadav3
Active Participant
0 Kudos

Hi Gopi,

I dont think their is any FM. Please use ADR6 table.

Regards

Sachin

0 Kudos

hi sachin,

Thanks for your reply. But i need FM only. there is FM is available. but difficult to find.

Regards,

gopi

0 Kudos

Hi Gopi

I think you should do as mentioned in earlier post. No FM exist for such as far as my knowledge is concerned. You can make one if you want.

Nabheet

0 Kudos

hi nabheet,

i didnt mentioned in any post regarding this .. may be some other gopi is there i think so.

Regards,

gopi

former_member183012
Active Contributor
0 Kudos

Hi Gopi,

Can you please check this FM UBC_USER_GET_BY_EMAIL.

It will work.Please check.

Regards,

Ganesh Bothe

0 Kudos

Perfect Ganesh..:) i did not know.. Please use the same


0 Kudos

hi ganesh,

thanks for your reply. ths FM is working in ecc perfectly. But i am working in sap GRC  server. In that this function module is not available. Can you suggest some other function module which works in grc????

Regards,

gopi

0 Kudos

Hi gopi,

Not sure about another FM..but you can check in your system with tcode se37 put *get*email* and f4.you get some FM.please try this.

Regards,

Ganesh Bothe