2008 Aug 06 6:53 AM
hi,
i hav created one selection screen option for standard DATE ...but in first input of select options i want to display the preceding calender date...how can i do this using sy-datum(current date).
Thanks
2008 Aug 06 6:58 AM
> data object "SY" does not have component called datum-1...
Give a space between SY-DATUM and - and 1.
SY-DATUM - 1.
2008 Aug 06 6:56 AM
at initialisation event assign default value to your date selection parameter...
2008 Aug 06 7:52 AM
Hi Priya Patil,
Use INITIALIZATION Event to set Default Value for Select-options.
Example Code.
Select-Option: S_Bfdatet for Bkpf-Bldat.
INITIALIZATION.
DATA: Date1 like sy-datum.
date1 = sy-datum-30.
s_bldat_low = date1.
s_bldat_high = sy-datum.
append s_bldat.
Hope this will help u.
with regards,
nagaraju
2008 Aug 06 6:58 AM
2008 Aug 06 7:14 AM
2008 Aug 06 7:18 AM
2008 Aug 06 7:25 AM
i have written like this
select-options:s_date for tbtco-sdlstrtdt obligatory default sy-datum-1 to sy-datum,
giving error
data object "SY" does not have component called datum-1...
some type casting required ...
i want that....
2008 Aug 06 7:36 AM
instead of
select-options:s_date for tbtco-sdlstrtdt obligatory default sy-datum-1 to sy-datum,
define selection option as
select-options:s_date for tbtco-sdlstrtdt obligatory,
in initialization event assign the default value...
INITIALIZATION.
s_date-low = sy-datum - 1.
append s_date.
2008 Aug 06 8:06 AM
> data object "SY" does not have component called datum-1...
Give a space between SY-DATUM and - and 1.
SY-DATUM - 1.
2008 Aug 06 7:39 AM
Hi Priya Patil,
Use INITIALIZATION Event to set Default Value for Select-options.
Example Code.
Select-Option: S_Bldat for Bkpf-Bldat.
INITIALIZATION.
DATA: Date1 like sy-datum.
date1 = sy-datum-30.
s_bldat_low = date1.
s_bldat_high = sy-datum.
append s_bldat.
Hope this will help u.
with regards,
Sharmishta Dadapure.
2008 Aug 06 7:56 AM
do it like this:
select-options:
s_date for tbtco-sdlstrtdt obligatory.
Initialization.
s_date-low = sy-datum - 1.
s_date-high = sy-datum.
append s_date.you cannot do any calculation in your select options like
sy-datum - 1, if there is any calculation in the default value of your selection screen you have to use INITIALIZATION event.
the DEFAULT option is for fixed values.
With luck,
Pritam.
2008 Aug 06 11:55 AM
Hi Priya,
calculations cannot be done in the select options.
instead use the Initialization event and do the manipulations using S_DATE-low and S_Date-high.
this would serve the purpose.
Regards.
Shruti
2008 Aug 07 8:12 AM
hi
you have to write the
default values at the
initilization event
it is help ful for you
thanks
naresh
| User | Count |
|---|---|
| 6 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |