I've been presented with the following business requirement:
The client needs a custom Availability Control ledger based on the payment budget. We are using profile 350 since we also use commitment budget.
In this custom ledger we need invoices which are due within 2 months and payments (value types 54 and 57) to update.
We manage to control the updated considering the due date with the badi BAdI: Enhance Filter Settings for Availability Control.
Now, however, we are having a problem with invoices which have the due date within 2 months and are already cleared with a payment document. For these documents both the invoice and the payment document are getting updated in the ledger.
Do you know if there is a way to exclude the invoices which are already cleared?