on 08-12-2008 12:40 PM
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
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
hi
check the date format
BEGDA 2008/01/01
ENDDA 9999/31/12
USRID <userid>
USRTY
regards
sameer
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
99 | |
11 | |
11 | |
6 | |
6 | |
4 | |
4 | |
3 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.