Bayern Munich will be without midfielder Javi Martinez for the next three weeks after he decided to undergo surgery on a troublesome groin injury.

The Spanish midfielder has been carrying the injury for several weeks and has now decided to go under the knife rather than continue with more conservative treatment.

Bayern are also without Mario Gotze, Bastian Schweinsteiger and Thiago Alcantara and could therefore be short of midfielders when they face Hannover after the international break.

"I don't have any problem for 20, 30 minutes, but then I start feeling pain again," said the 25-year-old after last Friday's UEFA Super Cup victory over Chelsea .

Bayern club doctors advised him to undergo an operation to eradicate the problem, even if it rules him out of Bayern's first Champions League fixture of the season against CSKA Moscow.

"I'm on my way to the clinic for an operation," Martinez wrote on Twitter on Tuesday. "I'm sure it will all go well." Later, Martinez provided a snapshot on his account claiming that the procedure went well and according to plan:

Ya ha finalizado la operación todo ha salido muy bien / The surgery has been finishing everything has gone very well pic.twitter.com/enHkzbOlac

-- Javi Martínez (@Javi8martinez) September 3, 2013