Map Staging records with Batch Exceptions Log

Hi All,

We have a staging table based on which we have written a Batch Job which is going to create and post Job Card, Picking List and Report as Finished Journals. We have a requirement here to map errored staging records (for which posting didnt happen because of less on hand quantity ) with their exception details so that user need not go to Batch Job History and find the Exception details. With word mapping i mean to say is to show the error in attachment with respective staging records. Please help me on this.