Skip to Content

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

retrieving data for a report table

This is in reference to the thread

Business Object Reports with Prompts being called from .NET SDK

I am trying to do the same(i.e I want to retrieve the data for the reports) for a report in table format and I get null pointer exception at myBOView.getContents(). Please find the code below

How to resolve this?

RetrieveData XMLdata = new RetrieveData();

RetrieveXMLView XMLview = new RetrieveXMLView();


ViewSupport xmlViewSupport = new ViewSupport();




RetrieveXMLView retXMLView = new RetrieveXMLView();


RetrieveData retBOData = new RetrieveData();


Navigate nPage = new NavigateToFirstPage();

Action[] actions = new Action[1];

actions[0] = new Refresh();

RetrieveMustFillInfo retrieveInfo = new RetrieveMustFillInfo();

retrieveInfo.setRetrievePromptsInfo(new RetrievePromptsInfo());

retrieveInfo.setRetrieveQueryContext(new RetrieveQueryContext());

DocumentInformation docInfo = engine.getDocumentInformation("6803", retrieveInfo, null, null, retBOData);

com.businessobjects.dsws.reportengine.XMLView myBOView = (XMLView) docInfo.getView();

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