Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

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();

            }

Tags:
Former Member
Not what you were looking for? View more on this topic or Ask a question