SMA Solar Technology AG (ETR:S92) turned to a loss in the first half of 2022 as persistent supply difficulties for electronic components continue to dent the company's sales.