The Spanish 14-times grand slam champion told reporters after losing to Croatian teenager Borna Coric at the Swiss Indoors in Basel on Friday that he would have surgery on November 3.
"I'm not going to play Paris or London, I'm not competitive enough," said the 28-year-old who has been treating his appendicitis with antibiotics.
The eight-man London season-ender begins on November 9.