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

days calculation

Former Member
0 Likes
301

is there any function module for calculating days.

For 7 quarters or 8 quarters or 21 months or 24 months.

thanks and regards

jithendra

Moderator message - Please search before asking - post locked

Edited by: Rob Burbank on May 22, 2009 10:54 AM

1 REPLY 1
Read only

Former Member
0 Likes
245

Hi,

i don't know if there is any function module which does that. If one exists, then it needs the information which months are meant, because of leap years, you know.

But you can simply calculate the days:

DATA: lv_days TYPE i,
lv_future_date TYPE sy-datum VALUE '20091001',
lv_start_date TYPE sy-datum VALUE '20090522'.

START-OF-SELECTION.
lv_days = lv_future_date - lv_start_date.
WRITE lv_days.

Regards

Mark-André