Mass change of Customer/vendor code

Is there any problem to change the vendor, customer or supplier codes inside the database or will it result in an inconsistent state? I’m asking because it isn’t feasible to do that inside the GUI for a lot of entries.