on 02-23-2024 3:48 PM
Hello experts,
My team and I are working on some custom developments involving UI5 freestyle apps and a RAP based OData service for the backend. Our main requirement revolves around a three-levels entity hierarchy consisting of FormHeader -> FormItems -> ItemImputations as you can see in the following service definition:
All the navigation properties are present in the service metadata and are working fine when navigating from FormHeader to FormItems, but the problem arose when trying to navigate from FromItems to Imputations (bottom entity in the 3-tier hierarchy). When fetching data using the to_Imputations navigation property we receive a 404 Resource not found type error:
In the RAP behavior definition, the FormHeader entity is declared as lock and authorization master, and its children entities (Attachments and Items) are lock dependent to its parent. However, we cannot define the lock dependency for the bottom hierarchy (ItemImputations). When trying to declare its lock dependency to the FormHeader entity, we get an error saying there's no navigation between ItemImputations and FormHeader; and when trying to declare the lock dependency to its actual parent (FormItems) we get another error saying that FormItems is not the lock master:
Here are some additional screenshots of the servicedefinitions that might prove useful:
Form Header.
FormItems.
ItemImputations.
Behavior Definition:
Please ignore any errors in naming conventions, as this is the first time using RAP for the backend team, we are aware of them and are planning to correct them ASAP.
Any guidance that could help our ABAP developers in finding where the service errors are would be greatly appreciated!
Hi,
The first error is correct and you have to specify association to header ( grand parent ).
Association Header;
Best wishes,
Ramjee Korada
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
81 | |
11 | |
10 | |
8 | |
8 | |
6 | |
6 | |
6 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.