‎2025 Apr 14 6:08 PM - edited ‎2025 Apr 14 6:27 PM
I have a requirement where we need to show the Sales order line item and the Sales Order header item in one app. The Track Sales Order app (F2577) meets most of the requirement however, the business also wants to see the line items in the first page. I've been trying to work out a POC and stumbled on a small issue. Our backend developer extended the standard OData service and added 2 new fields (material # and sales document item) as well as some logic to fetch data. We tested out the service in the gateway client and the data shows up fine. The issue happens when I try to utilize the OData service in a Fiori app. I tried 3 methods:
After implementing the JSONModel in the custom Fiori app I realized the issue could be with the key that is implemented in the backend OData service. I noticed in SEGW that SalesDocument was the only key maintained. Ideally, we would need salesdocumentitem to be a key as well since each record is unique to the SalesDocument and salesdocumentitem. When I clicked on edit mode in SEGW and tried to click on "Is Key" for salesdocumentitem, it was blanked out and I actually could not edit any of the other properties.
My question is, is there a way to change, add, or create a composite key for a standard OData service that has been extended?
Request clarification before answering.
do you have any experience of manipulating metadata by coding?
just get that property and set it as key in yout mpc ext.
lo_property->set_is_key( ).
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
| User | Count |
|---|---|
| 6 | |
| 6 | |
| 6 | |
| 5 | |
| 4 | |
| 3 | |
| 3 | |
| 3 | |
| 2 | |
| 2 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.