Skip to Content

Input table and Input paramers in oData GET call

Hello experts,

i have to implement a scenario with odata service based on rfc that has some input parameters and an input table. The RFC output is a table where result are filtered with this logic:
input-1 and input-2 and...and input-n and (table-input-1 or table-input2 or..or table-input-n)

I need an output like this

https://blogs.sap.com/2014/12/03/steps-to-build-an-rfc-based-odata-service-with-multiple-selection-values/

but he has range table in input so i cant replicate this scenario.

How achieve this?

image.png

image.png (96.8 kB)
Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Sep 25, 2018 at 10:44 AM

    Hi Eugenio Giunta,

    you can create a function module FM1 with range and do the same as he done. then in your FM1 you can filter the Range tables and pass them to your table ( just only LOW, Pattern, * or something else just ignore them) it meas take only EQ ..

    In your FM2 you have ITAB as import parameter so after passing the values from range table to ITAB you can call your FM2 inside the created FM1.

    I hope you got it, otherwise, I will try to explain it by creating an Example!

    Best regards

    Ebrahim

    Add comment
    10|10000 characters needed characters exceeded