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

Comparing dates in select query.

Former Member
0 Likes
346

Hi Experts,

I need to select data from one table such that the date field of the table should be either today's date or earlier date.

How can I write such comparison statement in select query.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
321

hi,

select * from <your_table>

where <date_field> <= sy-datum.

endselect .

regards,

burak

1 REPLY 1
Read only

Former Member
0 Likes
322

hi,

select * from <your_table>

where <date_field> <= sy-datum.

endselect .

regards,

burak