Skip to Content
0

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

Aug 17, 2017 at 01:45 PM

38

avatar image

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

10 |10000 characters needed characters left characters exceeded

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

0
* Please Login or Register to Answer, Follow or Comment.

1 Answer

Sandor Veres Aug 18, 2017 at 10:20 AM
0

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.


Share
10 |10000 characters needed characters left characters exceeded