Skip to content
Welcome to World of ORACLE

Welcome to World of ORACLE

Learn Oracle World with me

  • Home
  • EBS Blogs
    • ADF Developer Guide
    • ORACLE OAF Guide
    • EBS HRMS API
    • EBS FND User API
    • EBS Payables API
    • Oracle Knowledge
    • Solution Corner
  • FUSION Blogs
    • Oracle JET
    • Audit
    • Fast Formulas
    • HDL Templates
    • Reports/ Analytics
    • Solution Corner
  • About
  • Contact
You Are Here
  • Home
  • EBS Payable Supplier API
  • Create Bank Account in IBY using API in Oracle Apps R12

Create Bank Account in IBY using API in Oracle Apps R12

DECLARE
p_api_version            NUMBER := 1.0;
p_init_msg_list           VARCHAR2(1) := ‘F’;
p_count                        NUMBER;
v_supplier_party_id  NUMBER := 55816; — EXISTING SUPPLIERS/CUSTOMER PARTY_ID
v_bank_id                   NUMBER := 208587; — EXISTING BANK PARTY ID
v_bank_branch_id     NUMBER := 278411; — EXISTING BRANCH PARTY ID
p_ext_bank_acct_rec iby_ext_bankacct_pub.extbankacct_rec_type;
x_acct_id                      NUMBER;
x_msg_count               NUMBER(5);
x_return_status          VARCHAR2(2000);
x_msg_data                 VARCHAR2(2000);
x_response                  iby_fndcpt_common_pub.result_rec_type;

BEGIN
p_ext_bank_acct_rec.object_version_number := 1.0;
p_ext_bank_acct_rec.acct_owner_party_id      := v_supplier_party_id;
p_ext_bank_acct_rec.bank_account_name      := ‘XXTEST BANK ACCNT’;
p_ext_bank_acct_rec.bank_account_num        := 14278596531;
p_ext_bank_acct_rec.alternate_acct_name      := ‘XXTEST BANK ACCNT ALT’;
p_ext_bank_acct_rec.bank_id                             := v_bank_id;
p_ext_bank_acct_rec.branch_id                         := v_bank_branch_id;
p_ext_bank_acct_rec.start_date                         := SYSDATE;
p_ext_bank_acct_rec.country_code                  := ‘US’;
p_ext_bank_acct_rec.currency                          := ‘USD’;
p_ext_bank_acct_rec.foreign_payment_use_flag := ‘Y’;
p_ext_bank_acct_rec.payment_factor_flag     := ‘N’;

IBY_EXT_BANKACCT_PUB.CREATE_EXT_BANK_ACCT
( — Input data elements
p_api_version             => p_api_version,
p_init_msg_list            => p_init_msg_list,
p_ext_bank_acct_rec => p_ext_bank_acct_rec,
— Output data elements
x_acct_id                     => x_acct_id,
x_return_status         => x_return_status,
x_msg_count              => x_msg_count,
x_msg_data                => x_msg_data,
x_response                 => x_response
);

dbms_output.put_line (‘x_acct_id = ‘ || x_acct_id);

IF (x_msg_count = 1)
THEN
dbms_output.put_line (‘x_msg_data ‘ || x_msg_data);

ELSIF (x_msg_count > 1)
THEN
LOOP
p_count := p_count + 1;
x_msg_data := fnd_msg_pub.get (fnd_msg_pub.g_next,fnd_api.g_false);

IF (x_msg_data IS NULL)
THEN
EXIT;
END IF;

dbms_output.put_line (‘Message’ || p_count || ‘ —‘ || x_msg_data);
END LOOP;
END IF;

COMMIT;

EXCEPTION
WHEN OTHERS THEN
ROLLBACK;
dbms_output.put_line(SQLERRM);
END;
/

SHOW ERR;

Share this post: on Twitter on Facebook on LinkedIn

Post navigation

Create Address for Bank Branch API in Oracle Apps R12
Create Bank Account using API in Oracle Apps R12

Related Posts

  • Account Payable (AP) Important Tables

  • Rarely Used Account Payables APIs

  • API to Create Party Site for Bank Branch with Location in Oracle Apps R12

About Me

PRajkumar

Hi, I’m Puneet Rajkumar, an aspiring blogger with an obsession of Oracle Apps. This site is devoted to assist people to be told Oracle World.

View all posts

Follow Me

Be at liberty to hitch me on my social networks

  • facebook
  • linkedin

Visitor Count

0064993
Total Visit : 64993
Total Hits : 139997
  • Privacy Policy
  • Disclaimer
All Right Reserved 2019
Proudly powered by WordPress | Theme: Blog Cycle by Candid Themes.