on 12-16-2014 5:32 AM
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?
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
User | Count |
---|---|
84 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.