Billing document is transferred to Accounting document using function module RV_ACCOUNTING_DOCUMENT_CREATE. There are some enhancement points in that function module, to throw an exception based on billing types.
I still feel that you shouldn't handle this situation through coding. There are configuration routes, which I have mentioned above, that would be prefferred.
Thanks,
Juwin