销售订单更新、导入API OE_Order_PUB.Process_Order

当使用OE_Order_PUB.Process_Order API时,由于数据库中的OU屏蔽导致更新和导入操作失败。解决方法包括使用mo_global.set_policy_context('S',81)设置特定OU,或通过mo_global.init('ONT')初始化访问多组织的应用(需确保应用已注册多组织访问权限)。" 108110031,9857258,Perl处理Fastq文件:特定格式序列匹配与统计,"['生物信息学', 'Perl编程', '数据处理', '序列分析', '统计方法']

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

OE_Order_PUB.Process_Order

问题:数据库中因为有OU屏蔽,所以更新、导入失败

解决方法:

--设置OU,显示OU屏蔽的数据
通过mo_global.set_policy_context('S',81); 设置单OU,推荐使用这种方式(没有任何前提,直接将当前环境初始化为ORG_ID=81的环境)。
通过 mo_global.init('ONT');  将OM应用能访问的组织都初始化访问列表中(前提是使用的应用已经注册了多组织访问)



declare
    l_header_rec             oe_order_pub.header_rec_type;
    l_line_tbl               oe_order_pub.line_tbl_type;
    l_line_tb2               oe_order_pub.line_tbl_type;
    l_action_request_tbl     oe_order_pub.request_tbl_type;
    l_return_status          varchar2(1000);
    l_msg_count              number;
    l_msg_data               varchar2(1000);
    v_line_number            varchar2(1000);
    l_index                  varchar2(1000);
    x_header_val_rec         oe_order_pub.header_val_rec_type;
    x_header_adj_tbl         oe_order_pub.header_adj_tbl_type;
    x_header_adj_val_tbl     oe_order_pub.header_adj_val_tbl_type;
    x_header_price_att_tbl   oe_order_pub.header_price_att_tbl_type;
    x_header_adj_att_tbl     oe_order_pub.header_adj_att_tbl_type;
    x_header_adj_assoc_tbl   oe_order_pub.header_adj_assoc_tbl_type;
    x_header_scredit_tbl     oe_order_pub.header_scredit_tbl_type;
    x_header_scredit_val_tbl oe_order_pub.header_scredit_val_tbl_type;
    x_line_val_tbl           oe_order_pub.line_val_tbl_type;
    x_line_adj_tbl           oe_order_pub.line_adj_tbl_type;
    x_line_adj_val_tbl       oe_order_pub.line_adj_val_tbl_type;
    x_line_price_att_tbl     oe_order_pub.line_price_att_tbl_type;
    x_line_adj_att_tbl       oe_order_pub.line_adj_att_tbl_type; <
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值