Depends on the level you need to go. CRM has all the good stuff these days. But in a previous client we just went with an SD condition that was statistical and posted to CO-PA and the Z program that had all the business rules setup that posted the FI document.
Some example of rules where 60% commission on payment and 40% commission on sale.
Regards
Waza