Enhancing the Model Provider Class
The generated Model Provider class for a GenIL based SAP Gateway service fetches the model information at runtime using the GenIL APIs. This class can be enhanced to change the default query for a root/access object in case:
there are multiple related queries for that object in the corresponding GenIL model
the default query assigned by the design time logic does not suite the purpose
For this, the method /IWGIL/IF_GENIL_MODEL_INFO~GET_DEFAULT_QUERY of the generated model provider class must be modified to return a fixed default query for an entity or to determine a default query at runtime based on the filter options.