最近工作中要添加PARTY里面的PROFILE,因为界面上没有添加和修改的地方。可能ORACLE是希望这些PROFILE都从PROFILE CLASS那里带过来,不希望维护客户的地方改这些PROFILE.

不过TCA API还是能实现改PROFILE和PROFILE AMT的值。

下面是CREATE PROFILE , CREATE PROFILE AMT & UPDATE PROFILE AMT的脚本,希望对大家有用。[@more@]

--CREATE CUSTOMER PROFILE & CUSTOMER PROFILE AMT

declare

-- Local variables here

p_customer_profile_rec HZ_CUSTOMER_PROFILE_V2PUB.CUSTOMER_PROFILE_REC_TYPE;

p_cust_acct_relate_rec HZ_CUST_ACCOUNT_V2PUB.CUST_ACCT_RELATE_REC_TYPE;

p_cust_profile_amt_rec HZ_CUSTOMER_PROFILE_V2PUB.cust_profile_amt_rec_type;

p_PROFILE_CLASS_ID NUMBER;

x_cust_account_id NUMBER;

x_account_number VARCHAR2(20);

x_party_id NUMBER;

x_party_number VARCHAR2(20);

x_profile_id NUMBER;

x_return_status VARCHAR2(1);

x_msg_count NUMBER;

x_msg_data VARCHAR2(2000);

x_cust_account_profile_id NUMBER;

x_cust_acct_profile_amt_id NUMBER;

begin

-- Test statements here

-- Create Customer Profile Amount Record

p_customer_profile_rec.PARTY_ID := 1820253;

p_customer_profile_rec.created_by_module := 'TCA_V2_API';

p_cust_profile_amt_rec.currency_code := 'CNY';

p_cust_profile_amt_rec.trx_credit_limit := 50000;

p_cust_profile_amt_rec.overall_credit_limit := 200000;

p_cust_profile_amt_rec.created_by_module := 'TCA_V2_API';

HZ_CUSTOMER_PROFILE_V2PUB.create_customer_profile

(

'T',

p_customer_profile_rec ,

'T',--p_customer_profile_amt,

x_cust_account_profile_id ,

x_return_status ,

x_msg_count,

x_msg_data

);

dbms_output.put_line('***************************');

dbms_output.put_line('Output information ....');

dbms_output.put_line('x_cust_account_profile_id: '||x_cust_account_profile_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);

dbms_output.put_line('***************************');

p_cust_profile_amt_rec.cust_account_profile_id := x_cust_account_profile_id;

p_cust_profile_amt_rec.cust_account_id := -1;

HZ_CUSTOMER_PROFILE_V2PUB.create_cust_profile_amt (

'T',

'T',

p_cust_profile_amt_rec ,

x_cust_acct_profile_amt_id ,

x_return_status ,

x_msg_count ,

x_msg_data

);

dbms_output.put_line('***************************');

dbms_output.put_line('Output information ....');

dbms_output.put_line('x_cust_acct_profile_amt_id: '||x_cust_acct_profile_amt_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);

dbms_output.put_line('***************************');

end;

--UPDATE PROFLIE AMT

declare

-- Local variables here

p_customer_profile_rec HZ_CUSTOMER_PROFILE_V2PUB.CUSTOMER_PROFILE_REC_TYPE;

p_cust_acct_relate_rec HZ_CUST_ACCOUNT_V2PUB.CUST_ACCT_RELATE_REC_TYPE;

p_cust_profile_amt_rec HZ_CUSTOMER_PROFILE_V2PUB.cust_profile_amt_rec_type;

P_cust_account_profile_id NUMBER;

p_cust_acct_profile_amt_id NUMBER;

p_PROFILE_CLASS_ID NUMBER;

x_profile_id NUMBER;

x_return_status VARCHAR2(1);

x_msg_count NUMBER;

x_msg_data VARCHAR2(2000);

x_cust_account_profile_id NUMBER;

x_cust_acct_profile_amt_id NUMBER;

x_object_version_number NUMBER ;

begin

-- Test statements here

-- Create Customer Profile Amount Record

p_cust_profile_amt_rec.currency_code := 'CNY';

p_cust_profile_amt_rec.trx_credit_limit := 7000;

p_cust_profile_amt_rec.overall_credit_limit := 10000;

--p_cust_profile_amt_rec.created_by_module := 'TCA_V2_API';

BEGIN

SELECT cust_account_profile_id

INTO P_cust_account_profile_id

FROM hz_customer_profiles

WHERE party_id = 1819254

AND cust_account_id = -1;

EXCEPTION

WHEN OTHERS THEN

P_cust_account_profile_id:= NULL;

END;

BEGIN

SELECT cust_acct_profile_amt_id ,object_version_number

INTO p_cust_acct_profile_amt_id,x_object_version_number

FROM HZ_CUST_PROFILE_AMTS

WHERE cust_account_profile_id = P_cust_account_profile_id

AND currency_code = 'CNY';

EXCEPTION

WHEN OTHERS THEN

p_cust_acct_profile_amt_id:= NULL;

x_object_version_number:= 0;

END;

p_cust_profile_amt_rec.cust_account_profile_id := P_cust_account_profile_id;

p_cust_profile_amt_rec.cust_acct_profile_amt_id := p_cust_acct_profile_amt_id;

p_cust_profile_amt_rec.cust_account_id := -1;

HZ_CUSTOMER_PROFILE_V2PUB.update_cust_profile_amt (

'T',

p_cust_profile_amt_rec ,

x_object_version_number,

x_return_status ,

x_msg_count,

x_msg_data

);

