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

Date calculation

Former Member
0 Likes
399

Hi,

I have two dates and i want to calculate the difference interms of no. of months. Is there a function module to do that. Can some one pls. let me know.

Thanks.

1 ACCEPTED SOLUTION
Read only

RichHeilman
Developer Advocate
Developer Advocate
0 Likes
373

Please use FM MONTHS_BETWEEN_TWO_DATES

Regards,

Rich Heilman

3 REPLIES 3
Read only

RichHeilman
Developer Advocate
Developer Advocate
0 Likes
374

Please use FM MONTHS_BETWEEN_TWO_DATES

Regards,

Rich Heilman

Read only

0 Likes
373

HR_99S_MONTHS_BETWEEN_DATES

~Suresh

Read only

0 Likes
373

Demo....




report zrich_0001.

data: months type i.

parameters: fromdate type sy-datum,
            todate   type sy-datum.


call function 'MONTHS_BETWEEN_TWO_DATES'
     exporting
          i_datum_bis = todate
          i_datum_von = fromdate
     importing
          e_monate    = months.


write:/ months.

Regards,

Rich Heilman