BERLIN (Reuters) -- Schalke 04 midfielder Ivan Rakitic has agreed to join Spanish side Sevilla with Ghanaian Anthony Annan set to replace him, the Bundesliga club said on Saturday.

Croatia international Rakitic, whose contract ran out at the end of the season, joined Schalke in 2007 from Swiss club Basel, playing 131 games in all competitions and scoring 16 goals in total.

The German club did not give any details on the length of his new contract in Spain or the transfer fee.

Schalke have found a replacement for Rakitic, with 24-year-old Ghana international Annan set to join them from Norway's Rosenborg.

The Germans have yet to confirm the transfer but the Norwegian outfit said on their website Annan had passed his medical at Schalke.

"Anthony Annan is now officially ready for Schalke after passing the medical test," Rosenborg said on their website www.rbk.no.

SI Apps
We've Got Apps Too
Get expert analysis, unrivaled access, and the award-winning storytelling only SI can provide - from Peter King, Tom Verducci, Lee Jenkins, Seth Davis, and more - delivered straight to you, along with up-to-the-minute news and live scores.