iby_ext_bankacct_pub.create_ext_bank
(p_api_version => 1.0,
p_init_msg_list => 'T',
p_ext_bank_rec => l_extbank_rec,
x_bank_id => l_bank_id,
x_return_status => l_return_status,
x_msg_count => l_msg_count,
x_msg_data => l_msg_data,
x_response => l_resp
);
l_extbank_rec.bank_number := l_bank_number;
l_extbank_rec.bank_name := TRIM (cv_stg1.bank_name);
l_extbank_rec.country_code := cv_stg1.country_code;
l_extbank_rec.bank_alt_name:=cv_stg1.bank_name_alt;
l_extbank_rec.bank_number:=cv_stg1.bank_number;
iby_ext_bankacct_pub.create_ext_bank_branch
(p_api_version => 1.0,
p_init_msg_list => 'T',
p_ext_bank_branch_rec => l_extbankbranch_rec,
x_branch_id => l_branch_id,
x_return_status => l_return_status,
x_msg_count => l_msg_count,
x_msg_data => l_msg_data,
x_response => l_resp
);
l_extbankbranch_rec.bank_party_id := cv_stg1.bank_id;
l_extbankbranch_rec.branch_name := cv_stg1.bank_branch_name;
l_extbankbranch_rec.branch_type := cv_stg1.bank_branch_type;
l_extbankbranch_rec.branch_number:=cv_stg1.branch_number;
l_extbankbranch_rec.alternate_branch_name:=cv_stg1.branch_name_alt;
hz_location_v2pub.create_location
(p_init_msg_list => 'T',
p_location_rec => l_location_rec,
x_location_id => l_location_id,
x_return_status => l_return_status,
x_msg_count => l_msg_count,
x_msg_data => l_msg_data
);
l_location_rec.country := cv_stg1.country_code;
l_location_rec.address1 := cv_stg1.branch_address ;
l_location_rec.city := cv_stg1.city;
l_location_rec.postal_code := cv_stg1.zip_code;
l_location_rec.created_by_module := 'AMS';
hz_party_site_v2pub.create_party_site
(p_init_msg_list => 'T',
p_party_site_rec => l_party_site_rec,
x_party_site_id => l_party_site_id,
x_party_site_number => l_party_site_number,
x_return_status => l_return_status,
x_msg_count => l_msg_count,
x_msg_data => l_msg_data
);
l_party_site_rec.party_id := l_branch_id;
l_party_site_rec.location_id := l_location_id;
l_party_site_rec.identifying_address_flag := 'Y';
l_party_site_rec.created_by_module := 'AMS';
ce_bank_pub.create_bank_acct
(p_init_msg_list => 'T',
p_acct_rec => l_bankacct_rec,
x_acct_id => l_int_bank_acct_id,
x_return_status => l_return_status,
x_msg_count => l_msg_count,
x_msg_data => l_msg_data
);
l_bankacct_rec.bank_id:=cv_stg1.bank_id;
l_bankacct_rec.branch_id := cv_stg1.branch_id;
l_bankacct_rec.account_owner_org_id :=cv_stg1.int_acct_owner_org_id;--24276;-- cv_stg1.int_acct_owner_party_id;
l_bankacct_rec.account_owner_party_id := cv_stg1.int_acct_owner_party_id;
l_bankacct_rec.account_classification := 'INTERNAL';
l_bankacct_rec.bank_account_name := cv_stg1.bank_account_name;
l_bankacct_rec.bank_account_num := cv_stg1.bank_account_num;
l_bankacct_rec.currency := cv_stg1.currency_code;
l_bankacct_rec.acct_type:=cv_stg1.acc_type;
l_bankacct_rec.ap_use_allowed_flag := 'Y';
l_bankacct_rec.ar_use_allowed_flag := 'Y';
l_bankacct_rec.asset_code_combination_id := cv_stg1.gl_cash_account_ccid;
l_bankacct_rec.receipt_multi_currency_flag := cv_stg1.multiple_currency_allowed;
l_bankacct_rec.ap_amount_tolerance := 0;
l_bankacct_rec.ar_amount_tolerance := 0;
l_bankacct_rec.ap_percent_tolerance := 0;
l_bankacct_rec.ar_percent_tolerance := 0;
l_bankacct_rec.ce_amount_tolerance := 0;
l_bankacct_rec.ce_percent_tolerance := 0;
l_bankacct_rec.multi_currency_allowed_flag := 'Y';
l_bankacct_rec.zero_amount_allowed := 'N';
l_bankacct_rec.cash_clearing_ccid := cv_stg1.cash_clearing_account_ccid;
l_bankacct_rec.bank_charges_ccid := cv_stg1.bank_charges_account_ccid;
ce_bank_pub.create_bank_acct_use
(p_init_msg_list => 'T',
p_acct_use_rec => l_bankacct_use_rec_type,
x_acct_use_id => l_acct_use_id,
x_return_status => l_return_status,
x_msg_count => l_msg_count,
x_msg_data => l_msg_data
);
l_bankacct_use_rec_type.bank_account_id :=l_int_bank_acct_id;
l_bankacct_use_rec_type.org_type := 'OU';
l_bankacct_use_rec_type.org_id :=cv_stg1.org_id;
l_bankacct_use_rec_type.ap_use_enable_flag := 'Y';
l_bankacct_use_rec_type.ar_use_enable_flag := 'Y';
l_bankacct_use_rec_type.default_account_flag := 'N';
l_bankacct_use_rec_type.authorized_flag := 'Y';
l_bankacct_use_rec_type.asset_code_combination_id := cv_stg1.gl_cash_account_ccid;
l_bankacct_use_rec_type.bank_charges_ccid := cv_stg1.bank_charges_account_ccid;
l_bankacct_use_rec_type.cash_clearing_ccid := cv_stg1.cash_clearing_account_ccid;
If you are Facing Problem with create bank with the same bank_account_name but different bank_account_name.
You have to apply the patch.
Service Request Number is :1264514.1 |
Patch 10261393:R12.CE.B | version: 12.1.3 |
I Have A Conversion done using web-ADI, now I want the Validations To Done in Traditional approach(how We Do In Item Conversion).How It is Possible??
ReplyDelete