Oracle ERP 报表自动获取ORG_ID的问题
是这样的,在ERP里有多个OU,有的报表只是OU的ORG_ID不同,而为了给多个OU出同一类型的报表,需要做多个报表(分别为ORG_ID赋不同的值),如果报表可以自动获取报表所挂职责的ORG_ID那我就可以不用重复地挂报表了,或是能得到所挂的职责的ID也行,我可以通过职责所对应MO配置文件找到ORG_ID。
求助各位大侠!问题解决马上送分!
问题点数:100、回复次数:4Top
1 楼jukyy(春天会回来)回复于 2005-11-03 11:46:37 得分 0
试过用fnd_profile.value('org_id'),结果只能取出默认的业务组织。
用fnd_profile.value('resp_id')和fnd_profile.value('mfg_resp_id')没值;用fnd_global.RESP_ID得到 -1
郁闷!Top
2 楼jukyy(春天会回来)回复于 2005-11-03 11:53:37 得分 0
我搜了一下,很多人都说用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.Top
3 楼jukyy(春天会回来)回复于 2005-11-03 17:36:31 得分 0
我自己解决问题啦。呵呵。
现在问题是这个帖子无人回复,我怎么结贴呀。可以给自己加分么!!!
Top
4 楼ouygg(痞子酷)回复于 2005-12-06 08:52:24 得分 100
接分。Top




