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

Get the date range

Former Member
0 Kudos


There is a requirement that we need to get date range.This date range will be arrived at using the function module BKK_GET_PRIOR_WORKDAY. The factory calender id is GB. It should return the date range. Therefore, for weekends the date range will be Saturday, Sunday and Monday. The date range will change based on holidays that exist in the holiday calendar.

Now my question is how to calculate that there are two days between friday and monday.

Please help.


Former Member
0 Kudos

Hi Nishigandha,

If i am correct you need the number of days between two dates


date1: 04/06/2009

date2: 12/06/2009

you need the number of days??

then probably check this Fm out:

SD_DATETIME_DIFFERENCE this is a function module which gives the difference in Days and Time for entered two dates

P.S Additionally Chk this out:


Hope its useful

Thanks and Regards


Edited by: SRIKANTH P on Jun 4, 2009 2:33 PM