cancel
Showing results for 
Search instead for 
Did you mean: 

Actions in Behavior Definition For CDS Custom Entity

aatan
Explorer
0 Kudos
670

Hi everyone,

The scenario is;  I have created a RAP application that will display data from Web Service. CDS Custom entity was created and the query implementation class called Web service.

The next step is to save the data from my Fiori Report List into my custom Z* table and update the "Status" field on the Fiori List.

Why does the Read Entity result fail? 

What should be the way?

aatan_2-1745164448614.png

aatan_1-1745163997420.png

Kind regards, aatan.

 

 

 

 

 

 

View Entire Topic
MBartsch71
Participant

As a custom entity does not have a database in the background to store the information the READ ENTITIES statement will not work. You have to determine the data to be updated and stored again and implement all by yourself. I suggest to modularize the read functions for the custom entity so that you can reuse the logic in the action implementation of the behavior.

MBartsch71
Participant
Keys contains the key values from your custom entity.
aatan
Explorer
0 Kudos

Hello,

In the SetExchange(for Action) method, the Keys values are coming through successfully.

What I want to achieve is to update the icons on the screen based on these key values and refresh the UI accordingly.

Additionally, after calling the SetExchange( is empty code ) method, the if_rap_query_provider~select method is triggered.

In this call, the low value from io_request->get_filter()->get_as_ranges() is empty.

I couldn't find a clear example addressing this specific scenario.

Kind regards, aatan.