on ‎2024 Jul 24 1:08 PM
Hi Experts,
We have a requirement where we need to pass error messages if the data extracted from the CDS view belongs to a certain Sales Organization.
The development is done using RAP framework, data is being extracted from standard tables in interface CDS views which are being used in final consumption view. The application is display only and the whole thing works fine.
But now we have a requirement where we need to show error message instead of data if certain result set is extracted. So can we use read method of behavior implementation class, where we can check the result set and pass the data or error message accordingly?
Request clarification before answering.
The requirement sounds weird to show an error message rather than using DCL to filter out such entries based on authorizations.
If you really want to implement something like this in a read only app so called custom entities might be an option.
Here you are implementing the query via ABAP code.
How to implement a custom entity in the ABAP RESTf... - SAP Community
Regards,
Andre
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
| User | Count |
|---|---|
| 7 | |
| 7 | |
| 7 | |
| 7 | |
| 5 | |
| 4 | |
| 4 | |
| 3 | |
| 3 | |
| 2 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.