cancel
Showing results for 
Search instead for 
Did you mean: 

How can I use a range as a filter in cds views

rajarshi_muhuri
Active Participant
0 Kudos
403

I want the abap cds view to filter (as parameters) on a range of dates. 

Example 

 

select * from table where dates between :p1 and :p2 ; 

how do I do this ? ( p1 and p2 are parameters ) 

View Entire Topic
naveen_k1
Product and Topic Expert
Product and Topic Expert

Hi, 

Try these steps-

 

  • Define the CDS view with parameters for the date range.

        Example:

         

naveen_k1_0-1719858285223.png

  • Use the parameters in the WHERE clause to filter the data based on the date range.naveen_k1_1-1719858413312.png