‎2006 Jun 28 7:19 AM
Hi,
I wanted to use select option is my selection screen. I have to show the default date in my selection screen.
I wrote the code as
select-options: date for sy-datum default sy-datum.
in initialization event
date-low = sy-datum - 1.
date-high = sy-datum.
date-sign = 'i'
date-option = 'bt'.
append date.
but in my selection screen date is not coming default.
any body will tell me how to approch??
‎2006 Jun 28 7:21 AM
u have to remove DEFAULT sy-datum (important) as amit told
date-sign = <b>'I'</b>
date-option = <b>'BT'</b>.
‎2006 Jun 28 7:21 AM
‎2006 Jun 28 7:23 AM
HI salil,
1. minor mistake
2. <b>remove the DEFAULT in declaratiion.</b>
3. <b>also make CAPITAL.</b>
4. just copy paste
report abc.
select-options: <b>date for sy-datum</b> .
initialization.
date-low = sy-datum - 1.
date-high = sy-datum.
<b> date-sign = 'I'.
date-option = 'BT'.</b>
append date.
regards,
amit m.
‎2006 Jun 28 7:24 AM
hi,
Use This
have used no interval option.
or
date-low = sy-datum - 1.
date-high = sy-datum.
date-sign = 'I'
date-option = 'BT'.
append date.
‎2006 Jun 28 7:25 AM
Hai Salil
Just check the modified code bellow
<b>select-options: date for sy-datum. " default sy-datum.
initialization.
date-low = sy-datum - 1.
date-high = sy-datum.
date-sign = 'I'.
date-option = 'BT'.
append date.</b>
Thanks & regards
Sreenivasulu P
‎2006 Jun 28 7:26 AM
Hi Salil,
change the code as below.
select-options: r_date for sy-datum.
in initialization event
r_date-sign = 'I'.
r_date-option = 'BT'.
r_date-low = sy-datum - 1.
r_date-high = sy-datum.
append r_date.
‎2006 Jun 28 7:44 AM
hi salil.
Try this way...
select-options: date for sy-datum default sy-datum.
initialization.
date-low = sy-datum - 1.
date-high = sy-datum.
date-sign = '<b>I</b>'
date-option = '<b>BT</b>'.
append date.Regards
vijay
‎2006 Jun 28 1:14 PM
select-options: date for sy-datum.
initialization.
date-low = sy-datum - 1.
date-high = sy-datum.
date-sign = 'I'.
date-option = 'BT'.
append date.
Regards,
Shalini
‎2006 Jun 28 2:32 PM
Hi Salil,
Use it this way
INITIALIZATION.
DATE-LOW = SY-DATUM - 1.
DATE-HIGH = SY-DATUM.
DATE-SIGN = 'i'.
DATE-OPTION = 'bt'.
APPEND DATE.
Regards
-
Sachin Dhingra
‎2006 Jun 28 2:33 PM
‎2006 Jun 28 2:36 PM
All seven people who suggested that you need to capitalize the I and BT and remove the DEFAULT are correct. Please make sure to award points accordingly mark this post as solved as it has been solved 7 times over.
<b>select-options: date for sy-datum.</b>
initialization.
date-low = sy-datum - 1.
date-high = sy-datum.
date-sign = <b>'I'</b>.
date-option = <b>'BT'</b>.
append date.
And one more for good luck.
Regards,
Rich Heilman
‎2006 Jun 28 2:38 PM
hi
make 'i' to 'I'
and 'bt' to 'BT'.
in initialization event
date-low = sy-datum - 1.
date-high = sy-datum.
date-sign = 'I'
date-option = 'BT'.
append date.
Ramesh.