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

'RP_GET_PERNR_FROM_USERID'

CALL FUNCTION 'RP_GET_PERNR_FROM_USERID'

EXPORTING

BEGDA = sy-datum

ENDDA = sy-datum

USRID = sy-uname

  • USRTY = USTY

IMPORTING

USR_PERNR = WA_PERNR

  • EXCEPTIONS

  • RETCD = 1

  • OTHERS = 2

.

when I am using this in my code runtime error is coming...

whats wrong with the code

Add a comment
10|10000 characters needed characters exceeded

Related questions

3 Answers

  • Posted on Aug 12, 2008 at 11:51 AM

    hi

    check the date format

    BEGDA 2008/01/01

    ENDDA 9999/31/12

    USRID <userid>

    USRTY

    regards

    sameer

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Aug 12, 2008 at 11:54 AM

    Hi Adesh,

    Pass USRID which is the id maintained in 105 inotype.

    then you will get the result.

    it will be in format P000001234 ( For Example only)

    and also Date format should be 12.08.2008

    CALL FUNCTION 'RP_GET_PERNR_FROM_USERID'

    EXPORTING

    BEGDA = sy-datum

    ENDDA = sy-datum

    USRID = P000001234

    USRTY = USTY

    IMPORTING

    USR_PERNR = WA_PERNR

    EXCEPTIONS

    RETCD = 1

    OTHERS = 2

    Regards

    Ramesh

    Edited by: RAMESH on Aug 12, 2008 5:25 PM

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Aug 12, 2008 at 11:58 AM

    Hi Adesh,

    Kindly check whether infotype 0105 subtype 0001 is for system user name or not. Please check with the user type parameter, pass the correct subtype of 0105.

    you are passing correct parameters but I didnt understand why r u getting dump? Can you post the error so that I can tell you where it is going wrong.

    Thanks,

    V.Nagaraju.

    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.