116: (SELECT DISTINCT a1.account_owner_party_id,
117: a1.ext_bank_account_id
118: FROM iby_account_owners a1,
119: iby_external_payees_all payee,
120: iby_pmt_instr_uses_all instr
121: WHERE payee.ext_payee_id = instr.ext_pmt_party_id
122: AND payee_party_id = l_party_id
123: AND instr.instrument_id = a1.ext_bank_account_id
124: AND instr.instrument_type = 'BANKACCOUNT'