2007 Jan 31 5:00 AM
Hi SDN's
Is there any FM to add one month to the Sy-Datum?
I need to display the date always as Current Date + 1 Month.
Regards
Pratyusha
2007 Jan 31 5:05 AM
Hi usha,
pls chck th fm BKK_ADD_MONTH_TO_DATE
jus need to pas two params date and months to be added
hope this helps u a bit,
all the best,
regards,
sampath
mark helpful answers
Hi usha,
pls chck th fm BKK_ADD_MONTH_TO_DATE
jus need to pas two params date and months to be added
hope this helps u a bit,
all the best,
regards,
sampath
mark helpful answers
2007 Jan 31 5:03 AM
Try FM CALCULATE_DATE
in parameter DATE enter Current Date
and in MONTH enter '1'
Susanth
2007 Jan 31 5:05 AM
Hi usha,
pls chck th fm BKK_ADD_MONTH_TO_DATE
jus need to pas two params date and months to be added
hope this helps u a bit,
all the best,
regards,
sampath
mark helpful answers
2007 Jan 31 5:05 AM
if your variable
data : date like sy-datum value sy-datum.
date = date + 1.
write : / date using edit mask '__/__/____'.
it will display next day.
2007 Jan 31 5:08 AM
Hi
Try
BKK_ADD_MONTH_TO_DATE
Enter value 1 for next month
pass sy-datum
RE_ADD_MONTH_TO_DATE
HR_HCP_ADD_MONTH_TO_DATE
HR_JP_ADD_MONTH_TO_DATE
Regards
Shiva
2007 Jan 31 5:12 AM
Hi,
Try this one
<b>DATE_IN_FUTURE </b> Import: date in current external format for user; number of days.
Export: calculated date in future in external format mm/dd/yyyy
Also see this
<b>HR_PT_ADD_MONTH_TO_DATE</b> HR-PT: Add or subtract months to a date DMM_OPER can be '+', '-' or '='. if '=', then
DMM_POS = 'BEG' - return 1st day of the DMM_COUNT month of the same year. Use MM format (e.g. 02) otherwise you can get date like '2 /12/2002' for February L.
DMM_POS = 'END' - returns the (DMM_COUNT month + 1), (day - 1) for the input date DMM_DATIN.
Bug: try DMM_DATIN = MM/31/YYYY, DMM_COUNT = 1 L.
<b>RE_ADD_MONTH_TO_DATE</b> This module really can add/subtract months to/from date.
2007 Jan 31 5:12 AM
hi,
just execute this..
data: wa_date like sy-datum.
call function 'RP_CALC_DATE_IN_INTERVAL'
exportingdate = sy-datum
days = 0
months = 1
signum = '+'
years = 0
importing
calc_date = wa_date.
write wa_date.rgds
Anver
2007 Jan 31 5:16 AM
2007 Jan 31 5:17 AM
Hi Usha,
Run the below code to get u r result
Report zex33.
parameter : date like sy-datum,
p_months like T5A4A-DLYMO default 1.
data :v_dates like sy-datum.
call function 'RP_CALC_DATE_IN_INTERVAL'
exporting
date = date
days = 0
months = p_months
signum = '+'
years = 0
importing
calc_date = v_dates.
write : / v_dates.
| User | Count |
|---|---|
| 3 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |