Tuesday, 29 January 2013

Report to delete Org units and employees (Central Persons) in SAP CRM

Here is a quick tip to delete employees and org units from SAP CRM org structure along with the relationships.

When we delete an org unit for example from the org structure,it will delete the org unit but the relationships still exist.

Similarly in an unfortunate situation to delete employees downloaded from ECC, in the CRM system, we can adopt BUPA_DEL technique to delete the BP's. However, the underlying entries in the HRP* tables will not get deleted.

In both the above cases, it is recommended to use RHRHDL00 report.Object type in 1st case will be O and in the second case, it will be CP. Make sure that in the case of deleting employees, object id will be the personal number of the employee and not the BP number of the employee.

Following this deletes Org Units / Employees along with its relationships. However, we may also need to use BUPA_DEL report to delete associated Business Partners from BUT* tables.

1 comment: