Skip to Content

SAP GW oData get the request url in a gw extension project's method

Hi Guys, I'm making a gateway odata service extension, with badis. I have the right iface to implement, the extended method has no input param like filter_params to get the filter from the service request, so how can I get the current request URL?I tried the CT_HTTP_SERVER, but I have to get the current instance?

Or are there any way to get the URL?

Thanks in advance!

Sandor Veres

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Aug 18, 2017 at 10:20 AM

    Hi, I need a special param to filter the count of a task quantity for this original service:

    sap/opu/odata/sap/gbapp_poapproval;mo/LaunchPageCollection

    When this service calling with the entityset launchpagecollection, then the response has got a number, which is a count of the workflowtasks.

    But I need to get the count of the workflowtask of the PO which are contract or normal po.

    So I need sap/opu/odata/sap/gbapp_poapproval;mo/LaunchPageCollection?$filter=po eq 'contract'

    The url param will decide what should be counted.

    Currently the IT_TASK_FILTER is not coming from url.

    If no other way, then I can make a new GW service for it.

    I tried to get the http server instance, but it is not Java.

    Add comment
    10|10000 characters needed characters exceeded