All major tech companies file patents - shouldn't be surprising that it's going to be part of the job.
The patent system is broken.
Otherwise you may apply for patents in any country that has them. And indeed you need to file in each country where you want protection.
From: https://fsfe.org/campaigns/swpat/swpat.en.html "The European Patent Convention states that software is not patentable. But laws are always interpreted by courts, and in this case interpretations of the law differ. So the European Patents Office (EPO) grants software patents by declaring them as "computer implemented inventions". "
There's 20,000 hits for a Google patent search for patents assigned to SAP (https://patents.google.com/?assignee=SAP+SE+)