0% found this document useful (1 vote)
312 views5 pages

R12 Bank Creation API

The document provides steps to create banks, bank branches, and bank accounts in Oracle R12. It outlines the necessary pre-requisites and APIs used. It then provides code samples to call the APIs to create a bank, bank branch associated with that bank, and a bank account associated with the bank branch. It instructs to check the appropriate base tables after each creation to ensure records were populated correctly.

Uploaded by

mymle1
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (1 vote)
312 views5 pages

R12 Bank Creation API

The document provides steps to create banks, bank branches, and bank accounts in Oracle R12. It outlines the necessary pre-requisites and APIs used. It then provides code samples to call the APIs to create a bank, bank branch associated with that bank, and a bank account associated with the bank branch. It instructs to check the appropriate base tables after each creation to ensure records were populated correctly.

Uploaded by

mymle1
Copyright
© Attribution Non-Commercial (BY-NC)
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 5

Banks and Bank Branches creation in R12 This section provides the inputs to the Technical Consultant with

the necessary information for creating Banks in a accurate way. The APIs used are: 1. IBY_EXT_BANKACCT_PUB.CREATE_EXT_BANK 2. IBY_EXT_BANKACCT_PUB.CREATE_EXT_BANK_BRANCH 3. IBY_EXT_BANKACCT_PUB.CREATE_EXT_BANK_ACCT Following are the steps that must be followed, in order to, perform the creation of Banks and Bank Branches and Bank Accounts: Pre-requisites: Step 1: Currency code should be defined SELECT DISTINCT currency_code FROM FND_CURRENCIES_TL; Step 2: Country code should be defined SELECT DISTINCT territory_code FROM FND_TERRITORIES_TL WHERE LANGUAGE = 'US'; Step 3: SELECT organization_id FROM HR_OPERATING_UNITS WHERE organization_id = < Org ID >; Step 4: SELECT user_id FROM fnd_user WHERE user_name = 'Paradigmsoft'; (a) Banks Creation: DECLARE x_response_rec l_init_msg_list o_bank_id x_return_status l_msg_count l_msg_data l_msg_dummy l_output l_extbank_rec exec_bank BEGIN x_return_status := ''; l_msg_count := ''; l_msg_data := ''; apps.fnd_msg_pub.delete_msg(NULL); apps.fnd_msg_pub.initialize(); l_extbank_rec.bank_name := 'Test Supplier Bank'; apps.iby_fndcpt_common_pub.result_rec_type; VARCHAR2(2000); NUMBER; VARCHAR2(3000); NUMBER; VARCHAR2(3000); VARCHAR2(3000); VARCHAR2(3000); apps.iby_ext_bankacct_pub.extbank_rec_type; EXCEPTION;

l_extbank_rec.bank_number l_extbank_rec.country_code

:= 'TSB0000001'; := 'IN';

APPS.IBY_EXT_BANKACCT_PUB.CREATE_EXT_BANK(1.0, 'F', l_extbank_rec, o_bank_id, x_return_status, l_msg_count, l_msg_data, x_response_rec); l_output := ''; IF x_return_status <> 'S' THEN FOR i IN 1 .. l_msg_count LOOP apps.fnd_msg_pub.get(i, apps.fnd_api.g_false,l_msg_ data,l_msg_dummy); l_output := l_output||(TO_CHAR(i)|| ': ' ||SUBSTR(l _msg_data,1,250)); END LOOP; apps.fnd_file.put_line (apps.fnd_file.output, 'Error Occurred while Creating Bank : '||l_output); END IF; COMMIT; END; Step 5: Check the base tables APPS.CE_BANKS_V whether the records are populated. (b) BANK BRANCH CREATION: Note: Get bank ID from bank created from above DECLARE x_response_rec l_init_msg_list o_branch_id x_return_status l_msg_count l_msg_data l_msg_dummy l_output l_extbank_rec apps.iby_fndcpt_common_pub.result_rec_type; VARCHAR2(2000); NUMBER; VARCHAR2(3000); NUMBER; VARCHAR2(3000); VARCHAR2(3000); VARCHAR2(3000); apps.iby_ext_bankacct_pub.extbank_rec_type;

l_ext_bank_branch_rec exec_bank_branch BEGIN x_return_status := ''; l_msg_count := ''; l_msg_data := '';

apps.iby_ext_bankacct_pub.extbankbranch_rec_type; EXCEPTION;

