cancel
Showing results for 
Search instead for 
Did you mean: 

FM/ Bapi for checking leave availability on particular dates

former_member199125
Active Contributor
0 Kudos

HI guys,

Does any one know the FM / BAPI to check the leave availability on particular dates for specific leave type.

Regards

Srinivas

Accepted Solutions (0)

Answers (1)

Answers (1)

former_member184578
Active Contributor
0 Kudos

Hi Sana,

Use function module BAPI_ABSENCE_GETDETAILEDLIST by passing employee id , from date and to date. you can pass the subtype also( leave type )

now you write a small logic to check from the result.

Hope this helps u.,

Thanks & Regards,

Kiran.

former_member199125
Active Contributor
0 Kudos

KIRAN,

thks for response, the above bapi returns leave details which are already taken.

I want to know FM/ BAPI, which should check leave availabilty based on leave quota and leave dates.

Regards

Srinivas

former_member184578
Active Contributor
0 Kudos

Hi sana,

Check this FM HR_GET_QUOTA_DATA, you need to pass Infotype 2006 to get the available quota.

Regards,

Kiran.