cancel
Showing results for 
Search instead for 
Did you mean: 

SAPUI5 export to excel to one workbook and multiple sheet

We have a multiple table data which is required to export to excel in SAPUI5 (csv file or xlsx) to a single workbook with multiple sheets, each table/service data to be on each sheet , but on same excel sheet.

Please suggest.

Accepted Solutions (1)

Accepted Solutions (1)

maheshpalavalli
Active Contributor

I dont think SAP UI5 by default supports multiple sheets in single xls file.

Check 3rd party libraries like below which can acheive the task.

https://github.com/SheetJS/js-xlsx

Best Regards,

Mahesh

shivam_bedwal
Explorer
0 Kudos

Hello maheshkumar.palavalli battula.ss

Can you provide the details as in how to use this 3rd party library. I also need to download miltiple sheets in one excel from sapui5 table.

Thanks & Regards,

Shivam

maheshpalavalli
Active Contributor
0 Kudos

Hi Shivam Bedwal

You need to include it in the project and access it like show in the git hub example.. It will be simple you can google how to include 3rd partylibs inUI5.

BR,

Mahesh

shivam_bedwal
Explorer
0 Kudos

Hello maheshkumar.palavalli ,

Thank you for your response. Can you tell me which method to call in the 3rd party library, and what parameters to pass, to download excel with multiple sheets.

I have included the library in my project, but trying to find out which is right method to be called. Can you help me with that.

Thanks,

Shivam

maheshpalavalli
Active Contributor

Answers (2)

Answers (2)

gregorw
Active Contributor

I would suggest abap2xlsx as the solution.

FiratAsan
Active Participant
0 Kudos

Gregor,

you are writing same solutions to all questions about excel file upload and consume that (I would suggest abap2xlsx as the solution.). You are not understand questions and giving same answers to all excel file process questions. Its not good and ethic.

gregorw
Active Contributor
0 Kudos

Hi Firat,

in many cases abap2xlsx is the best option as it runs in an ABAP backend and can be used for creation but also reading XLSX files. As Sai has not given any additional information where the Excel File should be created I think abap2xlsx is still a valid option.

Best Regards
Gregor

jorge_cabanas
Participant
0 Kudos

Please, follow this link, this topic is already discussed:
https://archive.sap.com/discussions/thread/3704049