SAP CAP Model is fully compatible with SAP Cloud SDK. In fact, SAP CAP Model uses SAP Cloud SDK behind the scenes to perform a variety of tasks. For example, to connect to any remote system in the SAP CAP Model, we make use of the following code snippet…
await cds.connect.to("remoteService");
ExpandSAP CAP Model behind the scenes uses the SAP Cloud SDK to retrieve the technical information about the remote target system from the destination configured in SAP BTP. It is then able to make a connection to the remote system passing in the proper credentials.
Similarly, when it comes to multi-tenancy support, SAP CAP Model needs to be aware of the tenant context in the request object. This again is supported by SAP Cloud SDK. So, we see how SAP CAP Model leverages the capabilities of the SAP Cloud SDK to simplify application development.