‎2007 Oct 23 1:40 PM
i want give default values in select option for date (for a period)
I used
SELECT-OPTIONS y_s_mnth FOR y_v_dt_month default first to last OPTION BT.
first and last are dates.
I am getting error dialog box....specify ranges...
Please give sample code..
‎2007 Oct 23 1:45 PM
hi Suhas,
do like:
INITIALIZATION.
y_s_mnth-sign = 'I'.
y_s_mnth-option = 'BT'.
y_s_mnth-low = <i>first_day</i>
y_s_mnth-high = <i>last_day</i>
APPEND y_s_mnth.
hope this helps
ec
‎2007 Oct 23 1:45 PM
hi Suhas,
do like:
INITIALIZATION.
y_s_mnth-sign = 'I'.
y_s_mnth-option = 'BT'.
y_s_mnth-low = <i>first_day</i>
y_s_mnth-high = <i>last_day</i>
APPEND y_s_mnth.
hope this helps
ec
‎2007 Oct 23 1:48 PM
Hi suhas,
SELECT-OPTIONS : s_date for sy-datum.
initialization.
s_date-low = first_date.
s_date-high = last_date.
append s_date.
‎2007 Oct 23 2:08 PM
You can also define like
y_s_mnth FOR y_v_dt_month DEFAULT SPACE TO SY-DATUM.
‎2007 Oct 23 2:33 PM
Hi Suhas,
I hope this code will help you. Reward me if it is helpful.
select-options : y_s_mnth FOR sy-datum.
initialization.
y_s_mnth-sign = 'I'.
y_s_mnth-option = 'BT'.
y_s_mnth-low = sy-datum - 30. "first_day
y_s_mnth-high = sy-datum. "last_day
append y_s_mnth.
clear y_s_mnth.
Regards,
Sagar
‎2007 Oct 25 2:25 PM