zoukankan      html  css  js  c++  java
  • EBS 外部信用风险检查

    DECLARE
       l_msg_count       NUMBER;
       l_msg_data        VARCHAR2(2000);
       l_return_status   VARCHAR2(30);
       l_cc_hold_comment VARCHAR2(30);
       l_result_out      VARCHAR2(30);
       i                 NUMBER;
    BEGIN
       dbms_output.put_line(' ================ start testing =========== ');
       dbms_output.put_line(' .');
       l_msg_count       := 0;
       l_msg_data        := NULL;
       l_result_out      := NULL;
       l_cc_hold_comment := NULL;
       dbms_output.put_line(' Call OE_EXTERNAL_CREDIT_PUB.Check_External_Credit ');
       dbms_output.put_line(' . ');
       oe_external_credit_pub.check_external_credit(p_api_version               => 1.0,
                                                    p_init_msg_list             => fnd_api.g_true,
                                                    x_return_status             => l_return_status,
                                                    x_msg_count                 => l_msg_count,
                                                    x_msg_data                  => l_msg_data,
                                                    p_customer_name             => 'MGD_100',
                                                    p_customer_number           => NULL,
                                                    p_customer_id               => NULL,
                                                    p_bill_to_site_use_id       => 4656,
                                                    p_bill_to_address1          => NULL,
                                                    p_bill_to_address2          => NULL,
                                                    p_bill_to_address3          => NULL,
                                                    p_bill_to_address4          => NULL,
                                                    p_bill_to_city              => NULL,
                                                    p_bill_to_country           => NULL,
                                                    p_bill_to_postal_code       => NULL,
                                                    p_bill_to_state             => NULL,
                                                    p_functional_currency_code  => 'USD',
                                                    p_transaction_currency_code => 'USD',
                                                    p_transaction_amount        => 1000,
                                                    p_org_id                    => 204,
                                                    p_operating_unit_name       => NULL,
                                                    p_credit_check_rule_id      => 1043,
                                                    p_credit_check_rule_name    => NULL,
                                                    x_result_out                => l_result_out,
                                                    x_cc_hold_comment           => l_cc_hold_comment);
       dbms_output.put_line(' . ');
       dbms_output.put_line(' Out of API call with l_return_status =>' ||
                            l_return_status);
       dbms_output.put_line(' +++++++++++++++++++++++++++++++++++++++++++ ');
       dbms_output.put_line(' .');
       dbms_output.put_line('CREDIT CHECK RESULT ==> ' || l_result_out);
       dbms_output.put_line(' .');
       dbms_output.put_line('Hold Comment ==> ' || l_cc_hold_comment);
       dbms_output.put_line(' .');
       dbms_output.put_line(' +++++++++++++++++++++++++++++++++++++++++++ ');
       dbms_output.put_line(' . ');
       dbms_output.put_line(' ------------------------------------ ');
       dbms_output.put_line('l_cc_hold_comment: ' || l_cc_hold_comment);
       dbms_output.put_line('l_msg_data: ' || substr(l_msg_data, 1, 2000));
       dbms_output.put_line('l_msg_count: ' || l_msg_count);
       dbms_output.put_line('l_result_out: ' || l_result_out);
       dbms_output.put_line('l_return_status: ' || l_return_status);
       dbms_output.put_line('-------------------------------------');
       dbms_output.put_line(' .');
       dbms_output.put_line(' ************ Print messages ************');
       FOR i IN 1 .. l_msg_count LOOP
          l_msg_data := oe_msg_pub.get(p_msg_index => i, p_encoded => 'F');
          oe_debug_pub.add(substr(l_msg_data, 1, 255));
          dbms_output.put_line('Error msg: ' || substr(l_msg_data, 1, 2000));
       END LOOP;
       dbms_output.put_line(' . ');
       dbms_output.put_line(' ************ End messages ************');
       dbms_output.put_line(' . ');
       dbms_output.put_line(' . ');
       dbms_output.put_line(' ================ End of testing =========== ');
       dbms_output.put_line(' Output file name ==> cc_external_st.lst ');
    EXCEPTION
       WHEN OTHERS THEN
          RAISE;
    END;
    

  • 相关阅读:
    学习之spring属性文件注入
    学习之spring自带缓存
    FreeMarker语法
    spring mvc 拦截器
    spring mvc 全局异常处理
    spring mvc 多视图配置
    学习之spring注解DI疑惑
    @Transactional详解
    mybatis关联查询
    shiro 实现 用户 a 操作b 的权限 ,用户 b 能够及时获知。b不需要退出登陆 。 关闭鉴权缓存,或者不配置缓存
  • 原文地址:https://www.cnblogs.com/wanghang/p/6299203.html
Copyright © 2011-2022 走看看