Hi,
As per the standard behaviour of Quota compensation functionality, it will NEVER consider Deduction Validity Interval.
Solution:
With the help of Technical, Make implicit enhancement in FM HR_SETTLE__QUOTA
At Beginning, Clear below variable.
Write Code:
CLEAR: IGNORE_INTERVAL.
(The flag default set to X when FM is being called.) After Clearing IGNORE_INTERNAL, will consider deduction interval and deduct quota based on dates.
One line code will solve your issue.
PS: Please make sure all other cases are working correct, else you need to check deduction priority if there are multiple quota type for one compensation.
Thanks,
Ketul