码迷,mamicode.com
首页 > 数据库 > 详细

Oracle AP更新供应商

时间:2018-11-23 14:16:01      阅读:308      评论:0      收藏:0      [点我收藏+]

标签:har   com   ati   comm   art   enable   lin   put   varchar2   

/*l_return_status:S
l_msg_count:0
l_msg_data:
l_vendor_id:133003
l_party_id:236055
 */
DECLARE
   l_return_status VARCHAR2(1);
   l_msg_count     NUMBER;
   l_msg_data      VARCHAR2(1000);
   l_vendor_rec    ap_vendor_pub_pkg.r_vendor_rec_type;
   l_vendor_id     NUMBER;
   l_party_id      NUMBER;
BEGIN
   fnd_global.apps_initialize(167050728200);
   mo_global.init(SQLAP);
   --
   l_vendor_rec.vendor_name             := DDDDD;
   l_vendor_rec.enabled_flag            := Y;
   l_vendor_rec.vendor_type_lookup_code := VENDOR;
   l_vendor_rec.vat_code                := CN_VAT_IN_17;
   l_vendor_rec.vat_registration_num    := 12332111;

   --- hz_organization_profiles.incorp_year
   ap_vendor_pub_pkg.update_vendor(p_api_version      => 1.0,
                                   p_init_msg_list    => fnd_api.g_true,
                                   p_commit           => fnd_api.g_false,
                                   p_validation_level => fnd_api.g_valid_level_full,
                                   x_return_status    => l_return_status,
                                   x_msg_count        => l_msg_count,
                                   x_msg_data         => l_msg_data,
                                   p_vendor_rec       => l_vendor_rec,
                                   x_vendor_id        => l_vendor_id);
   dbms_output.put_line(l_return_status: || l_return_status);
   dbms_output.put_line(l_msg_count: || l_msg_count);
   dbms_output.put_line(l_msg_data: || l_msg_data);
   dbms_output.put_line(l_vendor_id: || l_vendor_id);
   dbms_output.put_line(l_party_id: || l_party_id);
   dbms_output.put_line(fnd_msg_pub.get_detail(1F));
END; 

 

Oracle AP更新供应商

标签:har   com   ati   comm   art   enable   lin   put   varchar2   

原文地址:https://www.cnblogs.com/jenrry/p/10006808.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!