For Controlling the Bank Business Partner Bank account Selection ( Vendor or Customer ) it is advisable to enter the Partner Bank Type in the Accounting Document( vendor/Customer) line Item.
The same Partner Bank Type identify the bank account in vendor Master Data.
Depending on the origin of the document you may set up validation and substitution , or user exit to populate the Partner Bank Type in the document .
Thanks.
Maulesh