« March 21, 2007 | Main | March 23, 2007 »

March 22, 2007 Archives

March 22, 2007

Setting Organizations for Data Templates

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)

About March 2007

This page contains all entries posted to Oracle BI Publisher Blog in March 2007. They are listed from oldest to newest.

March 21, 2007 is the previous archive.

March 23, 2007 is the next archive.

Many more can be found on the main index page or by looking through the archives.

Powered by
Movable Type and Oracle