Skip to Content

Unable to find if_sadl_gw_query_control ~ set_query_options in my DPC / DPC_EXT Class

Nov 28, 2016 at 12:38 PM


avatar image
Former Member

Hi experts,

I have developed an ODATA service based on a CDS View by following the steps in the document below.

Generating an OData Service Based on a Referenced Data Source

Now, I am trying to follow the steps mentioned in the document below to read the query options.

Access the Query Options

However, I do not find the interface if_sadl_gw_query_control in my DPC / DPC_EXT class as mentioned in the above document.

Am I doing anything wrong here? Any suggestions would be highly helpful.



10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

1 Answer

Filip Nespor
Mar 28 at 10:47 AM

Hi Ajith,

If you create or generate Odata services as Reference Data Source, you will not find if_sadl_gw_query_control~set_query_options in DPC/DPC_EXT classes. There is some option how to manipulate with the queries in OData but it is strongly not recommended.

The best practice with Reference Data Source:

1) modify CDS views and do everything in CDS

2) modify Fiori App, pass parameters to CDS Views (in that case no modification is needed in OData, OData classes will take that parameter and pass it automatically to CDS )



10 |10000 characters needed characters left characters exceeded