on 02-12-2022 6:20 PM
Hi,
I need to build the dynamic list report on the UI using the CDS views and restful ABAP model.What you must use is a custom entity. Since the data is not part of DDIC table you have to use ABAP code to retrieve the same. This concept is also called an "unmanged query". Custom entities use an ABAP class that implement the 'select' method of the interface if_rap_query_provider.
Query Runtime Implementation - SAP Help Portal
Assuming that both master data tables from item1 and from item2 do have the same structure you could create a custom entity that has these fields.
In my RAP Generator I am using custom entities as value helps. For example a value help that shows the fields of different data source types (tables, CDS views, abstract entities).
The code uses different API's to retrieve those field names but returns it always in the same structre.
Custom query implementation class
Custom entity
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Andre,
I tried the same approach(created custom entity and a abap class ) for one of my value help fileds, but the input parameters are not accessible from the ABAP Class.
I need to build the value help list based on the other input fields using the custom logic.
Is there any other way to access other input parameters in the ABAP class when the value help button is pressed?
Looks like they are only available to access when the 'GO' button is pressed.
Appreciate your help.
Thanks
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thank you much. This is exactly what I was looking for.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
84 | |
24 | |
11 | |
9 | |
7 | |
6 | |
5 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.