Updated from 12:13 p.m. EDT

After a string of nothing but bad news for software investors, SAP ( SAP) said Friday the company is doing better than expected as it wraps up the first half of the year.

In recent trading, shares of the German software giant were up $1.75, or 4.6%, to $39.41.

Operating income excluding stock-based compensation and acquisition-related charges will range from 420 million to 430 million euros, the company said. Analysts polled by Reuters had forecast, on average, operating income of 426 million euros.

The company also said it expects second-quarter software revenue of around 495 million euros, representing an increase of 15% compared to the second quarter 2003. That's slightly better than consensus forecasts of around 484 million euros, according to Reuters.

SAP converts currency values by using a weighted average of currencies in which it does business, so it wasn't possible to quickly give an accurate conversion to dollars.

SAP gives annual, not quarterly, guidance but the figures for the second quarter show the company is "on track at the very least, and possibly in a position to raise guidance for the year when it reports," said Jamie Friedman, who follows the company for Fulcrum Global Partners. Lowering guidance "seems very unlikely."

Although the upside doesn't appear to be very large, the preannouncement was a stark contrast to the recent parade of downside surprises in the software sector from companies such as Veritas ( VRTS), PeopleSoft ( PSFT), Siebel Systems ( SEBL), and BMC ( BMC).

"Given the series of preannouncements in the industry during the past week, SAP decided to release this preliminary information," the company said in a prepared statement.

Most of the companies that warned said closing sales was unexpectedly difficult during the crucial last few weeks of the quarter, but "SAP fared better due to continued market share gains, competitive displacements and some early wins of elephant-sized deals," Prudential analyst Brent Thill said in a note to clients published shortly after the company's announcement. (Prudential does not have a current banking relationship with SAP.)

If you liked this article you might like

Microsoft Vista Outpaces Predecessor

Microsoft Vista Outpaces Predecessor

Microsoft Gets 20-Day European Reprieve

Microsoft Gets 20-Day European Reprieve

SAP Plans Oracle Fight

SAP Plans Oracle Fight

TechWeek: Pop Goes the Equity Bubble

TechWeek: Pop Goes the Equity Bubble

Microsoft Forms Ad Search Unit

Microsoft Forms Ad Search Unit