设为首页 收藏本站
查看: 769|回复: 0

[经验分享] ORACLE EBS 价目表的导入功能-存储过程BUG

[复制链接]

尚未签到

发表于 2015-9-23 09:43:40 | 显示全部楼层 |阅读模式
  能模块:ERP价目表的批量导入
  错误信息:
  问题解决:javascript与java跨界传递map
  EBS在调用价目表批量导入功能(中文名---QP:成批导入价目表;英文名---)时,提示上图错误,调用的存储过程中包含:
  QP_BULK_LOADER_PUB
  qp_bulk_util
  问题出在qp_bulk_util中update_header对语言环境的查询,过程修改如下
  procedure update_header(p_header_rec in out nocopy qp_bulk_loader_pub.header_rec_type) is
begin
    qp_bulk_loader_pub.write_log('Entering Update Header');
    forall i in p_header_rec.list_header_id.first .. p_header_rec.list_header_id.last
        update qp_list_headers_b
           set last_update_date         = sysdate,
               last_updated_by          = fnd_global.user_id,
               last_update_login        = fnd_global.conc_login_id,
               program_application_id   = 661,
               program_id               = null,
               program_update_date      = null,
               request_id               = p_header_rec.request_id(i),
               list_type_code           = p_header_rec.list_type_code(i),
               start_date_active        = fnd_date.canonical_to_date(p_header_rec.start_date_active(i)),
               end_date_active          = fnd_date.canonical_to_date(p_header_rec.end_date_active(i)),
               automatic_flag           = p_header_rec.automatic_flag(i),
               currency_code            = p_header_rec.currency_code(i),
               rounding_factor          = p_header_rec.rounding_factor(i),
               ship_method_code         = p_header_rec.ship_method_code(i),
               freight_terms_code       = p_header_rec.freight_terms_code(i),
               terms_id                 = p_header_rec.terms_id(i),
               comments                 = p_header_rec.comments(i),
               discount_lines_flag      = p_header_rec.discount_lines_flag(i),
               gsa_indicator            = p_header_rec.gsa_indicator(i),
               prorate_flag             = p_header_rec.prorate_flag(i),
               source_system_code       = p_header_rec.source_system_code(i),
               ask_for_flag             = p_header_rec.ask_for_flag(i),
               active_flag              = p_header_rec.active_flag(i),
               parent_list_header_id    = p_header_rec.parent_list_header_id(i),
               start_date_active_first  = p_header_rec.start_date_active_first(i),
               end_date_active_first    = p_header_rec.end_date_active_first(i),TCP/IP、Http、Socket的区别
               active_date_first_type   = p_header_rec.active_date_first_type(i),
               start_date_active_second = p_header_rec.start_date_active_second(i),
               end_date_active_second   = p_header_rec.end_date_active_second(i),
               active_date_second_type  = p_header_rec.active_date_second_type(i),
               context                  = p_header_rec.context(i),
               attribute1               = p_header_rec.attribute1(i),
               attribute2               = p_header_rec.attribute2(i),
               attribute3               = p_header_rec.attribute3(i),
               attribute4               = p_header_rec.attribute4(i),
               attribute5               = p_header_rec.attribute5(i),
               attribute6               = p_header_rec.attribute6(i),
               attribute7               = p_header_rec.attribute7(i),
               attribute8               = p_header_rec.attribute8(i),
               attribute9               = p_header_rec.attribute9(i),
               attribute10              = p_header_rec.attribute10(i),
               attribute11              = p_header_rec.attribute11(i),
               attribute12              = p_header_rec.attribute12(i),
               attribute13              = p_header_rec.attribute13(i),
               attribute14              = p_header_rec.attribute14(i),
               attribute15              = p_header_rec.attribute15(i),
               mobile_download          = p_header_rec.mobile_download(i),
               currency_header_id       = p_header_rec.currency_header_id(i),
               pte_code                 = p_header_rec.pte_code(i),
               list_source_code         = p_header_rec.list_source_code(i),
               orig_system_header_ref   = p_header_rec.orig_sys_header_ref(i),
               orig_org_id              = p_header_rec.orig_org_id(i),
               global_flag              = p_header_rec.global_flag(i)
         where (list_header_id = p_header_rec.list_header_id(i) or orig_system_header_ref = p_header_rec.orig_sys_header_ref(i))
           and p_header_rec.process_status_flag(i) = 'P'; --IS NULL;
    forall i in p_header_rec.list_header_id.first .. p_header_rec.list_header_id.last
        update qp_list_headers_tl qlh
           set last_update_date  = sysdate,
               last_updated_by   = fnd_global.user_id,
               last_update_login = fnd_global.conc_login_id,
               language          = nvl(p_header_rec.language(i), language),
               source_lang       = nvl(p_header_rec.source_lang(i), source_lang),
               name              = p_header_rec.name(i),
               description       = p_header_rec.description(i),
               version_no        = p_header_rec.version_no(i)
         where list_header_id = (select list_header_id
                                   from qp_list_headers_b qlh
                                  where (list_header_id = p_header_rec.list_header_id(i) or
                                        orig_system_header_ref = p_header_rec.orig_sys_header_ref(i))
                                       --add by eric zhai---------------------
                                    and language = p_header_rec.language(i)
                                 --add by erci zhai---------------------
                                 )
           and p_header_rec.process_status_flag(i) = 'P'; --IS NULL;
    qp_bulk_loader_pub.write_log('Header Records Updated: ' || sql%rowcount);
    qp_bulk_loader_pub.write_log('Leaving Update Header');
