If you want to use FM, then try FM RP_CALC_DATE_IN_INTERVAL.
data: wa_date like sy-datum.
call function 'RP_CALC_DATE_IN_INTERVAL'
exporting
date = sy-datum
days = 1
months = 0
signum = '+'
years = 0
importing
calc_date = wa_date.
I dont have any FM modules related to date in this system.
So the following logice is what i have written.
SPLIT '2007-09-01' at '-' into v_sydatum1 v_sydatum2 v_sydatum3.
CONCATENATE v_sydatum1 v_sydatum2 v_sydatum3 into v_sydatum.
v_sydatum = v_sydatum + 1.
and it works.
v_sydatum has 1 day incrmentaed, but how can i split this date again with '-'.
Hi Ajay..
On Date fields we can directly perform the Add ➕ and Subtract ➖ .
It will add the No of days. So there is no need of a FM.
Eg:
Parameters: p_date type sy-datum.
Initialization.
P_date = sy-daum.
Add 1 to P_date.
Start-of-selection.
Write:/ 'Date = ', P_date.
<b>reward if Helpful.</b>
Add comment