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

'RP_GET_PERNR_FROM_USERID'

DATA: USRID LIKE PA0105-USRID,

USRTY LIKE PA0105-USRTY.

USRID = PA0105-USRID.

USRTY = PA0105-USRTY.

*function module to the personnel number

CALL FUNCTION 'RP_GET_PERNR_FROM_USERID'

EXPORTING

BEGDA = sy-datum

ENDDA = sy-datum

USRID = USRID

USRTY = USRTY

IMPORTING

USR_PERNR = WA_PERNR

  • EXCEPTIONS

  • RETCD = 1

  • OTHERS = 2

.

IF SY-SUBRC <> 0.

  • MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO

  • WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.

ENDIF.

WHEN THE CODE IS RUN IT GIVES RUNTIME ERROR AND SAYS RET CODE (RETC) IS.....

Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • Posted on Aug 13, 2008 at 06:33 AM

    hi

    i think you have posted the question again,

    when you pass dates to the function module , check your date format , the function module should work.

    Check the preivous post i have mentioned the date format.

    Regards

    Sameer.

    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.