cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

RAP(RestfulABAP) custom entity Projection view Problems

wkpk
Participant
1,296

Hello

I am currently publishing an OData API that queries data through RAP Managed Query.

It was working well, but customer requirements added a business scenario in which data was added to a specific CBO table when certain privileged users READ data.

After reviewing the lifecycles of the RAP to use the feature, we conclude that MANAGED QUERY does not have any special events to deal with it.

So I'm trying to change the existing query to UNMANAGED Query to implement this, but there was a problem.

Currently, our BO is not directly bound to the service, but binding through the projection view.

Problem is I'm trying to replace Root Entities with Custom Entities, so Custom Entities do not allow projection views!!

Because projection views are not allowed, deleting entire projection structures and changing them to use custom entities directly will require a huge number of code changes and likely have negative side effects.

So.. is there another way to projection this custom entity through "AS Projection On [custom entity]" < grammar?

Or, is there a separate callback that allows me to perform my custom logic after a read event occurs to use managed queries as they are?

Best regards

ABAP RESTful Application Programming Model 
@

Accepted Solutions (1)

Accepted Solutions (1)

Andre_Fischer
Product and Topic Expert
Product and Topic Expert

No, this is not possible. Custom entities do not support projections on top.

Answers (0)