Skip to Content
avatar image
Former Member

download data to excel2007

Hi, everyone:

How to download data of an internal table to excel2007 with extension .XLSX ?

Thanks.

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

5 Answers

  • Best Answer
    avatar image
    Former Member
    Jun 23, 2011 at 09: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]

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Jun 23, 2011 at 10: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.

    Add comment
    10|10000 characters needed characters exceeded

  • Jun 23, 2011 at 11:18 AM

    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

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Jun 23, 2011 at 11:53 AM
    Add comment
    10|10000 characters needed characters exceeded

    • 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
      
      

  • avatar image
    Former Member
    Jun 27, 2011 at 08: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.

    Add comment
    10|10000 characters needed characters exceeded