cancel
Showing results for 
Search instead for 
Did you mean: 

'RP_GET_PERNR_FROM_USERID'

Former Member
0 Kudos

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.....

Accepted Solutions (0)

Answers (1)

Answers (1)

former_member206403
Active Contributor
0 Kudos

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.

Former Member
0 Kudos

Hi Adesh ,

Please Close the Questions after you got it cleared. Like Answered.

Regards

Ramesh