I have a funtion import within which I will be calling a method with date range as the importing paramter.
importing parameter for the backed method is a range table.
What should be EDM Core Type against the date in the Function Import parameters?
How can I pass multiple values for date in the URI while testing?
It is very simple you can create a range table to do that
You can check the standard bapi for example to do so
'BAPI_CUSTOMER_GETCONTACTLIST parameter name is customerrange
Hope it helps
Hello Vivek,
Check the below ->
Please have a look in the PART 2 at the section
Testing the CancelBooking Action in the Booking Provider Class which shows how to pass date.
.../CancelBooking?AirlineId=AA&ConnectionNo=0017&FlightDate=20111221&BookingId=00002152
How To Write an OData Channel Gateway Service. Part 1 - The Model Provider Class
How to Write an OData Channel Gateway Service. Part 2 - The Runtime Data Provider Class
Inside Execute_Action method of your DPC_EXT class, Read entries from IT_PARAMETER table and create Range Table manually and then use that in the query/pass to your logic.
Regards,
Ashwin
Add a comment