Skip to Content

FM HR_FBN_GET_USER_EMAIL_ADDRESS dumps when there is no email address

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 ?

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

4 Answers

  • May 29, 2017 at 11:12 AM

    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.

    Add comment
    10|10000 characters needed characters exceeded

  • May 29, 2017 at 09:40 AM

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

    Add comment
    10|10000 characters needed characters exceeded

  • May 29, 2017 at 09:53 AM

    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.
    Add comment
    10|10000 characters needed characters exceeded

  • May 29, 2017 at 09:54 AM

    Hi Volker,

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

    Add comment
    10|10000 characters needed characters exceeded