We need realice to checks billing document to be canceled to be sure that it has not already been paid in AR. If so, it cannot be canceled.
In R3 there is the 29 routine which you assign in the cancellation section "copying requirements" in the type of invoice.
In S4HC with the new version 1902 they have enabled a new BADI called "Data Transfer for Billing Document Item"
But this Badi doesn´t allow us to put a check to prevent an invoice being canceled if it is already paid.
Additionally, the customizing point in which we assign this routine isn´t available.
Does anyone knows how we can do this?
Thanks for your help in advance.