详解ebs接口之客户配置文件导入(一)
DECLARE
l_rec_profile_t hz_customer_profile_v2pub.customer_profile_rec_type;
l_rec_profile hz_customer_profile_v2pub.cust_profile_amt_rec_type;
l_profile_amt_id NUMBER;
l_profile_id NUMBER;
l_return_status1 VARCHAR2(30);
l_msg_count1 NUMBER;
l_msg_data1 VARCHAR2(2000); l_return_status2 VARCHAR2(30);
l_msg_count2 NUMBER;
l_msg_data2 VARCHAR2(2000);
BEGIN
mo_global.init('AR');
fnd_global.apps_initialize(user_id => 10177, resp_id => 52991, resp_appl_id => 222); l_rec_profile_t.cust_account_profile_id := NULL;
l_rec_profile_t.cust_account_id := 487194; --CXY-TEST002
l_rec_profile_t.status := 'A';
l_rec_profile_t.collector_id := NULL;
l_rec_profile_t.credit_analyst_id := NULL;
l_rec_profile_t.credit_checking := NULL;
l_rec_profile_t.next_credit_review_date := NULL;
l_rec_profile_t.tolerance := NULL;
l_rec_profile_t.discount_terms := NULL;
l_rec_profile_t.dunning_letters := NULL;
l_rec_profile_t.interest_charges := NULL;
l_rec_profile_t.send_statements := NULL;
l_rec_profile_t.credit_balance_statements := NULL;
l_rec_profile_t.credit_hold := NULL;
l_rec_profile_t.profile_class_id := NULL;
l_rec_profile_t.site_use_id := 420072; --BILL_TO
l_rec_profile_t.credit_rating := NULL;
l_rec_profile_t.risk_code := NULL;
l_rec_profile_t.standard_terms := NULL;
l_rec_profile_t.override_terms := NULL;
l_rec_profile_t.dunning_letter_set_id := NULL;
l_rec_profile_t.interest_period_days := NULL;
l_rec_profile_t.payment_grace_days := NULL;
l_rec_profile_t.discount_grace_days := NULL;
l_rec_profile_t.statement_cycle_id := NULL;
l_rec_profile_t.account_status := NULL;
l_rec_profile_t.percent_collectable := NULL;
l_rec_profile_t.autocash_hierarchy_id := NULL; l_rec_profile_t.auto_rec_incl_disputed_flag := NULL;
l_rec_profile_t.tax_printing_option := NULL;
l_rec_profile_t.charge_on_finance_charge_flag := NULL;
l_rec_profile_t.grouping_rule_id := NULL;
l_rec_profile_t.clearing_days := NULL; l_rec_profile_t.cons_inv_flag := NULL;
l_rec_profile_t.cons_inv_type := NULL;
l_rec_profile_t.autocash_hierarchy_id_for_adr := NULL;
l_rec_profile_t.lockbox_matching_option := NULL;
l_rec_profile_t.created_by_module := 'BLC';
l_rec_profile_t.application_id := NULL;
l_rec_profile_t.review_cycle := NULL;
l_rec_profile_t.last_credit_review_date := NULL;
l_rec_profile_t.party_id := NULL;
l_rec_profile_t.credit_classification := NULL;
l_rec_profile_t.cons_bill_level := NULL;
l_rec_profile_t.late_charge_calculation_trx := NULL;
l_rec_profile_t.credit_items_flag := NULL;
l_rec_profile_t.disputed_transactions_flag := NULL;
l_rec_profile_t.late_charge_type := NULL;
l_rec_profile_t.late_charge_term_id := NULL;
l_rec_profile_t.interest_calculation_period := NULL;
l_rec_profile_t.hold_charged_invoices_flag := NULL;
l_rec_profile_t.message_text_id := NULL;
l_rec_profile_t.multiple_interest_rates_flag := NULL;
l_rec_profile_t.charge_begin_date := NULL;
l_rec_profile_t.automatch_set_id := NULL; hz_customer_profile_v2pub.create_customer_profile(p_init_msg_list => fnd_api.g_false,
p_customer_profile_rec => l_rec_profile_t,
p_create_profile_amt => fnd_api.g_true,
x_cust_account_profile_id => l_profile_id,
x_return_status => l_return_status2,
x_msg_count => l_msg_count2,
x_msg_data => l_msg_data2); FOR i IN 1 .. l_msg_count2 LOOP
l_msg_data2 := fnd_msg_pub.get(p_msg_index => i, p_encoded => 'F');
END LOOP; --FOR i IN 1 .. x_msg_count LOOP
dbms_output.put_line('x_return_status2:' || l_return_status2);
dbms_output.put_line('l_msg_count2:' || l_msg_count2);
dbms_output.put_line('l_msg_data2:' || l_msg_data2);
dbms_output.put_line('l_profile_id:' || l_profile_id); --======================================================
l_rec_profile.cust_acct_profile_amt_id := NULL;
l_rec_profile.cust_account_profile_id := l_profile_id;
l_rec_profile.currency_code := 'USD';
l_rec_profile.trx_credit_limit := 100;
l_rec_profile.overall_credit_limit := 100;
l_rec_profile.min_dunning_amount := NULL;
l_rec_profile.min_dunning_invoice_amount := NULL;
l_rec_profile.max_interest_charge := NULL;
l_rec_profile.min_statement_amount := NULL;
l_rec_profile.auto_rec_min_receipt_amount := NULL; l_rec_profile.min_fc_balance_amount := NULL;
l_rec_profile.min_fc_invoice_amount := NULL;
l_rec_profile.cust_account_id := 487194; --CXY-TEST002
l_rec_profile.site_use_id := 420072; --BILL_TO
l_rec_profile.expiration_date := NULL; l_rec_profile.created_by_module := 'BLC';
l_rec_profile.application_id := NULL;
l_rec_profile.exchange_rate_type := NULL;
l_rec_profile.min_fc_invoice_overdue_type := NULL;
l_rec_profile.min_fc_invoice_percent := NULL;
l_rec_profile.min_fc_balance_overdue_type := NULL;
l_rec_profile.min_fc_balance_percent := NULL;
l_rec_profile.interest_type := NULL;
l_rec_profile.interest_fixed_amount := NULL;
l_rec_profile.interest_schedule_id := NULL;
l_rec_profile.penalty_type := NULL;
l_rec_profile.penalty_rate := NULL;
l_rec_profile.min_interest_charge := NULL;
l_rec_profile.penalty_fixed_amount := NULL;
l_rec_profile.penalty_schedule_id := NULL; hz_customer_profile_v2pub.create_cust_profile_amt(p_init_msg_list => fnd_api.g_false,
p_check_foreign_key => fnd_api.g_true,
p_cust_profile_amt_rec => l_rec_profile,
x_cust_acct_profile_amt_id => l_profile_amt_id,
x_return_status => l_return_status1,
x_msg_count => l_msg_count1,
x_msg_data => l_msg_data1); FOR i IN 1 .. l_msg_count1 LOOP
l_msg_data1 := fnd_msg_pub.get(p_msg_index => i, p_encoded => 'F');
END LOOP; --FOR i IN 1 .. x_msg_count LOOP
dbms_output.put_line('x_return_status1:' || l_return_status1);
dbms_output.put_line('l_msg_count1:' || l_msg_count1);
dbms_output.put_line('l_msg_data1:' || l_msg_data1);
dbms_output.put_line('l_profile_amt_id:' || l_profile_amt_id);
EXCEPTION
WHEN OTHERS THEN
dbms_output.put_line('x_return_status:' || SQLERRM);
END;
详解ebs接口之客户配置文件导入(一)的更多相关文章
- 详解ebs接口之客户配置文件导入(二)
------------------------------------ -- 1a. Setup the Org_id ------------------------------------ ex ...
- 供应商API补充(详解EBS接口开发之供应商导入)(转)
原文地址 供应商导入的API补充(详解EBS接口开发之供应商导入) --供应商 --创建 AP_VENDOR_PUB_PKG.Create_Vendor ( p_api_version IN NUM ...
- 详解EBS接口开发之供应商导入
(一)供应商常用标准表简介 1.1 常用标准表 如下表中列出了与供应商相关的表和说明: 表名 说明 其他信息 ap_suppliers 供应商头表 供应商的头信息如:供应商名.供应商编码.税号等 ...
- 供应商导入的API补充(详解EBS接口开发之供应商导入)
--供应商 --创建 AP_VENDOR_PUB_PKG.Create_Vendor ( p_api_version IN NUMBER, p_init_msg_list IN VARCHAR2 := ...
- 详解EBS接口开发之供应商导入(补充)--错误信息处理
check reject details on records of AP_SUPPLIER_INT SELECT s.parent_table,s.reject_lookup_code,S.LAST ...
- 详解EBS接口开发之供应商导入补充-供应商地点增加实例
DECLARE --v_org_id number; v_vendor_interface_id NUMBER; v_vendor_site_interface_id NUMBER; --接口表的id ...
- 详解EBS接口开发之供应商导入(补充)--供应商银行账户更新
CREATE OR REPLACE PACKAGE BODY update_vendor_account IS PROCEDURE main(errbuf OUT VARCHAR2, retcode ...
- 详解EBS接口开发之物料导入API
create_item inv_item_grp.create_item(p_commit => fnd_api.g_true, -- p_item_rec => l_item_rec, ...
- 具体解释ebs接口之客户配置文件导入(二)
------------------------------------ -- 1a. Setup the Org_id ------------------------------------ ex ...
随机推荐
- 关于基因组注释文件GTF的解释
GTF文件的全称是gene transfer format,主要是对染色体上的基因进行标注.怎么理解呢,其实所谓的基因名,基因座等,都只是后来人们给一段DNA序列起的名字而已,还原到细胞中就是细胞核里 ...
- Go 语言指向指针的指针
如果一个指针变量存放的又是另一个指针变量的地址,则称这个指针变量为指向指针的指针变量. 当定义一个指向指针的指针变量时,第一个指针存放第二个指针的地址,第二个指针存放变量的地址: 指向指针的指针变量声 ...
- 使用WeihanLi.Redis操作Redis
WeihanLi.Redis Intro StackExchange.Redis 扩展,更简单的泛型操作,并提供一些的适用于业务场景中的扩展 基于 Redis 的五种数据类型扩展出了一些应用: Str ...
- iOS中的颜色
最近在改Bug的时候,才注意到iOS 中的颜色竟然也大有文章,特来记录一下. 先说一下问题,因为某界面中有用xib实现的一个view,而这个view 只在UIColletionView的layout ...
- Minor GC、Major GC和Full GC之间的区别
在 Plumbr 从事 GC 暂停检测相关功能的工作时,我被迫用自己的方式,通过大量文章.书籍和演讲来介绍我所做的工作.在整个过程中,经常对 Minor.Major.和 Full GC 事件的使用感到 ...
- Python强大的可变参数传递机制
今天模拟定义map函数.写着写着就发现Python可变长度参数的机制真是灵活而强大. 假设有一个元组t,包含n个成员: t=(arg1,...,argn) 而一个函数f恰好能接受n个参数: f(arg ...
- ZooKeeper之(三)工作原理
3.1 系统架构 ZooKeeper集群是由多台机器组成的,每台机器都充当了特定的角色,各种角色在协作过程中履行自己的任务,从而对外提供稳定.可靠的服务. 由上图可知,ZooKeeper集群由多台机器 ...
- 2016年年终CSDN博客总结
2015年12月1日,结束了4个月的尚观嵌入式培训生涯,经过了几轮重重面试,最终来到了伟易达集团.经过了长达3个月的试用期,正式成为了伟易达集团的助理工程师. 回顾一年来的学习,工作,生活.各种酸甜苦 ...
- N个鸡蛋放到M个篮子中
N个鸡蛋放到M个篮子中,篮子不能为空,要满足:对任意不大于N的数量,能用若干个篮子中鸡蛋的和表示. 写出函数,对输入整数N和M,输出所有可能的鸡蛋的放法. 比如对于9个鸡蛋5个篮子 解至少有三组: 1 ...
- 2014 BDTC 参会有感
中国大数据技术大会(Big Data Technology Conference,BDTC)是目前国内最具影响.规模最大的大数据领域的技术盛会.大会的前身是Hadoop中国云计算大会(Hadoop i ...