Hi,
Recently I had done enhancement for MIRO to check the tax code using the below reference document. I implemented the badi MRM_HEADER_CHECK to issue error message and to stop saving and futher processing.
Add a custom messae in the message log box of MIRO transaction .
Regards,
Praveen.