cancel
Showing results for 
Search instead for 
Did you mean: 

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

0 Kudos

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

kammaje_cis
Active Contributor
0 Kudos

Hi Sandor,

In DPC class I doubt if you can get the URL. By the way, what do you want to achieve by getting the URL? There might be better ways to do that without getting the URL.

Krishna Kammaje

Accepted Solutions (0)

Answers (1)

Answers (1)

0 Kudos

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.