06-23-2011 10:09 AM
Hi, everyone:
How to download data of an internal table to excel2007 with extension .XLSX ?
Thanks.
06-23-2011 10:19 AM
You can use abap2xlsx.
This community project is shared on SAP Code Exchange.
Here is the link.
[/people/community.user/blog/2010/07/12/abap2xlsx--generate-your-professional-excel-spreadsheet-from-abap|/people/community.user/blog/2010/07/12/abap2xlsx--generate-your-professional-excel-spreadsheet-from-abap]
[https://cw.sdn.sap.com/cw/groups/abap2xlsx|https://cw.sdn.sap.com/cw/groups/abap2xlsx]
06-23-2011 10:19 AM
You can use abap2xlsx.
This community project is shared on SAP Code Exchange.
Here is the link.
[/people/community.user/blog/2010/07/12/abap2xlsx--generate-your-professional-excel-spreadsheet-from-abap|/people/community.user/blog/2010/07/12/abap2xlsx--generate-your-professional-excel-spreadsheet-from-abap]
[https://cw.sdn.sap.com/cw/groups/abap2xlsx|https://cw.sdn.sap.com/cw/groups/abap2xlsx]
10-12-2012 6:05 AM
06-23-2011 11:50 AM
HI...
To download Data from Internal Table you have to go in debugging mode. If the the debugger is in Classic mode then its perfect otherwise change the debugger to classic mode( Debugger=>Switch to classic mode).
In the top you will find a button for Table, Click on the Table button.
Now after that double click on the internal table from ur program of which you want to download data.
Above Breakpoints button you will found a small green button having a right arrow sign, Just click on that.
Enter the path where you want to download ur Excel sheet and hit enter.
The file will be downloaded.
06-23-2011 12:18 PM
If you are using classic report from the output > goto-> system Menum> List-> save--> local file there you can select spread sheet and download.
from the ALV just select Export button in the ALV toolbar > to spread sheet> Table radio button -->Microsoft Excel
Or else you can do it in debugging also by selecting the internal table and excel and then select the format 2003-2007 format.
Hope this helps,
Thanks ,
Bhargav
06-23-2011 12:53 PM
06-24-2011 2:58 AM
Sorry for everyone, I mean how to download internal table data to excel2007 with ABAP code.
06-24-2011 3:32 AM
06-27-2011 8:10 AM
06-27-2011 8:41 AM
hi donnie126
insert this code in your report
CALL FUNCTION 'GUI_DOWNLOAD'
EXPORTING
FILENAME = 'c:/EXCEL.DAT'"your desired locatio
FILETYPE = 'DAT'
TABLES
DATA_TAB = it_data."your internal table
06-27-2011 9:00 AM
Hi Donnie126,
Did you check the link i gave about abap2xlsx?
It is a separate program/library which can export data from SAP to Excel 2007 format.
Gui_download produce plain text files, whose extension can be set to xls so that the file opens directly in excel.
However, this does not mean that file format is excel.
OLE technique can be used to create .xls format files.
.xlsx is newer format which is probably not yet supported by OLE.
Abap2xlsx is a third-party solution which creates true xlsx files from SAP.
07-04-2011 9:31 AM
Hi, Manish Kumar , can you support me how to get abap2xlsx library (it's said to use SAPLink, but I don't know how to use it), and how to use it? thank you very much. There are some problems when I browse some pages of SDN.
07-04-2011 9:53 AM
Hi Donnie126
Steps to install SAPlink
[http://wiki.sdn.sap.com/wiki/display/ABAP/SAPlinkUserDocumentation|http://wiki.sdn.sap.com/wiki/display/ABAP/SAPlinkUserDocumentation]
Once SAPlink is installed, you need to install the abap2xlsx nugget (.nugg file is xml format source code which SAPlink will use).
Steps to install abap2xlsx are given in below link.
[https://cw.sdn.sap.com/cw/docs/DOC-137513|https://cw.sdn.sap.com/cw/docs/DOC-137513]
Download links:
[saplink|http://saplink.googlecode.com/files/SAPlink_install-0.1.4.zip]
[abap2xlsx|http://code.google.com/p/saplink/downloads/list]
07-04-2011 10:34 AM
Hi, Manish Kumar , The link to abap2xlsx is 'http://code.google.com/p/saplink/downloads/list', there three items: SAPlink_install-0.1.4.zip ZAKE.nugg.zip SAPlink_install-0.1.5alpha.zip. Is ' ZAKE.nugg.zip ' abap2xlsx ? I search 'abap2xlsx' there, but can't find it. I'll try it tonight. Thank you for your warm-hearted supporting again.
Edited by: Donnie126 on Jul 4, 2011 11:37 AM
07-04-2011 10:42 AM
You need to download SAPlink_install-0.1.4.zip
This is the recent stable version.
The zip file has abap2xlsx_Daily.nugg file.
07-05-2011 2:27 AM
I have downloaded SAPlink_install-0.1.4.zip, it contains three files: COPYING NUGG_SAPLINK-0.1.4.nugg zsaplink_installer.txt. FIle 'abap2xlsx_Daily.nugg' is not there. Thanks a lot.
07-05-2011 4:54 AM
Okay. Tutorial links posted above are corrected but abap2xlsx download link is incorrect.
Here is the correct link for latest stable release.
[abap2xlsx|https://cw.sdn.sap.com/cw/releases/21?container=1016]
07-05-2011 8:27 AM
Hi, Manish Kumar , thanks for your effective solution, I have solved the problem with your method. And Thanks for everyone for your supporting.
10-01-2014 11:13 AM
hi can u give me some sample code to download itab to excel which u used and worked file.
thanks in advance
SSK