German software giant SAP has become the most valuable European company, replacing Danish pharmaceutical major Novo Nordisk.