cancel
Showing results for 
Search instead for 
Did you mean: 

The 'READ' method for both display and edit mode

Fil_Iv
Explorer
0 Kudos
258

Hello Together!

During development of unmanaged RAP application, I encountered the following behavior in the way how CDS selection logic works. In display mode, the data is selected directly from root CDS and corresponding associations, but when I switch to edit mode, the 'Read' methods of the generated class are called. I wonder if there is a reason for different ways of read.   For my application I would prefer if the data were read only by READ method in all cases. Is it possible?  Do you have any tips for me? 

I'm working on S4HANA 2023.  

Best regards,
Ivan

View Entire Topic
junwu
Active Contributor

probably you can try abstract entity.

although it is not same "Read" method for read&query, but both call are handled by your code and under your control.