‎2007 Jun 13 6:34 AM
is there any function module by which i can get a date one year older than the the system date.
or any other way to do it.
‎2007 Jun 13 6:38 AM
‎2007 Jun 13 6:36 AM
‎2007 Jun 13 6:36 AM
Hi
You can simply subtsract the no of days from the date you will get that date
New date = sy-datum - 365 (or 366 depending on year condition)
Reward points for useful Answers
Regards
Anji
‎2007 Jun 13 6:38 AM
‎2007 Jun 13 6:39 AM
hi
good
there is no such function module for the same,you have to write the logic by calculating the Sy-datum.
thanks
mrutyun^
‎2007 Jun 13 6:40 AM
Hi ,
You can use the FM
DATE_IN_FUTURE
GIVE -365 DAYS
OR USE THE FM
MONTH_PLUS_DETERMINE
-12
AS THE PARAMETER.
Regards,
IFF
‎2007 Jun 13 6:40 AM
hi,
try this,copy paste n run.
data: l_date type sy-datum.
l_date4(2) = sy-datum4(2).
l_date6(2) = sy-datum6(2).
l_date0(4) = sy_datum(4) - 1.
write: l_date.
regards,
sudha.
‎2007 Jun 13 6:42 AM
hi
if date format is yyyymmdd
year = sy-datum(4).
month = sy-datum+4(2).
day = sy-datum +6(2).
year = year - 1.
concatenate year month day into date.
write : date.
‎2007 Jun 13 6:47 AM
Hi,
Use the Function Module <b>CALCULATE_DATE</b> to Increase/decrease DATE by a specific number of Days/Months
Regards
Sudheer
‎2007 Jun 13 6:50 AM
Hi,just copy paste n run.
data: l_date type sy-datum.
l_date4(2) = sy-datum4(2).
l_date6(2) = sy-datum6(2).
l_date0(4) = sy-datum0(4) - 1.
write: l_date.
regards,
sudha