INVALID_PARTY_CONTEXT on CREATE_EXT_BANK_ACCT
Hi,
We are using R12.1.3 and are using the IBY_EXT_BANKACCT_PUB.CREATE_EXT_BANK_ACCT API to create external bank accounts for existing Suppliers, who already have other bank accounts assigned to them.
We are assigning at Supplier Site level.
This is the code we are testing with::
DECLAREl_extbank_rec IBY_EXT_BANKACCT_PUB.ExtBankAcct_rec_type;ln_account_id NUMBER;l_response IBY_FNDCPT_COMMON_PUB.Result_rec_type;lv_return_status VARCHAR2 (50);ln_msg_count NUMBER;lv_msg_data VARCHAR2 (1000);lv_msg VARCHAR2 (4000);ln_msg_index_out NUMBER;BEGIN l_extbank_rec := NULL; ln_account_id := NULL; l_extbank_rec.country_code := 'GB'; l_extbank_rec.branch_id := 1674043; l_extbank_rec.bank_id := 1656490; l_extbank_rec.bank_account_name :='New Account Number 00001'; l_extbank_rec.bank_account_num := '12345678'; l_extbank_rec.currency := 'UKS'; l_extbank_rec.end_date := NULL; l_extbank_rec.acct_owner_party_id := 1696822; l_extbank_rec.status := 'A'; l_extbank_rec.start_date := SYSDATE; l_extbank_rec.object_version_number := 1; IBY_EXT_BANKACCT_PUB.CREATE_EXT_BANK_ACCT (p_api_version => 1, p_init_msg_list => FND_API.G_FALSE, p_ext_bank_acct_rec => l_extbank_rec, p_association_level => 'SS', p_supplier_site_id => 57150, p_party_site_id => 32024, p_org_id => 5142, p_org_type => 'OPERATING_UNIT', x_acct_id => ln_account_id, x_return_status => lv_return_status, x_msg_count => ln_msg_count, x_msg_data => lv_msg_data, x_response => l_response); DBMS_OUTPUT.PUT_LINE (' ln_account_id:' || ln_account_id);