试过用fnd_profile.value('org_id'),结果只能取出默认的业务组织。
用fnd_profile.value('resp_id')和fnd_profile.value('mfg_resp_id')没值;用fnd_global.RESP_ID得到 -1郁闷!

解决方案 »

  1.   

    我搜了一下,很多人都说用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.