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

How to get System Login UserId

how to get login userid from the system for who already logged in into system,with the help of am getting the username but am not getting the userid,how to get userid can u share this answer for me.

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Dec 28, 2011 at 07:21 AM

    how are you getting the username....usually toget these SU03 we will use...sy-userid or sy-uname.....will be used...

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Dec 28, 2011 at 07:27 AM

    Ramana,

    There are so many ways to get user details based on sy_userid. So please let me know your scenario, how are you getting user name so that we will help exactly.

    FM To get the user details based on user id.

    *DATA IEE_TAB TYPE PERNR_US_TAB.
    *DATA WEE_TAB LIKE LINE OF IEE_TAB.
    *CALL FUNCTION 'HR_GET_EMPLOYEES_FROM_USER'
    *  EXPORTING
    *    USER                    = SY-UNAME
    **   BEGDA                   = SY-DATUM
    **   ENDDA                   = SY-DATUM
    **   IV_WITH_AUTHORITY       = 'X'
    *  TABLES
    *    EE_TAB                  = IEE_TAB
    *          .

    Regards

    Srinivas

    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.