In Germany, there are no forced layoffs. There is a voluntary early retirement program for people 55 and older. Also, for other people, there is a voluntary severance package available based on the number of years at SAP. This package is also very attractive. However, because it is purely voluntary on the part of the employee, the same is true on the side of the employer. People in development roles, for example, cannot apply for the severance package, because SAP wants to retain them. Hence, this "voluntary" clause cuts in both ways.
Should SAP try to force out employees in Germany, the labour courts would laugh them out of the courtroom. WIth a margin like the one SAP earns, they would require SAP to retrain the people whose roles disappear to fill other, needed roles. And should there ever be hard times ahead, and redundancies need to happen, the length of service to SAP and the social situation of employees (do they need to look after children, elder parents, ...) would need to be taken into consideration.
Overall, it is very unattractive to try to sack people in Germany if there is the possibility to reorganise them into new roles.
Thought this was an interesting post that deserves a thread of its own. OP by @XYA6ggf-fza