Skip to Content
0

How many days of an absence belong to a period

Apr 13 at 01:15 PM

46

avatar image
Former Member

Hello,

example: An absence lasts from 20.11.2016 until 13.01.2018.

Is there any FM that shows, how many days of this absence belong to period 02/2017

or how many days belong to year 2017 ??

Grateful for hints ... Stefan

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

2 Answers

Amy King Apr 13 at 04:07 PM
0

Hi Stefan,

Interesting question! I'm not aware of an existing function module or class method that will give you this directly. One option is to call function J_1B_GET_DATE_RANGE_DDA for each range of dates to get a list of the individual dates in each range. Then compare the two lists to see what their intersection is.

Cheers,

Amy

Share
10 |10000 characters needed characters left characters exceeded
Guus Werinussa Apr 14 at 06:02 PM
0

Most basic calculation would be to subtract the dates: 20180113 - 20161120

That should give you the total days between those 2 dates.

Share
10 |10000 characters needed characters left characters exceeded