Skip to Content
author's profile photo Former Member
Former Member

Get E-Mail Id from User Id

Hi,

I should get the Email id using User Id. I am checking infotype 105 to get the Email Id, but here I am able to get only for Employees for contract Employees data will not be there in infotype 105.

Is there any otherway to get Email Id for Contract Employees and Regular Employees.

Regards,

Ramu N.

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

3 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Jun 17, 2008 at 12:20 PM

    Hi,

    Email can be maitined in User Profile of the User. There you can get the Email for all the users if maitinaed.

    Use FM BAPI_USER_GET_DETAIL. .

    CALL FUNCTION 'BAPI_USER_GET_DETAIL'

    EXPORTING

    USERNAME = USERNAME

    IMPORTING

    REF_USER = REF_USER

    ALIAS = ALIAS

    SNC = SNC

    COMPANY = COMPANY

    ADDRESS = ADDRESS

    DEFAULTS = DEFAULTS

    LOGONDATA = LOGONDATA

    UCLASS = UCLASS

    LASTMODIFIED = LASTMODIFIED

    ISLOCKED = ISLOCKED

    TABLES

    GROUPS = GROUPS

    ADDPRT = ADDPRT

    ADDRFC = ADDRFC

    ADDX400 = ADDX400

    ADDRML = ADDRML

    ADDSSF = ADDSSF

    ADDURI = ADDURI

    ADDPAG = ADDPAG

    ADDCOMREM = ADDCOMREM

    ADDSMTP = ADDSMTP

    PARAMETER = PARAMETER

    PARAMETER1 = PARAMETER1

    PROFILES = PROFILES

    ACTIVITYGROUPS = ACTIVITYGROUPS

    RETURN = RETURN

    ADDTEL = ADDTEL

    ADDFAX = ADDFAX

    ADDTTX = ADDTTX

    ADDTLX = ADDTLX

    EXTIDHEAD = EXTIDHEAD

    EXTIDPART = EXTIDPART

    UCLASSSYS = UCLASSSYS

    SYSTEMS = SYSTEMS

    EXCEPTIONS

    OTHERS = 01.

    e_mail = address-e_mail.

    Hope I understood your question and the above would solve your issue.Please let me know if anything else is required.

    Regards,

    Sharath

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Jun 17, 2008 at 12:09 PM

    This is not an ABAP question but more of a functional question. You should check with your HR and System consultants to find out that how the email data is maintained in reality for contract and permanent employees.

    Yes, infotype 105 is use to store these type of entries but if contract employee is not there, you should ask your functional guys if this data is even saved in SAP and if yes, than can they show it on screen?

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Jun 17, 2008 at 12:13 PM

    hi,

    I think the details of contract employees r not stored in sap.

    if the client wants to store that details also then there is no other option but to do it in 105 infotype only.

    reward points if hlpful.

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.