‎2008 Feb 18 11:13 AM
HI all,
I like to calculate date which less than 90 days of current day.
No.of days = s_date-low - 90
Please give suggestion
Please give code.
Thanks
venkat
‎2008 Feb 18 11:19 AM
Hello,
Do it the
select-options: s_date for sy-datum.
INITIALIZATION
s_date-sign = 'I'.
s_date-option = 'BT'.
s_date-low = sy-datum + 90.
s_date-high = sy-datum .
append s_date
Cheers,
Vasanth
‎2008 Feb 18 11:15 AM
data:date type sy-datum
date = sy-datum - 90.
now date holds the date less than 90 days of current date.
‎2008 Feb 18 11:19 AM
Hello,
Do it the
select-options: s_date for sy-datum.
INITIALIZATION
s_date-sign = 'I'.
s_date-option = 'BT'.
s_date-low = sy-datum + 90.
s_date-high = sy-datum .
append s_date
Cheers,
Vasanth
‎2008 Feb 18 11:57 AM
Also you can use this FM to get both the days in future as well as teh past.
data: date like sy-datum
new_date like sy-datum
date = sy-datum. " Pass the date for which u need to calculate
CALL FUNCTION 'RP_CALC_DATE_IN_INTERVAL'
EXPORTING
date = date
days = 04 "days added
months = 00
SIGNUM = '+'
years = 00
IMPORTING
CALC_DATE = new_date.
write:/ new_date.