Oracle EBS: no data found in Package OE_ORDER_WF_U
作者:admin 日期:2012-09-18
message is: orA-01403: no data found in Package OE_ORDER_WF_UTIL Procedure Create_LineWorkItem
message index is: 1
message is: User-Defined Exception in Package OE_ORDER_WF_UTIL Procedure CreateStart_LineProcess
message index is: 2
折腾了一个下午,才发现是职责ID跟用户ID搞错了的问题,唉,真是汗自己.兄弟们要注意啊.
问题来源:通过OM提供的API来创建订单,好像通过interace抛请求的时间要比直接使用API的长,所以就换成了用API
还是找个查询用户职责的sql安全一些
select U.user_id user_id,
u.user_name,
u.description,
WLR.ORIG_SYSTEM_ID RESPONSIBILITY_ID,
(select application_id
from apps.fnd_application
where application_short_name = /* Val between 1st and 2nd separator */
replace(substr(WAUR.ROLE_NAME,
INSTR(WAUR.ROLE_NAME, '|', 1, 1) + 1,
(INSTR(WAUR.ROLE_NAME, '|', 1, 2) -
INSTR(WAUR.ROLE_NAME, '|', 1, 1) - 1)),
'%col',
':')) RESPONSIBILITY_APPLICATION_ID,
(select security_group_id
from apps.fnd_security_groups
where security_group_key = /* Val after 3rd separator */
replace(substr(WAUR.ROLE_NAME,
INSTR(WAUR.ROLE_NAME, '|', 1, 3) + 1),
'%col',
':')) SECURITY_GROUP_ID,
WAUR.START_DATE,
WAUR.END_DATE END_DATE,
WAUR.CreateD_BY CreateD_BY,
WAUR.CREATION_DATE CREATION_DATE,
WAUR.LAST_UpdateD_BY LAST_UpdateD_BY,
WAUR.LAST_Update_DATE LAST_Update_DATE,
WAUR.LAST_Update_LOGIN LAST_Update_LOGIN
from apps.fnd_user u,
apps.wf_all_user_role_assignments waur,
apps.wf_local_roles wlr
where u.user_name = waur.user_name
and waur.role_name = wlr.name
--and waur.assignment_type = 'INHERITED'
-- and wlr.orig_system = 'FND_RESP'
and waur.END_DATE is null
and not waur.role_name like 'FND_RESP|%|ANY';
message index is: 1
message is: User-Defined Exception in Package OE_ORDER_WF_UTIL Procedure CreateStart_LineProcess
message index is: 2
折腾了一个下午,才发现是职责ID跟用户ID搞错了的问题,唉,真是汗自己.兄弟们要注意啊.
问题来源:通过OM提供的API来创建订单,好像通过interace抛请求的时间要比直接使用API的长,所以就换成了用API
还是找个查询用户职责的sql安全一些
复制内容到剪贴板 程序代码
select U.user_id user_id,
u.user_name,
u.description,
WLR.ORIG_SYSTEM_ID RESPONSIBILITY_ID,
(select application_id
from apps.fnd_application
where application_short_name = /* Val between 1st and 2nd separator */
replace(substr(WAUR.ROLE_NAME,
INSTR(WAUR.ROLE_NAME, '|', 1, 1) + 1,
(INSTR(WAUR.ROLE_NAME, '|', 1, 2) -
INSTR(WAUR.ROLE_NAME, '|', 1, 1) - 1)),
'%col',
':')) RESPONSIBILITY_APPLICATION_ID,
(select security_group_id
from apps.fnd_security_groups
where security_group_key = /* Val after 3rd separator */
replace(substr(WAUR.ROLE_NAME,
INSTR(WAUR.ROLE_NAME, '|', 1, 3) + 1),
'%col',
':')) SECURITY_GROUP_ID,
WAUR.START_DATE,
WAUR.END_DATE END_DATE,
WAUR.CreateD_BY CreateD_BY,
WAUR.CREATION_DATE CREATION_DATE,
WAUR.LAST_UpdateD_BY LAST_UpdateD_BY,
WAUR.LAST_Update_DATE LAST_Update_DATE,
WAUR.LAST_Update_LOGIN LAST_Update_LOGIN
from apps.fnd_user u,
apps.wf_all_user_role_assignments waur,
apps.wf_local_roles wlr
where u.user_name = waur.user_name
and waur.role_name = wlr.name
--and waur.assignment_type = 'INHERITED'
-- and wlr.orig_system = 'FND_RESP'
and waur.END_DATE is null
and not waur.role_name like 'FND_RESP|%|ANY';
上一篇: 哈佛,幸福课语录PPT
下一篇: Oracle EBS: order Management API代码示例
文章来自: 本站原创
引用通告: 查看所有引用 | 我要引用此文章
Tags: OE_ORDER_WF_UTIL OE_ORDER_WF_UTIL
相关日志:
下一篇: Oracle EBS: order Management API代码示例
文章来自: 本站原创
引用通告: 查看所有引用 | 我要引用此文章
Tags: OE_ORDER_WF_UTIL OE_ORDER_WF_UTIL
相关日志:
评论: 0 | 引用: 0 | 查看次数: 8259
发表评论