German software major SAP is weighing cuts of at least 10,000 jobs as it reshapes its enterprise business around artificial intelligence.