Skip to Content
avatar image
Former Member

Error in JAVA Sdk BI4.1


Hi Experts,

I tried to schedule a webi report via JAVA sdk in BI4.1. but while using the below code I getting the error to set the schduleing information and format information.

could anyone help me on this.

IReport oReport = (IReport) oInfoObjects.get(0);

if (oInfoObjects.size() > 0) {

                IReportFormatOptions reportFormat = oReport.getReportFormatOptions();

                int formatType = IReportFormatOptions.CeReportFormat.PDF;

                reportFormat.setFormat(formatType);

                ISchedulingInfo schedInfo = oReport.getSchedulingInfo();

                schedInfo.setRightNow(true);

                schedInfo.setType(CeScheduleType.ONCE);

                infoStore.schedule(oInfoObjects);

                System.out.println("Report has been scheduled.");

                enterpriseSession.logoff();

            }

SDK_Error1.jpg (106.8 kB)
SDK_Error.jpg (63.5 kB)
Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • Jan 12, 2015 at 09:55 AM

    Hi Ramesh,

    IReport gives you an object of crystal reports and not webi reports.

    If the infoobjects collection returns webi reports, it should be casted as IWebi.

    Also if you have a requirement to schedule webi reports you would want to review the Restful webservice sdks, as scheduling webi reports with prompts is only possible and supported with the Restful webservices. However, simple schedule without prompts can still be achieved with the old enterprise java sdks.

    You can find the guides for Restful webservice sdks at

    http://help.sap.com

    Navigate to Analytics-->Business intelligence--> Business Intelligence Platform(Enterprise)--> SAP BusinessObjects Business Intelligence Platform 4.1--> Development Infomation

    Refer to 'SAP BusinessObjects RESTful Web Service SDK User Guide for Web Intelligence and the BI Semantic Layer' guides from the above location as per your SP version.

    For any further queries regarding BusinessObjects SDKs, post your queries to the below space which are the correct location for sdk related queries.

    For BusinessObjects Java SDKs

    http://scn.sap.com/community/bi-platform/java-sdk

    For Restful webservice sdk queries

    http://scn.sap.com/community/restful-sdk

    Thanks,

    Prithvi

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      I am using the version SAP BusinessObjects BI Platform 4.1 Support Pack 6.

      I chose to use sdk as when we schedule the report using bo we need to set the prompt values for each parameter and create instances.

      Hence i taught of automating it, where the program can fetch values from some source and run the instances for all the parameters.

      Data source is unv

  • avatar image
    Former Member
    Jan 16, 2015 at 01:16 AM

    Hi,

    Thanks for the guidance I managed to create a program to schedule a webi report without prompt.

    while I run the java file from netbeans the webi report is scheduled properly what I expected but while I upload the program object(,jar) to CMC and while trying to schedule it getting failed with error message as below(class to run is not specifed) and if I specify the class to run and reschedule it giving me class not found execption did anyone have idea about it?

    Please help me on this.

    Regards,

    Ramesh Jothimani


    Schedule_error.jpg (26.7 kB)
    Add comment
    10|10000 characters needed characters exceeded