Hi,
I think, in the tables batches are stored without leading 0 is that correct? If so, adding leading 0 will not help as per my experience.
In the second screen shot, the column you have displayed is of batches or invoices?
If you enter without leading zero, if you are getting invalid data as well, please check the documents again, somewhere there has to be a link or it can be a data consistency
Regards
Abhi