Skip to Content

Downloading Internal table data into Excel with column heading in bold(Other than OLE process)

Jun 23, 2017 at 07:47 AM


avatar image


I have a requirement, where i have to download table data with header(in Bold) into excel sheet(to the path selected in popup) but without using OLE object process.

Thanks in Advane,


10 |10000 characters needed characters left characters exceeded

Where is the question?


My requirement is, can you please help me for excel download logic without using OLE object logic.


The logic is easy. Gather data. Generate Excel.

* Please Login or Register to Answer, Follow or Comment.

3 Answers

Best Answer
Mike Pokraka Jun 27, 2017 at 08:01 AM

Have a look at the excellent ABAP2XLSX project. It does what you're after and a whole lot more.

Show 4 Share
10 |10000 characters needed characters left characters exceeded

Hi Mike,

Thanks for the information. But can you please elaborate, how it helps to create a dynamic .xls file from dynamic table.


It helps, because, as I said above, it can do exactly what you are asking. You can create an .xlsx file from any content.


Thanks for the useful information Mike.


Actually one of the functions provided (with example) creates a worksheet from any internal table. It doesn't get much easier.

Nic Teunckens Jun 27, 2017 at 07:32 AM

Use XML-Spreadsheet and the Standard ABAP Classes that you can leverage (IF_XML / CL_IXML)...

Please check :

  • SAP-Wiki with an XML-Tags example : link / link
  • Microsoft XML-Spreadsheet Reference : link
  • SAP-Wiki creating XML as Spreadsheet : link / link
10 |10000 characters needed characters left characters exceeded
Matthew Billingham
Jul 06, 2017 at 07:53 AM

If you had searched, you would have found the answers. If I'd have spotted this question before decent answers were supplied, I would have rejected it. Please search before posting.

There is a way of leveraging the CL_SALV_TABLE (and related classes) to create a simple excel sheet. I found a blog about it by searching. I suggest you do the same.

Show 1 Share
10 |10000 characters needed characters left characters exceeded

Hi Matthew,

I have searched the posts. But most of the posts suggest to use GUI_DOWNLOAD, which also solved my requirement with one part of it missing. Missing part is: In the downloaded excel, if any column is having text content with more than one line, then whole text content has to be displayed in the same cell. But, it is displaying in a new row, in the same column whihc should not happen. Any help would be great on this issue.

Thanks in Advance.