R12 - Error 'Unable to process your transaction. The operating unit is either invalid or it cannot b

在R12.1.1中,尝试操作时遇到错误:'无法处理你的交易。运营单位要么无效,要么无法推导。请检查你的多组织配置选项。'问题出现在使用特定API创建和更新客户时,尽管使用Receivables API没有问题。解决方案包括正确设置组织上下文。

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

In this Document

 Symptoms
 Cause
 Solution
 Still Have Questions?
 References


APPLIES TO:

Oracle Trading Community - Version 12.1.1 and later
Information in this document applies to any platform.
***Checked for Relevance 2-Jul-2013***

SYMPTOMS

In R12.1.1, run

hz_cust_account_site_v2pub.create_cust_acct_site

 and receive the following error message:

"ERROR-Unable to process your transaction. The operating unit is either invalid or it cannot be derived. Please verify your Multi-Org profile options.

The parameter for context used are from a valid Receivables responsibility and was tested with receivables API without problems. Now we are trying to create and update customers with TCA API, test with hz_cust_account_v2pub.create_cust_account API are fine, now tests with hz_cust_account_site_v2pub.create_cust_acct_site shows error because is not possible to validate org_id."

Steps to reproduce:

1. Execute the following to set the org_id:

FND_GLOBAL.APPS_INITIALIZE(user_id, repsp_id, reps_app_id);
mo_global.set_policy_context('S', org_id);

2. Execute the following procedure:

p_cust_acct_site_rec.cust_account_id := 5050;
p_cust_acct_site_rec.party_site_id := 16051;
p_cust_acct_site_rec.created_by_module := 'SISTEMAS_POST';
p_cust_acct_site_rec.application_id := 222;
p_cust_acct_site_rec.status := 'A';
p_cust_acct_site_rec.org_id := 82;

hz_cust_account_site_v2pub.create_cust_acct_site 
( p_init_msg_list => FND_API.G_TRUE,
p_cust_acct_site_rec => p_cust_acct_site_rec,
x_cust_acct_site_id => p_cust_acct_site_id,
x_return_status => p_return_status,
x_msg_count => p_msg_count,
x_msg_data => p_msg_data
);

 

CAUSE

Org context is not properly set.

SOLUTION

To implement the solution, please execute the following steps:

1) Set the org context as follows:

Use the following queries to find responsibility id and user id:

a. Query to find responsibility id

select responsibility_id,responsibility_name
from fnd_responsibility_vl
where application_id = 222
and responsibility_name like '%&responsibility_name%';

 
b. Query to find user id

select user_id,user_name
from fnd_user
where user_name = '&user_name';

 
For example:
if resp_id = 50559 and user_id = 1318, then execute the following:

fnd_global.apps_initialize(user_id => 1318, resp_id => 50559, resp_appl_id => 222 );
mo_global.set_policy_context('S',<your_org_id>);

 
2) Run the API.

Still Have Questions?

 

To discuss this information further with Oracle experts and industry peers, we encourage you to review, join or start a discussion in the  My Oracle Support Receivables Community.

To provide feedback on this note, click on the  Rate this document icon at the top right corner of this note.
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值