Skip to Content

SAP REST PO Receiver adapter using less than and greater than

Hello All,

I want to configure a REST Receiver with the following details:

http://<hostname>:50000/igwj/odata/SAP/<service>;v=1/<endpoint>?$filter=CustomerNo ge '1402021' and CustomerNo le '1402023'

This URL works in the browser and returns the result. However, I want to implement this in the REST Adapter

My payload coming from my BPM is

http://www.w3.org/2001/XMLSchema" xmlns:xsi=" http://www.w3.org/2001/XMLSchema-instance">

<minCustomer>10000017 </minCustomer>

<maxCustomer>10000017 </maxCustomer>

</ns1:ODATA_Request>

I want to make this GET request dynamic by passing the minCustomer and maxCustomer in the above URL. I fouund blogs for = but I am not sure if the REST adapter supports for 'le' and 'ge'. Your help is appreciated.

We are on PO 7.4 SP18.

Add a comment
10|10000 characters needed characters exceeded

Related questions

4 Answers

  • Posted on Mar 04, 2019 at 11:47 PM

    1.jpg (58.9 kB)
    2.jpg (76.8 kB)
    3.jpg (80.7 kB)
    4.jpg (63.3 kB)
    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Mar 04, 2019 at 11:48 PM

    Configuration of the adapter

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Mar 04, 2019 at 11:52 PM

    The adapter is not taking the xpath expression dynamically

    %24filter=CustomerNo%2520ge%2520%2527minCustomer%2527%2520and%2520CustomerNo%2520le%2520%2527maxCustomer%2527

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Mar 05, 2019 at 12:09 AM

    Hi,

    Now I am able to get the dynamic values. However, the adapter log says

    CustomerNo%2520ge%252010000035++%2520and%2520CustomerNo%2520le%252010000035++ not successful. Bad Request

    Could you let me know how to form this URL

    $filter=CustomerNo ge 'minCustomer' and CustomerNo le 'maxCustomer'

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.