Skip to Content
1

How to dynamically choose a destination when calling an OData Provisioned cloud service

Nov 09, 2017 at 08:57 AM

67

avatar image

Hi,

I am using OData Provisioning on the SAP Cloud Platform connected to backend ERP systems that have the IWBEP component only (Netweaver 7.31).

Our backend ERP systems have multiple clients, separated by different regional user groups.

When I register an OData Service in OData Provisioning I set multiple destinations representing each client against the service. One of them is set as default.

For example, I have destination A (default) which goes to client 100, destination B which goes to client 200 and destination C that goes to client 300, all on the same backend system.

If I call the OData Provisioned service URL on the cloud platform it will pull data from the default destination. No problem.

My issue/question is - how can I call the service with the other destinations if I want data separately from the other destinations/clients? Is there a URL parameter where I can set something like "?Destination=B" ?

I could not find anything in the standard documentation.

Note that I do not want to do multi origin where I call all destinations assigned to the service and combine the data together. I want to be able to call a nominated destination, and only that destination, each time I call the service URL.

Thanks,

Brendan

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

1 Answer

Ivan Mirisola
Dec 22, 2017 at 06:28 PM
0

Hi Brendan,

I believe this is what you are looking for:

Example: http://<hostname>/odata/<namespace>/<servicename>;<version>;o=sid(ABC.100)/<entityset>

Where ABC is the system ID and 100 is the client. For more information on prerequisites, refer to Multi Origin Composition.

Regards,
Ivan

Share
10 |10000 characters needed characters left characters exceeded