‎2006 Mar 16 8:10 PM
Hi,
I am having problem in adding six months with the current date(sy-datum). Can you please let me know how can I add six months with sy-datum.
Lokman
‎2006 Mar 16 8:12 PM
Hi Lokman,
You can use this FM <b>RP_CALC_DATE_IN_INTERVAL</b>.
call function 'RP_CALC_DATE_IN_INTERVAL'
exporting
date = sy-datum
days = 0
months = 6
signum = '+'
years = 0
importing
calc_date = wa_date.Hope this will help.
Regards,
Ferry Lianto
‎2006 Mar 16 8:11 PM
Hi,
Convert the months into days & you can add to sy-datum directly.
‎2006 Mar 16 8:14 PM
Hi Phani,
I don't know the months in advance. It will be different in different time. Is there any alternative way for this.
Lokman
‎2006 Mar 16 8:12 PM
Hi Lokman,
You can use this FM <b>RP_CALC_DATE_IN_INTERVAL</b>.
call function 'RP_CALC_DATE_IN_INTERVAL'
exporting
date = sy-datum
days = 0
months = 6
signum = '+'
years = 0
importing
calc_date = wa_date.Hope this will help.
Regards,
Ferry Lianto
‎2006 Mar 16 8:15 PM
‎2006 Mar 16 8:16 PM
g_date = sy-datum + 180.
g_date6(2) = sy-datum6(2).
Hope it helps,
Regards,
Bikash