We are in SRM 7.0 and using a Z program to create/change HR users from R/3 to SRM through an input file. Because of an incorrect update method used for changing location of users, around 160 users became inconsistent. When i check the user consistency status through USERS_GEN, i get the following error message for the users "Employee relationship between BP XXXX and BP(Org) XXXX missing".
This inconsistency is because the users are moved to the new location in Org.Structure but the relation between BP id of central person and the new Org.unit is not created in BUT050 & its associated tables and the relationship between BP id of central person and old Org.unit exists still.
We were able to fix the inconsistency by re-assigning an inconsistent user manually to the new location in Org.Structure. But we are looking for a solution to fix these inconsistencies in a single go for all and without manual activities.
Appreciate your valuable suggestions and inputs.