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

FM to get Personel Number from USER ID

Hi,

Is there any FM to get Personel Number from the USER ID(sy-uname).

Thank you,

Ramu N.

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

4 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Oct 16, 2006 at 07:52 AM

    Hello,

    Below is the FM.

    HRWPC_AP_GET_EMPLOYEE_FOR_USER

    Thanks,

    Krishna

    Reward if helps

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Oct 16, 2006 at 07:46 AM

    Hi Ramu,

    You can find the user-id & Personnel Number in the table PA0105.

    select single PERNR from pa0105 into PERSONEELSNUMMER
    where usrid eq USER_ID
    and   endda eq '99991231'.

    hope this helps!

    best regards,

    Thangesh

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Oct 16, 2006 at 07:48 AM

    hi Ramu,

    Check PA0* tables for the same.

    Regards,

    Santosh

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Oct 16, 2006 at 07:56 AM

    Hi ramu,

    1. This mapping is stored in pa0105 table.

    2. Select PERNR from pa0105

    where subty = '0001'

    and USRID = sy-uname.

    regards,

    amit m.

    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.