SAN FRANCISCO (Reuters) - Top European software company SAP AG plans to buy Ariba Inc in a deal valuing the business and commerce network company at $4.3 billion, its latest maneuver against Oracle in the fast-growing Internet-based computing market.