Quick one today, trying to work on the bursting series ...
You have developed Data Templates for your EBS instance, but what about setting the org id. In good ol Oracle Reports you just added the following command in your before report trigger:
srw.user_exit('FND SRWINIT')and it was all done for you. In the world of BIP we go one step further. The executable that runs your data template sets the org id for you so you do not have to do anything.
Now there is a caveat to this, as long as you are using the BIP delivered executable (XDODTEXE) in EBS to call the data engine to run your data templates you're fine ... if you are accessing the data engine via the java APIs or the BIP Enterprise release then its your responsibility to set the org id before the query executes. The simplest way to do it is to call a pl/sql package in the pre-fetch trigger and in there set the org id:
fnd_client_info.setOrgContext(ORG_ID)
then you're set and you'll get the data you are expecting ... well as long as you wrote the query correctly of course ... been there done that, got the T shirt :o)
Comments (1)
Hi,
We are using standalone BI Publisher 10.1.3.4.1. Looks like we need to set it before calling the SQL in a pre-fetch trigger. I tried to call in a pre-fetch trigger and it not working.
Could you please help me how can I set it out?
Thanks in advance.
Thanks & Regards,
Rama Krishna. P
Posted by Rama Krishna | July 20, 2009 10:33 AM
Posted on July 20, 2009 10:33