Hi Basis Lady
Are the other 39 roles derived roles or do you have 40 single roles?
If 40 single you will need to maintain them to adjust the authorisations for each
We have transaction code ex: xxxxxx exists in around 40 roles, but we replace xxxxxx with another t-code ex:*******
As an aside - sounds like you might want to review your security design and role build to simplify unless they are derived roles.
Regards
Colleen