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.
cancel
Showing results for 
Search instead for 
Did you mean: 

Compute Leaves between 2 dates

Former Member
0 Kudos

Hi All.

I could not search for an answer to this question.

Question is simple, but I guess, answer not so much!

Given a PERNR, 2 dates. How many dates of leaves between those 2 dates?

Note that we cannot just use 2001 infotype as it is.

Example: I want to check between 27.12.2005 to 31.12.2005.

Leave record in 2001 is from 27.12.2005 to 04.01.2006.

Any clues? I know there is a FM HR_ABS_ATT_TIMES_AT_ENTRY. But it is quite slow, as it takes in and returns lots of redundant information. I am just interested in Leave days, and nothing else.

Awaiting your comments...

regds.

Samant

3 REPLIES 3

former_member181966
Active Contributor
0 Kudos

Try :HR_BE_TX_ENTRY_LEAVE_DATES

HR_GET_LEAVE_DATA

HR_LEAVE_DATE_CALC

Pl..award the points

Thanks

Saquib Khan

0 Kudos

Hi Saquib.

2 of the FM you have mentioned are for Entry/Exit dates.

That's not what i want.

I want the no of absences between 2 dates for an employee.

None of the FM mentioned by you does that.

Any other suggestions please?

Thanks & Regards.

Samant

Former Member
0 Kudos

Hi Samant,

Can you please refine your query. Is it the number of working days between the two days ie, the actual number of days counted as absence?

anyway try using the BAPI: BAPI_ABSENCE_GETDETAIL

Plz reward points if this helps!

Regards,

Rajeev