05-19-2008 12:10 PM
I have taken date field as select-options and I want to get value from that range intially i have the value 19.05.2008 and i want to increase it to 20.05.2008 in runtime, how can we achieve it?
05-19-2008 12:14 PM
05-19-2008 12:14 PM
05-19-2008 12:14 PM
05-19-2008 12:17 PM
>
> var = '19.05.2008'.
>
> var = var + 1.
>
> Regards,
> Madan.
If var is type d, or type a data dictionary date type.
matt
05-19-2008 12:19 PM
hi,
you could add 1 to your date parameter to increment your dates.
for example:
p_date = 20080519. "YYYMMDD
do 5 times.
add 1 to p_date.
write: / p_date.
enddo.
the output would be.
20080520
20080521
20080522
20080523
20080524
you could also check if you have already reached the last day of the month via FM NUMBER_OF_DAYS_PER_MONTH_GET
regards,
Peter
05-19-2008 12:20 PM
hi,
do this way .. Just add one to the date to get the next date ..
date = date1 + 1.
Regards,
Santosh
05-19-2008 12:22 PM
Hi,
Check the below code.
selection-screen begin of block blk1 with frame.
select-options: s_date for sy-datum default sy-datum.
selection-screen end of block blk1.
start-of-selection.
if not s_date[] is initial.
s_date-low = s_date-low + 1.
endif.
write:/ s_date-low.
05-19-2008 12:56 PM
Hi,
You can do as below:
start-of-selection.
if sp_date is initial.
sp_date = sp_date + 1.
endif.
Thanks,
Sriram Ponna.