Skip to Content
author's profile photo Former Member
Former Member

Sample standalone java code for BO 4.0 to fetch report

Hi Friends

I am new to Business Object world and I am currently working on BO 4.0 .

I searched for sample java code to play with BO 4.0 like to get some report in excel/pdf format by giving report name & server details as parameter.

unfortunately , I didn't find any examples for BO 4.0 . I do see some JSP examples named as BO 4.0 examples but upon downloading and extracting code i can see BO 3.0 written in readme or in code.So i am totally confused 😊.The examples i see online are of BO 3.X version.

I went through developer guide too but still need some hello world kind of program to start with.

Can someone please share some BO 4.0 code ?

Appreciate the help

Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • Best Answer
    Posted on Dec 04, 2014 at 11:23 AM

    Hi Anil,

    The samples for XI 3.1 works for BI 4.0 only exception being the Report Engine SDK samples.

    You would need to use the jars from the version you are using and you would be able to build the code.

    As a start up try to create a login code to BO following the developer guide.

    Below is a sample


    import com.crystaldecisions.sdk.framework.*;
    import com.crystaldecisions.sdk.occa.infostore.*;
    import com.crystaldecisions.sdk.plugin.desktop.folder.*;
    import java.util.*;

    public class BOSession
    public static void main(String args[]) throws Exception

    IEnterpriseSession es=null;

    String CMS = "CMS Name"; //CMS Name
    String UserID = "UserName"; //Administrator User Account
    String Password = "BOUserPassword"; //Administrator Password


    ISessionMgr sm = CrystalEnterprise.getSessionMgr();
    es = sm.logon(UserID, Password, CMS,"secEnterprise");
    System.out.println("Session established");
    catch(Eception e)

    if(es !=null)


    The location of libraries required to run the code could be found from the developers guide.

    You would find all the samples as web application because SAP do not suport standalone java codes. Only webservices sdks support standalone java code.

    Note: For any further queries related to SDKs, you would need to post your queries to the below forum as it is the correct space for these queries and also to get better response.



    Add a comment
    10|10000 characters needed characters exceeded

    • There are no predifined samples available for BI 4.0. However apart from webi reports all other samples work for BI 4.0 as well.

      Refer to the below link to find the relavant samples

      Crystal reports:

      Webi Reports:

      SAP has moved Web Intelligence(Report Engine) SDK to RESTful WebSerices starting 4.0 SP6 and 4.1. Many of the eatures have been deprectaed from the Report Engine sdks in BI 4.x and have been introduced in Rest sdks.

      To knopw what is still supported by Report Engine SDKs for webi, you can download the Web Intelligence Report Engine Java SDK Developer Guide for BI 4.0 SP 4 available here.

      In the developer guide, refer to section "6.4 Viewing reports - Overview".

      This section discusses how to use ReportEngine SDK to view Web Intelligence reports.

      Refer to the guides available at for any referrences.



Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.