Skip to Content
0

FM HR_FBN_GET_USER_EMAIL_ADDRESS dumps when there is no email address

May 29, 2017 at 09:32 AM

78

avatar image

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 ?

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

4 Answers

Raymond Giuseppi
May 29, 2017 at 11:12 AM
1

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.

Share
10 |10000 characters needed characters left characters exceeded
Volker Binder May 29, 2017 at 09:40 AM
0

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

Share
10 |10000 characters needed characters left characters exceeded
Mangesh Parihar May 29, 2017 at 09:53 AM
0

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.
Show 1 Share
10 |10000 characters needed characters left characters exceeded

Hi Mangesh,

SAP suggest that direct table should be avoided .

0
Varun Jain May 29, 2017 at 09:54 AM
0

Hi Volker,

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

Show 1 Share
10 |10000 characters needed characters left characters exceeded

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

0