My assumption is that your payment didn't actually go through and the invoice is not valid anymore.
Original posting
Invoice
Credit vendor A)
Debit expense
Payment
Debit vendor (clear against A)
Credit Bank account (bank clearing)
Steps to erase the effect of payment and invoice.
1) Use FBRA (REVERSE and RESET) to process the payment doc, payment will be reversed and the invoice will be open again.
2) Then you proceed to reverse the invoice. That's settled already.
ONLY if the invoice is a logistics invoice, the reversal will generate a credit note and you have to clear them by yourself (normally there will be background job to handle this).