Hello,
You can write custom logic in BP_DATA component in view BP_DATA\AccountOV in do_prepare_output method.
Fetch contact id by conp_number field of context node buildcontactperson then check it with but000 table...then delete this entity putting in while loopp...
Thanks..
Amit