Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

ABAP-HR

0 Likes
554

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

3 REPLIES 3
Read only

suresh_datti
Active Contributor
0 Likes
511

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

Read only

0 Likes
511

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.

Read only

Former Member
0 Likes
511

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