on 08-13-2018 1:56 PM
Hi Experts,
I want to download the Excel file with Multiple Sheets and formatting option in OData.
Can any expert give me a solution ?
I request you to please do and test before answer here.
Best regards,
Sathish Mani
Don't know of a solution for a direct OData Service. But you could try abap2xlsx.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Gregor Wolf,
Thanks for response.
Actually the requirement is download multiple sheets in a excel file through OData..
As mentioned in abap2xslx , one sheet for in a excel file . Please check attached screenshot from abap2xslx.screenshot-2018-08-13-22-52-05-620-comandroidchrom.png.
Even I gone through most of the blogs ..
For more information about issues please check this link
https://answers.sap.com/questions/355466/excel-in-sapui5.html
Best Regards,
Sathish Mani
Hi Gregor Wolf,
I want to download only one Excel file with multiple worksheets. So zip file not required.
How to download one Excel file with multiple worksheets in OData with formatting?...
I have tried some thing like OLE, XML but I doesn't work..
Could you provide me a possible idea to do that?
Thanks in advance.
Best Regards,
Sathish Mani
Then abap2xlsx is the right solution for you. You create the Excel with multiple worksheets on the server and and get it to the client using a $value OData request.
I think that wasn't even a limitation in the initial release. Perhaps ivan.femia3 knows.
Did you tried these ABAP2XLSX demo programs:
zdemo_excel23 - Multiple sheets with and w/o grid lines, print options
zdemo_excel24 - Multiple sheets with different default date formats
The blog post abap2xlsx – Generate your professional Excel spreadsheet from ABAP is from 2010. A lot has changed since then. Simply try out the demo report zdemo_excel3 which uses lo_excel->add_new_worksheet( ).
The OP's screenshot came from this blog https://blogs.sap.com/2010/07/12/abap2xlsx-generate-your-professional-excel-spreadsheet-from-abap/ where it is written
What are the limits again?
However, the OP has failed to notice that this limitation list refers to Sergio Ferarri's solution, not abap2xlsx!.
The limitations refer to this solution
NOT abap2xlsx. Try reading the entire blog https://blogs.sap.com/2010/07/12/abap2xlsx-generate-your-professional-excel-spreadsheet-from-abap/ Ivan Femia goes on to say that Sergio Ferrari's solution having the limitations you listed was the driver for him initiating abap2xlsx where there would be no such limitations.
Hi Mathew,
ya i have read ... But still i am having some doubts steaming
How to convert lo_excel as xstring to pass get stream ?
Here we need to pass the value as xstring.
lo_excel is an object.
How to convert lo_excel to xstring.
ls_stream-value = ?
copy_data_to_ref( EXPORTING is_data = ls_stream CHANGING cr_data = er_stream ).
Best Regards,
Sathish Mani
Look at the example programs. Hint: you need an instance of a writer class.
I think SAPCRMa2xExport shows a nice example how to get the excel as xstring.
User | Count |
---|---|
83 | |
10 | |
10 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.