on 05-31-2012 8:22 PM
Hi All,
I have an issue where an employee has multiple pernrs. E.g. employee is terminated and the same employee comes back as an consultant or Non-employee. therefor has 2 pernrs now.
Example : Pat McGrath has 2 pernrs, but different first name and common last names(Pat vs. Patricia).
I need to get all the duplicate pernrs in the system. I need to know logic I need to use in SE16 PA0002 or query to extract all the duplicate pernrs. Pls advise.
Thanks in advance,
Hi,
What about user name for both? Are you using infotype 0105, subtype 0001? If yes, in theory, both the records should have identical user name. Could you use that?
Hope this helps.
Donnie
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Multilple perns of the same employee are linked by central person. Therefore, you'll first need to query HRP1001 for otype 'P', plvar '01', rsign 'A', relat '209', objid = pernr to get central person number (in sobid).
You'll then need to query HRP1001 again like above criteria with the exception that instead of query objid, query sobid = central person found in first step. The return values in field objid are the perns of the same person.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Since it doesn't appear that you have any sort of unique key, ad hoc query may be your only option. I would pull all active employees with pernr, last name & first name. Do a sort on last name/first name and eliminate those that are not duplicate as you go along. Can't imagine that you would have that many employees with multiple PERNRs so it shouldn't be too bad of a manual process.
It means that when this person was re-hired, HR did not create the pernr as reference to old pernr, and therefore, these perns don't share the same CP.
For this, you could have an ABAP program to report list of pernrs having a count of more than 1 for the combination of last name (PA0002-NACHN) and date of birth (PA0002-GBDAT). However, this still doesn't warranty correct result (e.g. ee was consultant prior, and bogus date of birth can be used when he/she was consultant).
Unfortunately, I haven't found that ad hoc query gives you that sort of functionality. One option is to export your results to Excel. Once there, download the Excel add-in called ASAP Utilities (there is a trial version). It has some very powerful features that will make it fairly easy for you to sort, delete lines that are not similar, etc. I know, not the ideal approach, but I am not sure what other options you have. Hope this helps!
Is SSN maintained whether an employee, consultant or non-employee?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
110 | |
12 | |
11 | |
6 | |
5 | |
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.