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
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.properties.*;
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
try
{
ISessionMgr sm = CrystalEnterprise.getSessionMgr();
es = sm.logon(UserID, Password, CMS,"secEnterprise");
System.out.println("Session established");
}
catch(Eception e)
{
e.printStackTrace();
}
finally
{
if(es !=null)
{
es.logoff();
}
}
}
===========================================
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.
http://scn.sap.com/community/bi-platform/java-sdk
Thanks,
Prithvi
Add a comment