DECLARE

   l_return_status VARCHAR2(300);
   l_msg_count     NUMBER;
   l_msg_data      VARCHAR2(300);
   l_rec_type      hz_cust_account_v2pub.cust_account_rec_type;    CURSOR cur IS
      SELECT party.party_name,
             cust.account_number,
             cust.creation_date,
             party.tax_reference,
             cust.cust_account_id
        FROM hz_cust_accounts cust, hz_parties party
       WHERE cust.party_id = party.party_id
         AND cust.account_number NOT IN
             ('', --
              '', --
              '', --
              '', --
              '', --
              '', --
              '',
              ''); BEGIN
   FOR rec IN cur LOOP
   
      l_rec_type.cust_account_id := rec.cust_account_id;
      l_rec_type.account_name    := rec.party_name || '(作废)';
      -- l_rec_type.cust_account_id := rec.CUST_ACCOUNT_ID;
      hz_cust_account_v2pub.update_cust_account(p_init_msg_list         => fnd_api.g_false,
                                                p_cust_account_rec      => l_rec_type,
                                                p_object_version_number => 2.0,
                                                x_return_status         => l_return_status,
                                                x_msg_count             => l_msg_count,
                                                x_msg_data              => l_msg_data);
   
      IF l_return_status <> 'S' THEN
         dbms_output.put_line('E:' || cux_util.dump_error_stack);
         RAISE;
      END IF;
   
   END LOOP; END;

最新文章

  1. 自身对highcharts理解
  2. ThinkPHP上传返回 “文件上传保存错误!”
  3. The file couldn’t be opened because you don’t have permission to view it
  4. JDBC批量Insert深度优化(有事务)
  5. C语言实现strcpy
  6. 类的访问修饰符_C#
  7. jQuery插件开发 格式与解析2
  8. Ubuntu14.04上安装openGL
  9. Net分布式系统之七:日志采集系统(1)
  10. PCI9054 学习小结
  11. idea软件破解汉化
  12. 005-2-Python文件操作
  13. Yii2 使用json 和设置component 中&#39;format&#39; =&gt; yii\web\Response::FORMAT_JSON 的区别
  14. cxf-rs 、spring 和 swagger 环境配置切换【github 有项目】
  15. Google Tango SDK下载
  16. 冀永楠:OCR的应用锦集及背后技术
  17. nodejs实战的github地址,喜欢的你还等啥
  18. UVALive - 6856 Circle of digits 后缀数组+二分
  19. Linux基础命令(2)
  20. 在 Mac OS 上编译 OBS

热门文章

  1. cmake:用add_subdirectory()添加外部项目文件夹
  2. springboot-5-整合jpa
  3. bet阶段验收互评
  4. vue 2.x之组件的数据传递(一)
  5. 169.254地址无网关信息 ----- 解决方案 启动DHCP服务
  6. For update带来的思考
  7. Linux man C++ 库函数
  8. vs中插件影响代码自动创建后台事件问题
  9. win10 uwp 让焦点在点击在页面空白处时回到textbox中
  10. Promise异步编程整理