cancel
Showing results for 
Search instead for 
Did you mean: 

RAP Framework - Custom Entities GET_EXPANDED_ENTITYSET

nicmon
Explorer
0 Kudos
319

Hello Experts!

We have an scenario where we need to migrate a SEGW service to RAP. This service retrieves values from custom tables but has several entities and a lot of custom logic behind, so we opted for custom entities.

The problem is that in the current SEGW we are using the GET_EXPANDED_ENTITYSET functionality and we are not being able to replicate that with Custom Entities.

When reading the different entities data we need to be able to access the previous ones. For example: we read the Header custom entity but then the system process the read of the Positions custom entity in a different session so we can't access the Header data even if we try to do it with memory or global variables.

The return of the service works fine, the EXPAND is working and we end up getting the Header and the Position entities together, but the problem is that when reading the Positions we need to do some custom logic that involves using the Header data we can't access.

Is it possible to achieve this? Or is there a workaround to handle GET_EXPANDED_ENTITYSET while using custom entities?

Thanks and regards!

junwu
Active Contributor
we also had same issue,in the io_request, actually you have all the header data, but sap just didn't give you api to get it, you have to query it again(your custom logic) to get header data.

Accepted Solutions (1)

Accepted Solutions (1)

Andre_Fischer
Product and Topic Expert
Product and Topic Expert
nicmon
Explorer
0 Kudos
Hi Andre/Junwu!
nicmon
Explorer
0 Kudos
Thanks for the answer! So it seems that the only way to handle this is to retrieve the header data again when fetching the items, right? I can't think of another way to pass data between sessions except for shared memory, which we can't use in Public Cloud I believe.

Answers (0)