Skip to Content
avatar image
Former Member

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

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.



Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Mar 28, 2018 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 )



    Add comment
    10|10000 characters needed characters exceeded