How do I edit my transaction if it is rejected with error?

How do I edit my transaction if it is rejected with error?

Please use 'copy' to create a new AHR record, enter the corrected data and resubmit if you encounter rejection or error. A rejected transaction means that it has never reached NACCS and it must be sent again as an AHR.