Skip to Content

OData Channel API: Association to an entity in a different service?


I'm in GW 2.0 SP 6 and using the OData Channel API to develop a service manually. I'm trying to understand the options for modularization and cross-system integration using associations.

Suppose I have two entities and I want to create a associations (ideally, two-way) between them.

Now let's look at two cases:

1) Both entities reside in the same system but in different services

From what I have read in the documentation, I understand I can include the model of one service in the other service (in the model provider class) and then create associations between the entities.

Is any detailed documentation (tutorials, how-tos) available for this? This seems like a fairly important feature for entity reuse and service modularization to me.

2) One entity resides in an ABAP system and one entity comes from an OData service in a remote (could be non-ABAP) system

Example: I want to create an association between my entity and an entity that is exposed by a cloud-based application (could be controlled by somebody else).

I understand that OData per se supports links to remote entities, but does the OData Channel API in Gateway support it, too? Do you have any points to documentation (tutorials, how-tos) on how to do this?



Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Jul 16, 2013 at 03:18 PM

    Hi Thorsten,

    I haven't done this yet, but I did locate the means of doing it should I need to.

    You are right about the 'Include Model' option - I wondered what that actually did until I found the inter-system association.

    The process seems straightforward enough in theory. Include your external model, then go to the association editor. There is an external editor option in there - look for the column with a green tick in it. Click that to open the external relations editor, which isn't that much different.

    Hope that helps, and that it works for you.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Mar 27, 2015 at 06:31 AM

    Hi Thorsten,

    Have you got any solution for your query, I have a similar requirement related to associations.

    I have a 2 services created. In SERV01 with multiple entity sets and full Associations/Navigations are working between all EntitySets. I have second service SERV02 with a Entity ( with same key fields root entity of SERV01). I want to use all the Associations/Navigations of SERV01 from SERV02 Entity. Is it possible to navigate from one service to another service or I need to change my design.

    Thanks in Advance.

    Ajay Chippa

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.