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

Gateway Get Entityset unable to change requested values in parameter io_tech_request_context

former_member193947
Participant
0 Kudos
2,241

Hi Experts,

I am trying to change the search values of a requested call by changing io_tech_request_context input parameter.

I understand that input parameters can't be changed. But i tried copying to a like variable similar to this but still unable to change the values.

Is there a possibility to change the search values before proceeding to fill in the entity set ? The values will be retrieved from a CDS.

Thanks.

Accepted Solutions (0)

Answers (1)

Answers (1)

Andre_Fischer
Product and Topic Expert
Product and Topic Expert
0 Kudos

You can the search string from

data(lv_search_string) = io_tech_request_context->get_search_string().

as described here:

https://blogs.sap.com/2017/02/01/avoid-using-deprecated-sap-gateway-apis-in-your-odata-service-imple.../

there is no other way to implement free search in SAP Gateway then evaluating the search string and to implement the search your self.

former_member193947
Participant

Thanks Andre. But the blog doesn't say how to change the values of search string to get entity set based on modified search string. I tried modifying variable iv_search_string with a local variable but it didn't change the search results due to values within the object io_tech_request_context. Any ways to modify the values within the request context object ?