dbms_output.put_line('***************************');

dbms_output.put_line('Output information ....');

-- dbms_output.put_line('x_object_version_number: '||x_object_version_number);

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);

dbms_output.put_line('***************************');

end;

来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/13247/viewspace-1060267/,如需转载,请注明出处,否则将追究法律责任。

oracle客户信用额度是否含税,客户信用额度信用天数相关推荐

  1. Oracle新手笔记(2) 关于Oracle 9i或9i以上版本客户端连接Oracle 8i及8i版本以下服务器端中文字符乱码的解决办法...

    在做项目过程中,遇到Oracle 9i或9i版本以上客户端连接Oracle 8i及8i版本以下服务器端时,查询出来的中文数据全部变成了乱码.经查询资料终于解决了乱码问题. 开发工具是ASP.NET(C ...

  2. oracle tax 中国税,oracle_TAX_税基础设置操作手册.doc

    您所在位置:网站首页 > 海量文档 &nbsp>&nbsp计算机&nbsp>&nbsp数据库 oracle_TAX_税基础设置操作手册.doc21页 ...

  3. 实现单服务器响应多客户机,对等网与客户机/服务器网络

    对等网:在对等网络中,没有专门的服务器,计算机都是平等的,同时担任客户机和服务器两种角色:对等网通常被称为工作组网络,当我们打开网上邻居-查看工作组计算机时,这种组成就是对等网,每台机可以共享资源给他 ...

  4. 合同的不含税与税额怎么算

    假设税率是6% 不含税金额=总金额/1.06 税额=不含税金额×0.06 增值税在线计算器:http://www.ab126.com/goju/7332.html 大小写转换:https://link ...

  5. AP: Oracle EBS AP INVOICE TAX 税码计算规则(ZT)

    1.采购订单上输入的价格应该用不含税的价格输入. 这一金额将来在被发票匹配时会作为分配行中的item金额. 2.在采购订单发运行中输入的税码在以下情况起作用: 根据应付款选项中对税码默认值的设置,发票 ...

  6. 关于含税单价和不含税单价的关系记录

    --当录入不含税单价=110.27时,算出的含税单价是124.61 select HSPrice=ROUND(110.27*1.13,2) --当录入的含税单价=124.6时,算出的不含税单价是110 ...

  7. 已知含税单价、税率、数量,计算不含税单价、不含税金额、税额

    不含税单价=含税单价÷(1+税率)不含税金额=不含税单价×数量税额=不含税单价×税率=含税单价÷(1+税率)×税率

  8. 请确保您已登录客户机操作系统。在客户机中装载CD驱动器启动终端,使用tar解压缩安装程序,然后执行vmware-insall.pl安装VMware Tools。

    解决Ubuntu安装VM Tools请确保您已登录客户机操作系统.在客户机中装载CD驱动器启动终端,使用tar解压缩安装程序,然后执行vmware-insall.pl安装VMware Tools._w ...

  9. 2017年该到哪里买房?只需看这个指标!(GDP含税量、人均国税)

    http://cj.sina.com.cn/article/detail/2949462582/159848?cre=sinapc&mod=g&loc=34&r=0&d ...

最新文章

  1. python中lambda 表达式(无参数、一个参数、默认参数、可变参数(*args、**kwargs)、带判断的lambda、列表使用lambda)
  2. CornerNet-Lite测试
  3. java时间比较大小_Go、Java 和 Rust 的比较:得出了挺多结论
  4. 高性能Web服务器Nginx使用指南
  5. 二分法实战教学快速入门(折半查找法)
  6. 895计算机专业基础,2017北京工业大学895计算机学科专业基础考研入学考试大纲...
  7. 应该怎样读TAOCP
  8. ir2104驱动电路原理
  9. Oracle ora-12514报错解决方法
  10. dbt2 mysql_2.5.4 数据库测试套件中的dbt2 TPC-C 测试
  11. 华为员工工资曝光:入职12年月薪31万!手里的窝窝头突然就不香了.....
  12. 题目95:百鸡问题:一只公鸡值5元,一只母鸡值3元,而1元可买3只小鸡,用百元买百鸡。现有n元钱,想买n只鸡。问有多少种买法?(钱要用完)
  13. 整合NGFW和威胁分析后,防火墙这是要上天?
  14. 虚拟机复制镜像操作方法
  15. 华东师范大学计算机试题,(华东师范大学计算机考试习题.doc
  16. 莫纳什大学计算机专业录取要求,2020年莫纳什大学计算机信息硕士申请条件
  17. poi2011 切题记
  18. 软考高级-信息系统管理师之综合测试与管理(最新版)
  19. 《MATLAB智能算法30个案例》:第20章 基于遗传模拟退火算法的聚类算法
  20. iOS Core Bluetooth_3 用作中央设备的常用方法(1/2)[swift实现]

热门文章

  1. 校招年薪35万+,严重倒挂老员工是互联网行业常态?
  2. 三相交流电_百度百科
  3. 基于Php幼儿园管理系统
  4. 维护BOM CSAP_MAT_BOM_MAINTAIN
  5. Python进阶:使用Matplotlib进行数据可视化(一)
  6. 日历算法 [ 解读算法的乐趣 ]
  7. 极速PDF编辑器提示缺少字体解决方案
  8. 无限互联--EGOTableViewPullRefresh个人理解代码原理和使用
  9. 使用mirDeep2进行miRNA-seq数据分析
  10. 图灵社区 : 图书 : UNIX网络编程 卷1:套接字联网API(英文版•第3版)