Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Select option in Rest API

jagadeesh1024
Explorer
1,463
  • SAP Managed Tags

How to pass range values in the API URL and how to use it in the class level.

1 ACCEPTED SOLUTION
Read only

Harish_Vatsa
SAP Champion
SAP Champion
1,414
  • SAP Managed Tags

Hello jagadeesh1024,

The easiest way is to create two parameters for the start range and the end range and pass these range variables into the API URL.

e.g: If you need to send date range in the API parameters, then you can use two parameters (Start date and End date)

To use it at the class level, you need to declare two instance variables to store the values of the range parameters and the same can be used to filter the data based on the values received.

--

Regards,

H.V.

2 REPLIES 2
Read only

Harish_Vatsa
SAP Champion
SAP Champion
1,415
  • SAP Managed Tags

Hello jagadeesh1024,

The easiest way is to create two parameters for the start range and the end range and pass these range variables into the API URL.

e.g: If you need to send date range in the API parameters, then you can use two parameters (Start date and End date)

To use it at the class level, you need to declare two instance variables to store the values of the range parameters and the same can be used to filter the data based on the values received.

--

Regards,

H.V.

Read only

1,414
  • SAP Managed Tags

Thanks Harish.