SAP Message 1P161 - Payment item with external reference number &1 is already updated

Diagnosis
It emerged that a payment item already exists with the specified
reference number from payment transactions.