When you send money to your account with the wrong beneficiary details, note that this amount will be blocked in the bank. The amount will normally be credited back to your account after two weeks.
In such cases, must contact the issuing bank for a refund of the amount sent.
As soon as you receive the amount, you can send it to your account with the correct data required.