Payables and Cash Management - EBS (MOSC)

MOSC Banner

INVALID_PARTY_CONTEXT on CREATE_EXT_BANK_ACCT

edited Jul 5, 2017 4:02AM in Payables and Cash Management - EBS (MOSC) 6 commentsAnswered ✓

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);       

Howdy, Stranger!

Log In

To view full details, sign in to My Oracle Support Community.

Register

Don't have a My Oracle Support Community account? Click here to get started.

Category Leaderboard

Top contributors this month

New to My Oracle Support Community? Visit our Welcome Center

MOSC Help Center