cancel
Showing results for 
Search instead for 
Did you mean: 

FM HR_FBN_GET_USER_EMAIL_ADDRESS dumps when there is no email address

varun_jain3
Active Participant
0 Kudos

I am using HR_FBN_GET_USER_EMAIL_ADDRESS to email address of users but this FM HR_FBN_GET_USER_EMAIL_ADDRESS dumps when email address is not maintained, normally test id sont have email address .

any another FM/API ?

Accepted Solutions (0)

Answers (4)

Answers (4)

raymond_giuseppi
Active Contributor

Which value did you provide for REACTION parameter and/or did you set some EXCEPTIONS for ERROR_MESSAGE. Else try BAPI_USER_GET_DETAIL, this one shouldn't triogger any dump.

varun_jain3
Active Participant
0 Kudos

Hi Volker,

Thanks but issue is not getting email , issue is it dumps when email id is not maintained .

former_member226519
Active Contributor
0 Kudos

but HR_READ_INFOTYPE wouldn't dump if there is no record found

mangesh_parihar
Explorer
0 Kudos

Hi,

Instead of using FM, you can find out email id from ADR6 and USR21 table.

data: bname type usr01-bname.    

select Single usr21~bname into bname
       from usr21
       inner join adr6
       on  usr21~addrnumber = adr6~addrnumber
       and usr21~persnumber = adr6~persnumber
       where adr6~smtp_addr = YOU@YOURCOMPANY.COM'.

write:/ bname.
varun_jain3
Active Participant
0 Kudos

Hi Mangesh,

SAP suggest that direct table should be avoided .

former_member226519
Active Contributor
0 Kudos

usually email address is stored in infotype 0105 subtype 0010; so you could use HR_READ_INFOTYPE instead