Hi Gozde,
There is a work around for this in case you have less category of error messages.
Workaround -
Use 'Import' statements to populate error messages in exits and use 'Export' statements at other place to retrieve the errors from memory.
Ask if not clear.
BR.