If you are working in customized module then do as below
get all vendor bank entry from LFBK table into your internal table here you can additionally specify one more column contains serial number/ or any other identical name or flag (any..)..
before print select any of the account number from list(example check box - something like default print account) and set that account number as print.
( no need to work with popup screen )
-Avirat