Dear Jelo,
If you identify the groups which should be delete, you can use program RKHIER01 in the LSMW.
If you won´t delete the groups, you should use program RGSOVL00 to check the ambiguity that your groups has and you can fix by it. Unfortunately, one-by-one.
Best regards,
Gabriel Coleti