Hi Soumya,
To get a report on error messages, you have to check two tables. First is SXMSPMAST. You can get message ids of error messages. There is a status field. every status has a unique number(3 is successfully processed, 11 is no receiver found, i dont remember, but 14 is the error message.)
your report should fetch message ids from this table. Then there is another table that contains info about sender/ receiver based on message id. I dont remember the exact table name, but you can easily find this information online.
We used a similar approach to get sender/receiver details of messages stuck in SMQ2.
Regards,
Gavaksh Saxena