exception
    when fnd_api.g_exc_unexpected_error then
        qp_bulk_loader_pub.write_log('UNEXCPECTED ERROR IN QP_BULK_UTIL.UPDATE_HEADER:' || sqlerrm);
        raise fnd_api.g_exc_unexpected_error;
    when others then
        qp_bulk_loader_pub.write_log('UNEXCPECTED ERROR IN QP_BULK_UTIL.UPDATE_HEADER:' || sqlerrm);
        raise fnd_api.g_exc_unexpected_error;
end update_header;

运维网声明 1、欢迎大家加入本站运维交流群:群②:261659950 群⑤:202807635 群⑦870801961 群⑧679858003
2、本站所有主题由该帖子作者发表,该帖子作者与运维网享有帖子相关版权
3、所有作品的著作权均归原作者享有,请您和我们一样尊重他人的著作权等合法权益。如果您对作品感到满意,请购买正版
4、禁止制作、复制、发布和传播具有反动、淫秽、色情、暴力、凶杀等内容的信息,一经发现立即删除。若您因此触犯法律,一切后果自负,我们对此不承担任何责任
5、所有资源均系网友上传或者通过网络收集,我们仅提供一个展示、介绍、观摩学习的平台,我们不对其内容的准确性、可靠性、正当性、安全性、合法性等负责,亦不承担任何法律责任
6、所有作品仅供您个人学习、研究或欣赏,不得用于商业或者其他用途,否则,一切后果均由您自己承担,我们对此不承担任何法律责任
7、如涉及侵犯版权等问题,请您及时通知我们,我们将立即采取措施予以解决
8、联系人Email:admin@iyunv.com 网址:www.yunweiku.com

所有资源均系网友上传或者通过网络收集,我们仅提供一个展示、介绍、观摩学习的平台,我们不对其承担任何法律责任,如涉及侵犯版权等问题,请您及时通知我们,我们将立即处理,联系人Email:kefu@iyunv.com,QQ:1061981298 本贴地址:https://www.yunweiku.com/thread-117519-1-1.html 上篇帖子: Oracle EBS Request Status: Pending 下篇帖子: EBS成本核算方法
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

扫码加入运维网微信交流群X

扫码加入运维网微信交流群

扫描二维码加入运维网微信交流群,最新一手资源尽在官方微信交流群!快快加入我们吧...

扫描微信二维码查看详情

客服E-mail:kefu@iyunv.com 客服QQ:1061981298


QQ群⑦:运维网交流群⑦ QQ群⑧:运维网交流群⑧ k8s群:运维网kubernetes交流群


提醒:禁止发布任何违反国家法律、法规的言论与图片等内容;本站内容均来自个人观点与网络等信息,非本站认同之观点.


本站大部分资源是网友从网上搜集分享而来,其版权均归原作者及其网站所有,我们尊重他人的合法权益,如有内容侵犯您的合法权益,请及时与我们联系进行核实删除!



合作伙伴: 青云cloud

快速回复 返回顶部 返回列表