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

RAP Unmanaged Query with MANAGED BO Problems

wkpk
Participant
0 Kudos
841

I created a custom logic using UNAMANGED QUERY in SAP RAP.

Subsequently, with a MANAGED with unmanaged save scenario for the corresponding Custom Entities, we created a BDEF that implements an extension to storage logic.

The problem occurred when we did Entitiy CREATE for that BO.

When I try to create Entitiy, I get ABAP Dump strangely.

When I checked that dump, logic to query the dynamic openSQL SELECT for Custom Entities In Standard Source.

I don't know why, even though I use Custom Entities, I run them to do a query with that entity name.

A custom entity is just an entity name... and there is a separate table to perform my true CRUD..

( For example, a custom entity named "Z_I_CUSTOMENTITY" exists,
If the actual CRUD is done in a table called "ZT_CUSTOM" via SAVE_MODIFIED.. )

The current behavior of the default BO is that it recognizes Z_I_CUSTOMENTITY as a table and performs a dynamic query to query the data..

Can't we use UNMANAGED Query and Managed scenarios together in the first place?

-- Dump debug

woongkipark_0-1721833223667.png

 



ABAP RESTful Application Programming Model 

Accepted Solutions (1)

Accepted Solutions (1)

Andre_Fischer
Product and Topic Expert
Product and Topic Expert
0 Kudos

A managed rap BO is only supported with CDS views or better CDS view entities.   

Custom Entities can only be used with unmanaged RAP BO's.

 

wkpk
Participant
0 Kudos
Thank you so much for your response. If so, I have a question. That's why I decided to use custom entities, not CDSs. I would like to INSERT certain data in another CBO table immediately after the data is queried through CDS. Is there a HOOK, or way to solve this in CDS and managed scenarios?

Answers (0)