 SAP SE on Thursday posted higher revenue for the second quarter as its cloud business continued to grow, but the war in Ukraine harmed operating profit, prompting the German business-software giant to lower its forecast for the year. 