Skip to Content
4
Jun 05, 2020 at 08:43 PM

CAP multiple services in one single destination

1865 Views

Hi,

For one of my projects I need to use multiple services from a single destination. (destination endpoint is an S/4HANA Cloud system)

I've imported my first EDMX file and setup the destination for my project:

I noticed that when using a destination it really needs the full URL to the service endpoint configured in the destination.

When using above configuration getting data from the service is working perfectly. Off course in case of a connection to an endpoint like an S/4 system I don't want to create a destination for each single service. I couldn't seem to find anything related to this issue in the documentation.

So basically my main question is: is there a way to configure the last part of my destination url (e.g. /sap/opu/odata/sap/YY1_PRODUCTPRICEREPORT_CDS) in the package.json file in the requires section? Or what's the best approach for these kind of cases?

Best regards,

Geert-Jan Klaps

Attachments

cap-dest-1.png (86.1 kB)
cap-dest-2.png (51.4 kB)