Hi Abhinav,
As per above scenario have you delete any with holding tax code from vendor master if yes then run the program : RFWT0010 this will remove an inconsistency error at time of payment posting to the vendor
in case of Entry what u had done in miro which is already posting with w/h tax code 51 so you have to reverse the Miro entry through MR8M and book a fresh invoice with same material document with tax code 58.
Hope this will solve your error
Regards
Trinath Gujari