apps.fnd_msg_pub.delete_msg(NULL); apps.fnd_msg_pub.initialize(); l_ext_bank_branch_rec.bank_party_id := <Bank ID>; -- ID of the Bank c reated above l_ext_bank_branch_rec.branch_name := 'Test Supp Bank Branch'; l_ext_bank_branch_rec.branch_number := 'TSBB000001'; l_ext_bank_branch_rec.branch_type := 'SWIFT'; l_ext_bank_branch_rec.bic := 'TSBBBIC001'; APPS.IBY_EXT_BANKACCT_PUB.CREATE_EXT_BANK_BRANCH(1.0, 'F', l_ext_bank_branch_rec, o_branch_id, x_return_status, l_msg_count, l_msg_data, x_response_rec); l_output := ''; IF x_return_status <> 'S' THEN FOR i IN 1 .. l_msg_count LOOP apps.fnd_msg_pub.get(i,apps.fnd_api.g_false,l_msg_data,l_ msg_dummy); l_output := l_output||(TO_CHAR(i)||': '||SUBSTR(l_msg_da ta,1,250)); END LOOP; apps.fnd_file.put_line(apps.fnd_file.output,'Error Occurred whil e Creating Bank Branches: '||l_output); END IF; COMMIT; END; Step 6: Check the base tables APPS.CE_BANK_BRANCHES_V whether the records are po pulated.

(c) BANK ACCOUNT CREATION: Note: Get the Bank ID and Branch ID from Branch above created DECLARE l_bank_acct_rec out_mesg l_acct l_assign ent_tbl_type; l_payee_rec rec_type; l_return_status l_msg_count l_msg_data l_msg_dummy l_output l_bank_id l_branch_id l_bank l_acct_owner_party_id l_supplier_site_id l_party_site_id exec_bank_acct BEGIN l_return_status := ''; l_msg_count := ''; l_msg_data := ''; apps.fnd_msg_pub.delete_msg(NULL); apps.fnd_msg_pub.initialize(); l_bank_acct_rec.branch_id l_bank_acct_rec.bank_id l_bank_acct_rec.acct_owner_party_id l_bank_acct_rec.bank_account_name l_bank_acct_rec.bank_account_num l_bank_acct_rec.iban l_bank_acct_rec.start_date l_bank_acct_rec.country_code l_bank_acct_rec.currency l_bank_acct_rec.foreign_payment_use_flag := l_bank_acct_rec.alternate_acct_name apps.iby_ext_bankacct_pub.extbankacct_rec_type; apps.iby_fndcpt_common_pub.result_rec_type; NUMBER; apps.iby_fndcpt_setup_pub.pmtinstrassignm apps.iby_disbursement_setup_pub.payeecontext_ VARCHAR2 (30); NUMBER; VARCHAR2(3000); VARCHAR2(3000); VARCHAR2(3000); NUMBER; NUMBER; VARCHAR2(1000); NUMBER; NUMBER; NUMBER; EXCEPTION;

:= NULL; := NULL; := NULL; := NULL; := NULL; := NULL; := SYSDATE; := NULL; := NULL; NULL; := NULL;

l_bank_acct_rec.branch_id := <>; l_bank_acct_rec.bank_id := <>; l_bank_acct_rec.acct_owner_party_id := 69060; l_bank_acct_rec.bank_account_name := 'Apps Test Supp 001'; l_bank_acct_rec.bank_account_num := 'TSB0000001'; l_bank_acct_rec.iban := 'TSBIBAN001'; l_bank_acct_rec.country_code := 'IN'; l_bank_acct_rec.currency := 'INR'; l_bank_acct_rec.foreign_payment_use_flag := 'Y'; apps.iby_ext_bankacct_pub.create_ext_bank_acct(p_api_version 1.0, p_init_msg_list => 'F', =>

p_ext_bank_acct_rec => l_bank_acct_rec,

p_association_level p_supplier_site_id p_party_site_id p_org_id p_org_type x_acct_id x_return_status x_msg_count x_msg_data x_response

=> 'SS', => 5448, => 63040, => 124, => 'OPERATING_UNIT', => l_acct, => l_return_status, => l_msg_count, => l_msg_data, => out_mesg);

l_output := ''; IF l_return_status = fnd_api.g_ret_sts_error THEN FOR i IN 1 .. l_msg_count LOOP apps.fnd_msg_pub.get(i,apps.fnd_api.g_false,l_msg_data,l _msg_dummy); l_output := l_output||(TO_CHAR(i)||': '||SUBSTR(l_msg_da ta,1,250)); END LOOP; apps.fnd_file.put_line(apps.fnd_file.output,'Error Occurred whil e Creating Bank Account : '||l_output); END IF; COMMIT; END; Step 7: Check the base tables IBY_EXTERNAL_PAYEES_ALL whether the records are po pulated.

You might also like