Skip to Content
avatar image
Former Member

How many days of an absence belong to a period

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

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • Apr 13 at 04:07 PM

    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

    Add comment
    10|10000 characters needed characters exceeded

  • Apr 14 at 06:02 PM

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

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

    Add comment
    10|10000 characters needed characters exceeded