on 06-21-2018 10:51 PM
Hi,
I have a parent entity and a child entity in my oData Service that was created using CDS views.
The scenario is to be able to just add a new child node to an existing root node. How could we do this in the SAP Gateway Client.
I tried the POST operation on the Child entity Set by providing the Parent key and other field values but I got an error message 'Invalid method invocation: 'CREATE' method is called on the non-root entity 'ZXXXXXXX''.
I tried calling PUT at root entity level and tried to pass child node values but that failed too.
So how would we deal with this scenario? Please guide.
Best Regards,
Raju
Hello, everyone.
Any news about how to solve this issue?
Thanks in advance.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
we had the same issue today, it seems because we are trying to utilize BOPF and SADL - which really, is an extremely poor implementation from SAP, top to bottom.
wondering if there are any updates on this - for instance, when working with OData Model we end up with a createEntry on an EntitySet, and submitChanges will post to the EntitySet directly and not to the NavProperty - so basically we need to implement a lot of crap code in SAPUI5 side because someone did half job (or no job) on the back-end when working with SADL classes.
would be quite nice to hear from someone from SAP on how to make this work properly, I really dislike to ship crap code and it seems the only way is really to code garbage.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I was able to make it work via the following call. But this will work only for 1:n association. For 1:1 associations, I am still trying to find a proper solution.
POST xABCDxC_RootEntitySet(Key='KeyValue')/to_Child1
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Any News on this one?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
87 | |
10 | |
10 | |
9 | |
7 | |
6 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.