cancel
Showing results for 
Search instead for 
Did you mean: 

How to pass Date range as imporing parameter to function import

Former Member
0 Kudos

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?

Accepted Solutions (0)

Answers (2)

Answers (2)

AshwinDutt
Active Contributor
0 Kudos

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

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

0 Kudos

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

Former Member
0 Kudos

what will be the EDM core type?

how can I pass the date range values in URI?

there are my questions?

Vivek.

GK817
Active Contributor
0 Kudos

Hello Vivek,

For Date, you can use the EDM type as edm.datetime or edm.datetime offset.

Please have a look at the below thread for whole discussion on this:

And when you want to pass date in URI, you may pass date like below:

?$filter= Bldat eq datetime'2014-01-01T00:00:00' and Budat eq datetime'2014-01-01T00:00:00'


Regards

Gaurav K