cancel
Showing results for 
Search instead for 
Did you mean: 

'RP_GET_PERNR_FROM_USERID'

Former Member
0 Kudos

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

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

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.

Former Member
0 Kudos

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

former_member206403
Active Contributor
0 Kudos

hi

check the date format

BEGDA 2008/01/01

ENDDA 9999/31/12

USRID <userid>

USRTY

regards

sameer