Skip to Content

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

Generating BIG CSV from a FC document from java SDK

Dear all

I have a simple full client document that generates 91Mb of CSV data. My platform is BOXI R2.

I want the same result using a java application.

The code I have developed is mainly like the following:

report=(IInfoObject)reports.get(0);

ReportEngine engine = retrieveReportEngine();

DocumentInstance doc = engine.openDocument(report.getID());

documentInformation.refresh();

DataProvider dp = doc.getDataProviders().getItem(0);

CSVView docCSVView = dp.getResultAsCSV(-1);

docCSVView.setColumnSeparator(",");

try{

FileWriter objFW = new FileWriter(fileName);

docCSVView.getContent(objFW);

objFW.close();

}catch(IOException objIoException){}

When this code executes for simple documents it works fine, but with this big report the result is a 0 byte long CSV !!!

Does someone know how to solve this issue ? or does someone have a snippet that works for big csv exports?

Thanks in advance.

Regards,

Umberto

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