Need to automatically discard the commands if validation fails

Hi all ,

when ever in trasaction, if we have validation call point , if validation fails … we have to manually discard the entered configurations by doing "end and no " , is there a way if validation fails we can automatically discard entered configs …
as well

what is the difference between validation logic in callpoint callback and validation call point as i can do validation in callpoint callback itself and discard ?