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