Application Development 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: 

to find whether a date is b/n a date range.

Former Member
0 Kudos

Hi All,

I want to find whether the system date falls between from_date and to_date fields of a table. Pls help me.

Thank you,

praveena

2 REPLIES 2

Former Member
0 Kudos

one option is

<b>CSCP_PARA1_GET_PERIODS

I_DATUV 01.02.2005

I_DATUB 31.12.2010

I_TIMEUNIT D

Tables Value

ET_DATES 0 Entries

Result: 2,161 Entries</b>

after that check this table with current date.

Regards

Prabhu

athavanraja
Active Contributor
0 Kudos

select * from xxx into table itab where sy-datum ge from_date and sy_datum eq le todate .

Raja