Mr Scharping is believed to have made the comments, which were first attributed to a "senior German official", at an off-the-record briefing in Brussels.
But the "Financial Times Deutschland" newspaper revealed the source, after the German Government distanced itself from the remarks and US Defence Secretary Donald Rumsfeld dismissed them as "nonsense".
"The German was wrong. He didn't mean to be, and he is probably sorry, but he was flat wrong," Mr Rumsfeld told a Pentagon news conference without mentioning Mr Scharping's name.
The German Foreign Ministry described the comments about Somalia as "very peculiar".
"There is no planning for Somalia, the Americans have said that quite clearly," spokesman Andreas Michaelis said.
Mr Scharping said in the remarks attributed to him: "Anybody who rules out Somalia is a fool."
"It is not a question of 'if' but of 'how' and 'when'."
Concern over Somalia
The comments were first reported after Mr Rumsfeld had briefed Nato officials in Brussels on US plans earlier this week.
Despite Mr Rumsfeld's rebuttal, the US has expressed concern about Somalia.
Somalia is among the countries identified by US officials as harbouring al-Qaeda groups or other organisations linked in some way with Osama Bin Laden.
And General Richard Myers, Chairman of the US Joint Chiefs of Staff, has acknowledged that Somalia is a potential target for "diplomatic, law enforcement action or potentially military action."
The Bush administration had identified one Somali group, Al-Itihaad al-Islamiya, or Unity of Islam, as having links to al-Qaeda.
'Diplomatic exchanges'
There also have been repeated reports about the US gathering intelligence in Somalia.
The State Department in Washington on Wednesday confirmed that a US diplomat had travelled to the Somali capital Mogadishu for "continuing diplomatic exchanges".
US military officials earlier this month visited Baidoa, a Somali town controlled by armed groups opposed to the fledgling transitional government in power in Mogadishu.