Can Anaplan consume REST based SAP Webservice?
Anaplan has its own API, which can interact with any other.
However you cannot write script inside Anaplan itself so you are going to need a server and a script to handle that.
The easiest is a container with a node.js server where you can quickly write that script
We also have a python library (look for it on community).