cancel
Showing results for 
Search instead for 
Did you mean: 

Report Engine api for BI 4.0

Former Member
0 Kudos

Hi all,

         I want make an application so that I can access the webi documents and refresh them through SDK.But I am unable to find a jar to use the report engine sdk.I followed all the instructions in this document http://help.sap.com/businessobject/product_guides/boexir4/en/xi4_resdk_java_dg_en.pdf for report engine application.Even though I copy all the jar files to WEB-INF/lib it still shows the error "Report Engines" cannot be resolved and also the  following import statement shows the error. "<page @ import="com.businessobjects.rebean.wi.*>".

  Not only that if will try to use  IWebi in the program eventhough after copying all the jar files from

Program Files (x86)\SAP BusinessObjects\SAP BusinessObjects Enterprise XI 4.0\java\lib to WEB_INF/lib ,it is showing error saying Iwebi cannot be resolved.

I included the import for that package <page @ import=" com.businessobjects.sdk.plugin.desktop.webi.IWebi*">.

Lastly, if I am going in the wrong direction please point me to a correct path.

Regards,

Sri.r

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi Sri,

As you have already referred to developers guide for BI 4.0, there is very little chance that you are missing something on the code side.

There are certain other dependent JAR files are installed in the following directory:

C:\Program Files (x86)\SAP Business Objects\SAP BusinessObjects Enterprise XI 4.0\java\lib\external

Include these jar files from the above specified location into your application's runtimes and hopefully IWebi issue will be resolved.

It would be much better and easier for us to figure out the problem if you can copy and paste your code here on the thread.

Regards,

Anchal

Former Member
0 Kudos

Hi Anchal,

               Thanks for your reply.I added all the jars in lib and external folder to the project, but I am not able resolve errors.Below is the image of my imports.

<%

IEnterpriseSession eSession =(IEnterpriseSession) session.getAttribute("EnterpriseSession");

try{

 

IInfoStore infostore=(IInfoStore)eSession.getService("InfoStore");

ReportEngines reportEngines=(ReportEngines)eSession.getService("ReportEngines");

String query="SELECT * FROM CI_INFOOBJECTS WHERE SI_KIND='Webi' AND SI_OWNER=' sri' ";

IInfoObjects e=infostore.query(query);

Iterator itr=e.iterator();

while(itr.hasNext())

{

IWebi webi=(IWebi)itr.next();

}

}

catch(Exception e)

{

out.println("error"+e.getMessage());

}

%>

The italized lines in the above are shown as errors.

Regards,
Sri

Former Member
0 Kudos

Hi Sri,

In case you have overwritten the existing jar files in your project, you might face such issues. You can try to create a seperate directory with relevant (BI 4.0) jar files.

Everything is fine with your jsp code and ideally it should work.

Regards,

Anchal