Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

function module for date addition

Former Member
0 Likes
1,485

hii all,

i want add no. of days into current date.

please provide me the function module for this functionality

the output like:

20080112 + 025. = 20080206

thanks

rahul.

9 REPLIES 9
Read only

former_member224404
Active Participant
0 Likes
1,255

why u need FM. You simply write the stament directly in your program. It will work perfectly fine.

data: l_v_date type sydatum value '20080112',

l_v_end_date type sydatum.

l_v_end_date = l_v_date + 25.

Edited by: Mainak Aich on Jul 25, 2008 6:37 PM

Read only

Former Member
0 Likes
1,255

Hi,

Try this FM,

RP_CALC_DATE_IN_INTERVAL

Add/subtract years/months/days from a date

Regards

Adil

Read only

bpawanchand
Active Contributor
0 Likes
1,255
Read only

Former Member
0 Likes
1,255

hiiii

use following FM

call function 'RP_CALC_DATE_IN_INTERVAL'
         exporting
              date      = sy-datum
              days      = 10
              months    = 0
              signum    = '+'
              years     = 0
         importing
              calc_date = wa_date.
 
write: / wa_date.

regards

twinkal

Read only

Former Member
0 Likes
1,255

check the Function

RP_CALC_DATE_IN_INTERVAL

You search Before asking

Read only

Former Member
0 Likes
1,255

U can directly add date ..

data : v_date like sy-datum.

v_date = sy-datum.

v_date = v_date + 25.

write 😕 v_date.

Read only

Former Member
0 Likes
1,255

Hi

try this :

RP_CALC_DATE_IN_INTERVAL

http://www.erpgenie.com/abap/functions.htm

With Regards

Nikunj Shah

Read only

Former Member
0 Likes
1,255
Read only

Former Member
0 Likes
1,255

Hi Babbal,

chech the FM's below:

RP_CALC_DATE_IN_INTERVAL Add/subtract years/months/days from a date

DATE_IN_FUTURE Calculate a date N days in the future.

With luck,

Pritam.