2009 Jun 08 11:10 AM
Is there a standard FM to find out the date before a few months from a particular date?
For example, if i enter date 01.06.2009 and number of months as 3, i must get a result 01.03.2009 which is three months before the specified date.
2009 Jun 08 11:12 AM
Date Related Fm pl search for it in forums once before posting...
CCM_GO_BACK_MONTHS
Is there a standard FM to find out the date before a few months from a particular date?
For example, if i enter date 01.06.2009 and number of months as 3, i must get a result 01.03.2009 which is three months before the specified date.
2009 Jun 08 11:12 AM
Date Related Fm pl search for it in forums once before posting...
CCM_GO_BACK_MONTHS
2009 Jun 08 11:13 AM
HI,
try this:
DATA: VA_DATA LIKE SY-DATUM.
CALL FUNCTION 'RE_ADD_MONTH_TO_DATE'
EXPORTING
MONTHS = -3
OLDDATE = SY-DATUM
IMPORTING
NEWDATE = VA_DATA
EXCEPTIONS
OTHERS = 1.
WRITE VA_DATA.
2009 Jun 08 11:14 AM
| User | Count |
|---|---|
| 6 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |