SAP SE claimed the title of Europe’s most valuable public company, replacing Danish weight-loss drug maker Novo Nordisk A/S.