Hi,
May be you can try putting a logic in the copy control (data transfer routine) at the item level (sales doc to billing doc or Del doc to billing doc which ever is your scenario). You can try as well try User exit (as suggested) which ever suits you the best.
Hope this helps...
Regards,
Mukund S