‎2007 Aug 28 7:51 PM
I have a select option to choose date range,
s_dat-high should not be more than 2 days from s_dat-low.
How to do this
‎2007 Aug 28 8:01 PM
‎2007 Aug 28 7:54 PM
hi,
data : lv_nextday type sy-datum.
at selection-screen.
lv_nextdat = s_date-low + 2.
if s_date-high > lv_nextdat.
message e000.
endif.
‎2007 Aug 28 7:55 PM
‎2007 Aug 28 8:01 PM
‎2007 Aug 28 8:07 PM
You may also want to use FM select_options_restrict depending on your exact requirements.
Rob