SAP restructuring to focus on AI will affect 8,000 jobs