on 03-23-2023 6:08 PM
Hi Experts,
I'm implementing RAP unmanaged scenario, I'm writing the READ EML statement in the custom ACTION method. Still, I'm not getting any results and this READ statement is calling my FOR READ method of the class. I have written the same READ statement inside my FOR READ method as well but there also it is not fetching any results.
Please let me know if there is any solution for this,
P.S. I'm using the custom cds entity to fill the initial data.
Hi Prasad,
READ EML statement will call the RAP BO behavior handler method FOR READ for the entity specified in the EML statement.
Since it is unmanaged implementation here developer needs to implement the FOR READ method i.e Fetching the data from the transactional buffer or from the persistent table for the given keys and map it to the RESULT Whereas in case of Managed implementation RAP framework only handles the FOR READ method.
METHODS read FOR READ
IMPORTING keys FOR READ Travel RESULT result.
Thanks,
Pavan
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thanks, pavankumarjagadeesh89 for the quick response.
To test, I've written the dummy logic( a simple select query to get 4 rows ) to fill the RESULT parameter in the FOR READ method and the same 4 rows are reflected in my action method as a result of the READ EML Statement.
In my case, I'm using the CUSTOM CDS Entity so data fetch is happening using the custom class. In my case how can I set the data to the transactional buffer, is there any way that I can pass the data?
Could you please let me know?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
70 | |
9 | |
9 | |
7 | |
6 | |
5 | |
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.