Skip to Content

Posting through a Navigation to an EntitySet in External Model Reference Bug?

Hi All,

Consider the scenario where I have a service called ResuableEntities which contains a Comments Entityset (with underlying Comment Entity). Now I create a second service called WorkOrderServices; which contains a WorkOrders EntitySet with underlying WorkOrder Entity.

Now I include the oData reference to ResuableEntities so I can make a relationship from WorkOrder to Comments. If I do a GET request on /WorkOrderServices/WorkOrders('123')/Comments that behaves as expected; but if I want to create a new Comment by posting to /WorkOrderServices/WorkOrders('123')/Comments, I am getting an error stating "Data object 'WorkOrder' not found."

Is this a bug with Gateway, am I doing something wrong, or???

Cheers,

Matt

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • Posted on Jul 28, 2014 at 01:16 AM

    Hi all,

    Just saw a response from the development team through SMP, and they have replied that Post to an included service is not supported. Why is a very important question here??? e.g. This will lead to no reuse within Gateway services, duplicated code, and encourage extremely large services being created rather than modularising and including services as required.

    So if anyone from the SAP development team is reading this - Can you please adjust your answer and fix this or explain clearly why this is not a problem?

    Oh well - for now - looks like I need to build a layer to allow me not to have to replicate my oData code at least, and duplicate entities in different Gateway services.

    Cheers,

    Matt

    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.