Oracle ERP 报表自动获取ORG_ID的问题

jukyy 2005-11-03 11:33:57
是这样的,在ERP里有多个OU,有的报表只是OU的ORG_ID不同,而为了给多个OU出同一类型的报表,需要做多个报表(分别为ORG_ID赋不同的值),如果报表可以自动获取报表所挂职责的ORG_ID那我就可以不用重复地挂报表了,或是能得到所挂的职责的ID也行,我可以通过职责所对应MO配置文件找到ORG_ID。
求助各位大侠!问题解决马上送分!
...全文
395 4 打赏 收藏 转发到动态 举报
写回复
用AI写文章
4 条回复
切换为时间正序
请发表友善的回复…
发表回复
痞子酷 2005-12-06
  • 打赏
  • 举报
回复
接分。
jukyy 2005-11-03
  • 打赏
  • 举报
回复
我搜了一下,很多人都说用fnd_profile.value('org_id'),我找到了一段话,说的意思和我试验的结果一样。
The oracle standard report always use srw.user_exit ('FND SRWINIT')
to get the previous session information depend on p_conc_request_id,and set the client session to be the same OU.Because the application is difference session with concurrent program.If you use fnd_profile.value(...) to get the profile.You may get the same OU ,eventhough you change OU.
You can also get the correct OU by using definitoin of parameter to pass in report.
jukyy 2005-11-03
  • 打赏
  • 举报
回复
试过用fnd_profile.value('org_id'),结果只能取出默认的业务组织。
用fnd_profile.value('resp_id')和fnd_profile.value('mfg_resp_id')没值;用fnd_global.RESP_ID得到 -1

郁闷!
jukyy 2005-11-03
  • 打赏
  • 举报
回复
我自己解决问题啦。呵呵。
现在问题是这个帖子无人回复,我怎么结贴呀。可以给自己加分么!!!

17,377

社区成员

发帖
与我相关
我的任务
社区描述
Oracle 基础和管理
社区管理员
  • 基础和管理社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