2007 May 10 12:46 PM
Hi all,
I've employee name and i've to get his PERNR.
But the name that i've is not either VORNA,NACHN.it is a combination of these two.this name is actually the Appraisee name that i'm getting from FM "HRHAP_DOCUMENT_GET_LIST_XXL'.It is of char 40.
I've use these Appraisee names and get pernrs.
When i'm trying to see this in PA0002 it is not fetching correct pernr.
can anyone send me sample code?
Thanks&Regards,
Satya
Hi all,
I've employee name and i've to get his PERNR.
But the name that i've is not either VORNA,NACHN.it is a combination of these two.this name is actually the Appraisee name that i'm getting from FM "HRHAP_DOCUMENT_GET_LIST_XXL'.It is of char 40.
I've use these Appraisee names and get pernrs.
When i'm trying to see this in PA0002 it is not fetching correct pernr.
can anyone send me sample code?
Thanks&Regards,
Satya
2007 May 10 2:14 PM
data: w_pernr type pernr_d.
select pernr into w_pernr up to 1 rows
from pa0001
where ename = p_ename "Appraisee Name
and endda ge sy-datum
and begda le sy-datum.
endselect.
if sy-subrc eq 0.
w_pernr will have the APpraisee pers no
endif.
~Suresh
2007 May 10 2:30 PM
You should not really use select for infotype data you should use ldb pnpce and provide from last.
I agree with Anji, if you can avoid using name and have got user id available then retrieving from it0105 is the best option.
2007 May 10 2:24 PM
Hi
You might be getting the Userid/name from the function module
pass that field to <b>USRID</b> of the Infotype <b>PA0105</b> and get the PERNR field from it.
Reward points if useful
Regards
Anji
| User | Count |
|---|---|
| 4 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |