Hi,
The foll. is the code from the sdn posting for calculating past 12 months from a given date.
data: olddate like sy-datum,
newdate like sy-datum.
clear: olddate, newdate.
now pass given year/period to olddate, then use below function module.
CALL FUNCTION 'MONTH_PLUS_DETERMINE'
EXPORTING
months = '-12'
olddate = olddate
IMPORTING
NEWDATE = newdate.
if i want to try out the code that is above to understand how it works, can i just copy paste in se38 and just change the olddate as parameter , so that i can enter a date, will it work or how should i test. can anyone help me here.
Thanks
Ravi
Message was edited by: ravi raj