‎2008 Mar 28 1:17 PM
In the select options have to declare the from field as (sy-datum)-60 and the to field as sy-datum.This is mandatory.How should i declare it.
‎2008 Mar 28 1:24 PM
Hi,
Check the following code:
select-options: so_date for sy-datum.
initialization.
so_date-low = sy-datum - 60.
so_date-high = sy-datum.
append so_date.
Regards,
Bhaskar
‎2008 Mar 28 1:21 PM
if date is the name of your select-option then you can give it as
date-low = sy-datum.
for example
Select-option: date for mara-date default sy-datum.i hope it helps.
thanks
‎2008 Mar 28 1:24 PM
hi,
do this way ...
select-options : s_date for eban-erdat.
initialization.
s_date-low = sy-datum - 60.
s_date-sign = 'I'.
s_date-option = 'EQ'.
append s_date.
clear s_date.
‎2008 Mar 28 1:24 PM
Hi,
Check the following code:
select-options: so_date for sy-datum.
initialization.
so_date-low = sy-datum - 60.
so_date-high = sy-datum.
append so_date.
Regards,
Bhaskar
‎2008 Mar 28 1:25 PM
data : v_date1 like sy-datum,
v_date2 like sy-datum.
select-options : s_date for sy-datum.
initialization.
v_date1 = sy-datum - 60.
v_date2 = sy-datum.
s_date-low = v_date1.
s_date-high = sy-datum.
s_date-sign = 'I'.
s_date-option = 'BT'.
append s_date.
‎2008 Mar 28 1:25 PM
tables: syst.
select-options: s_date for syst-datum obligatory.
initialization.
s_date-low = sy-datum - 60.
s_date-high = sy-datum.
append s_date.
reward if useful.................................
‎2008 Mar 28 1:25 PM
load-of-program.
s_dat-low = sy-datum - 60.
s_dat-high = sy-datum.
append s_dat.
Edited by: Naveen Natarajan on Mar 28, 2008 2:36 PM
‎2008 Mar 28 1:33 PM
SELECT-OPTIONS : sel_dt FOR sy-datum DEFAULT sy-datum OBLIGATORY.
LOAD-OF-PROGRAM.
sel_dt-low = sy-datum - 60.
sel_dt-high = sy-datum.
APPEND sel_dt.