Oracle EBS 銀行賬戶API

2022-08-25 11:57:21 字數 4949 閱讀 7965

建立銀行

-- create bank

declare

p_init_msg_list varchar2(200);

p_country_code varchar2(200);

p_bank_name varchar2(200);

p_bank_number varchar2(200);

p_alternate_bank_name varchar2(200);

p_short_bank_name varchar2(200);

p_description varchar2(200);

p_tax_payer_id varchar2(200);

p_tax_registration_number varchar2(200);

x_bank_id number;

x_return_status varchar2(200);

x_msg_count number;

x_msg_data varchar2(200);

p_count number;

begin

p_init_msg_list := fnd_api.g_true;

p_country_code := 'us';

p_bank_name := 'bank1';

p_bank_number := '123';

p_alternate_bank_name := 'alternate test bank';

p_short_bank_name := 'b1';

p_description := 'test bank creation api';

ce_bank_pub.create_bank(p_init_msg_list => p_init_msg_list

,p_country_code => p_country_code

,p_bank_name => p_bank_name

,p_bank_number => p_bank_number

,p_alternate_bank_name => p_alternate_bank_name

,p_short_bank_name => p_short_bank_name

,p_description => p_description

,x_bank_id => x_bank_id

,x_return_status => x_return_status

,x_msg_count => x_msg_count

,x_msg_data => x_msg_data);

dbms_output.put_line('bank_id/party_id = ' || x_bank_id);

dbms_output.put_line('x_return_status = ' || x_return_status);

dbms_output.put_line('x_msg_count = ' || x_msg_count);

dbms_output.put_line('x_msg_data = ' || x_msg_data);

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;

end;

建立分行,也可用於建立**商時建立的銀行分行賬戶,在**商建立一行環節,只能建立分行賬戶,銀行賬戶是取系統已有的銀行,換句話說,**商處不能建立銀行只能建立分行。

--建立**商銀行分行 created by jenrry 20170419

declare

l_return_status varchar2(1);

l_msg_count number;

l_msg_data varchar2(1000);

l_bank_rec hz_bank_pub.bank_rec_type := hz_bank_pub.g_miss_bank_rec;

l_orga_rec hz_party_v2pub.organization_rec_type := hz_party_v2pub.g_miss_organization_rec;

l_party_rec hz_party_v2pub.party_rec_type := hz_party_v2pub.g_miss_party_rec;

p_bank_id number;

x_party_id number;

x_party_number hz_parties.party_number%type;

x_profile_id number;

x_relationship_id number;

x_rel_party_id number;

x_rel_party_number hz_parties.party_number%type;

x_bitcode_assignment_id number;

x_bbtcode_assignment_id number;

x_rfccode_assignment_id number;

x_pobject_version_number number;

x_bbtobject_version_number number;

x_rfcobject_version_number number;

begin

mo_global.init('sqlap');

l_orga_rec.organization_name := '酒仙橋支行'; --支行名稱

l_orga_rec.created_by_module := 'ce';

l_bank_rec.branch_type := 'aba'; --分行型別

--l_bank_rec.bank_or_branch_number := ''; --支行編號

l_bank_rec.inactive_date := fnd_api.g_miss_date;

l_bank_rec.institution_type := 'bank_branch';

l_bank_rec.organization_rec := l_orga_rec;

hz_bank_pub.create_bank_branch(p_init_msg_list => fnd_api.g_false,

p_bank_rec => l_bank_rec,

p_bank_party_id => 5050,

x_party_id => x_party_id,

x_party_number => x_party_number,

x_profile_id => x_profile_id,

x_relationship_id => x_relationship_id,

x_rel_party_id => x_rel_party_id,

x_rel_party_number => x_rel_party_number,

x_bitcode_assignment_id => x_bitcode_assignment_id,

x_bbtcode_assignment_id => x_bbtcode_assignment_id,

x_rfccode_assignment_id => x_rfccode_assignment_id,

x_return_status => l_return_status,

x_msg_count => l_msg_count,

x_msg_data => l_msg_data);

dbms_output.put_line('l_return_status:' || l_return_status);

dbms_output.put_line('l_msg_count:' || l_msg_count);

dbms_output.put_line('l_msg_data:' || l_msg_data);

dbms_output.put_line('x_party_id:' || x_party_id);

dbms_output.put_line(fnd_msg_pub.get_detail(1, 'f'));

end;

銀行賬戶管理系統

package bankmanagementsystem public user package bankmanagementsystem public admin package bankmanagementsystem public class ui public static void sho...

異常 銀行賬戶異常處理

自定義乙個accountexception異常類 建立乙個bankdemo類,該類包括 私有成員變數 double account 從個人賬戶 公有成員方法 setaccount double account 往賬戶存錢 double getaccount 獲取賬戶餘額 show int x 建立乙...

實現銀行賬戶資訊管理

1.辦理銀行卡掛失 使用update語句實現密碼變更和卡掛失 update where 2.統計銀行總存入金額和總支取金額 select tradetype 資金流向,sum trademoney 總金額 from 3.查詢本週開戶的卡號,顯示該卡相關資訊 使用 自連線 查詢表 4.查詢本月交易金額...