Programme SAP REHSH_C_PERSON_ID_CONDENSE - EHS: Condense PERSON_ID in T7EHS00_MAPPERNR and Dependents

Purpose
The Occupational Health (EHS-HEA) component works with internalpersonnel numbers, meaning that each person ID processed is converted toan internal personnel number (INTPERNR). The conversion is stored in thetable T7EHS00_MAPPERNR (Conversion Table: BP Number/HR Pers.No. toInternal Number). It is possible here that a number of internalpersonnel numbers can exist for one person ID.
With this report program you can consolidate different internalpersonnel numbers that refer to the same person ID as one singleinternal personnel number. All dependent tables are then updatedaccordingly.

Features
The internal personnel numbers are consolidated across all clients, thatis, for all clients of the system on which the report program isrun.
If a number of internal personnel numbers exist for one person ID in thetable T7EHS00_MAPPERNR, the program retains the lowest internalpersonnel number. All higher numbers are deleted once any existing tableentries were converted to the number that is to be retained.
The report program can be run more than once, for example, if errorsoccurred.

Selection
You can run the program directly or in test mode.
The test mode does not make any data changes. You can use it to get anoverview of the changes that would result if you run the programdirectly.

Output
A log is created with which you can keep track of the table changes.

Example
For the person ID 0000009133, the table T7EHS00_MAPPERNR contains theinternal personnel numbers 00000121 and 00000203.
As "00000121" is the lowest internal personnel number, it stays in thetable T7EHS00_MAPPERNR. "00000203" is replaced in the dependent tablesby "00000121".
"00000203" is then no longer required and is deleted in the tableT7EHS00_MAPPERNR.

1262182Correction for duplicate personnel numbers in IHS
1263522Restrictions cannot be edited
1015742Runtime behavior of report REHSH_C_PERSON_ID_CONDENSE
644863Double assignment from internal to external personnel number