ALV grid Download to excel not working

Hi All,
I am displaying an Alv list using the function Module
REUSE_ALV_GRID_DISPLAY.
The report is getting displayed correctly..But when Iam trying to downlaod the same in excel.It does not get downloaded correctly.
All the fields get downloaded into one column of excel sheet.
CAn anyone tell me what's going wrong on this.
Thanks
GT

Hi GT,
try this way,
save as local file this option available on the grid.
and while giving the file name give the name what you want with extension .xls
then check that file all the data will be opend in excel sheet.
http://help.sap.com/saphelp_erp2004/helpdata/en/e3/41a138c4397a42e10000009b38f842/frameset.htm
reward points for helpfull answers and close the thread if your question is solved.
regards,
venu.

Similar Messages

  • Problem in ALV grid download to excel

    Hello Gurus,
    I have a ALV report which has 40 columns but at a time it will only display 100 records(max). when I am trying to download it into excel (by using standard funcationality) only headings are getting downloaded. I checked out standard table download like MARA,VBAK but they are downloading properly.
    what could be the reason..?
    Thanks in advance.
    Thanks and Regards,
    Saurabh Chhatre

    Hi,
    i am implementing alv by grid method using function module. By my previous experience u do not need to do anything to get the alv in excel format(std. funcationality is provided by SAP itself). But this is not working right now .. apart from headings nothing is coming in file download.
    thanks and regards,
    saurabh chhatre

  • Download to Excel not working in Transaction iview in Quality

    Dear All,
    I have a transaction iview in EP Quality Server which is transported from the development Server.This iview represents a transaction which displays some data (report output) and has an button for download to excel. The problem is that the ALV download functionality is working fine in the EP development Server's iview but I am not able to download from EP Quality though the output of the report is coming fine.
    Awaiting for the reply.
    Regards,
    Samir

    Hi,
    Try it once in laptop instead of desktop.
    May be the screen resolution or some thing is causing this,because I have encountered the issue previously.
    Create new iview in quality and try.Do you activate the transaction in SICF if it is custom one.
    Thanks and Regards,
    gopal.sattiraju

  • ALV GRID Tool bar options not working

    Hello Experts,
    I copied the standard tool bar into my program with the name 'ZSALV_STANDARD' and displaying the output in the grid format in a container with the method set_table_for_first_display
    When I execute the program the standard buttong in the tool bar are not working... Can anyone guide where am I going wrong...
    Here is my code
    DATA :    gr_event_handler TYPE REF TO lcl_event_handler .
      DATA:  threed TYPE i VALUE 1.
      SET PF-STATUS  'ZSALV_STANDARD'.
    * Creating an instance for the event handler
      CREATE OBJECT gr_event_handler .
      TRY.
          CREATE DATA i_table TYPE TABLE OF (viewname).
          ASSIGN i_table->* TO <i_itab>.
          CREATE DATA wa_all LIKE LINE OF <i_itab>.
          ASSIGN wa_all->* TO <wa_tab>.
    *     Selecting data dynamically
          SELECT * FROM (viewname) INTO TABLE <i_itab>.
    *     Building the fieldcatelog
          CALL FUNCTION 'LVC_FIELDCATALOG_MERGE'
            EXPORTING
              i_structure_name       = viewname
            CHANGING
              ct_fieldcat            = li_fieldcat
            EXCEPTIONS
              inconsistent_interface = 1
              program_error          = 2
              OTHERS                 = 3.
          IF sy-subrc <> 0.
            MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
              WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
          ENDIF.
    *     Making fields editable except key fields
          IF sy-ucomm = 'UPD' OR  sy-ucomm = 'CHANGE'.
            LOOP AT li_fieldcat INTO lwa_fieldcat.
              IF lwa_fieldcat-key = space.
                lwa_fieldcat-edit = 'X'.
                MODIFY li_fieldcat FROM lwa_fieldcat.
              ENDIF.
            ENDLOOP.
          ENDIF.
    *     Making fields editable
          IF sy-ucomm = 'NEW'.
            LOOP AT li_fieldcat INTO lwa_fieldcat.
              lwa_fieldcat-edit = 'X'.
              MODIFY li_fieldcat FROM lwa_fieldcat.
            ENDLOOP.
            lh_flag = 'X'.
            CLEAR : <i_itab>.
            DO 100 TIMES.
              APPEND <wa_tab> TO <i_itab>.
            ENDDO.
          ENDIF.
    *     Exclude buttons
          PERFORM exclude_tb_functions CHANGING i_exclude.
          IF g_custom_container IS INITIAL.
            CREATE OBJECT g_custom_container
              EXPORTING
                container_name = g_container.
            CREATE OBJECT grid1
              EXPORTING
                i_parent = g_custom_container.
          ENDIF.
    *     Making all fields non-editable if display mode
          IF sy-ucomm = 'SHOW'.
            LOOP AT li_fieldcat INTO lwa_fieldcat.
              lwa_fieldcat-edit = ' '.
              MODIFY li_fieldcat FROM lwa_fieldcat.
            ENDLOOP.
          ENDIF.
          IF sy-ucomm = 'SAVE'.
            LOOP AT li_fieldcat INTO lwa_fieldcat.
              IF lwa_fieldcat-key NE space.
                lwa_fieldcat-edit = space.
                MODIFY li_fieldcat FROM lwa_fieldcat.
              ENDIF.
            ENDLOOP.
          ENDIF.
    *     Displaying ALV Grid
          i_layout-NO_TOOLBAR = 'X'.
          i_layout-edit = 'X'.
          CALL METHOD grid1->set_table_for_first_display
            EXPORTING
              i_structure_name              = viewname
              it_toolbar_excluding          = i_exclude
              i_default                     = 'X'
              is_layout                     = i_layout
            CHANGING
              it_outtab                     = <i_itab>
              it_fieldcatalog               = li_fieldcat
            EXCEPTIONS
              invalid_parameter_combination = 1
              program_error                 = 2
              too_many_lines                = 3.
          IF sy-subrc NE 0.
            EXIT.
          ENDIF.
    *      Getting the changed data
          SET HANDLER gr_event_handler->handle_data_changed FOR grid1 .
        CATCH cx_sy_create_data_error.
      ENDTRY.
    Thanks alot in advance.
    Sri

    Hello ,
    try
        call method g_grid%->set_table_for_first_display
          exporting
            i_save               = p_save_layout%
            i_default            = 'X'
            is_layout            = ps_layout%
            is_variant           = ps_variant%
            it_toolbar_excluding = pt_exclude%
          changing
            it_outtab            = pt_alv_tab1[]
            it_fieldcatalog      = pt_fieldcat%[].
        call method g_grid%->set_toolbar_interactive.
    regards
    Prabhu

  • Download to Excel Not working in Mozilla Firefox

    Hi Friends
    I have wriiten code for downloading data as a Excel file from a webdynpro application using the below methodology.
    ht[http://wiki.sdn.sap.com/wiki/display/WDABAP/Downloadafileintoexcelsheet|http://wiki.sdn.sap.com/wiki/display/WDABAP/Downloadafileintoexcelsheet]
    It works fine in Internet Explorer 7.0. Its not working in Mozilla Firefox 3.6. Our current SAP Version is ECC 6.0 EHP4 (NW7.01).
    Please provide some insight into the issue.
    Thanks a lot.
    Regards
    Rakesh

    Hi Rakesh
    Please check the browser compatibility in Product availability Matrix in service market place for your server version.
    Loging with SMP userid and password at http://service.sap.com/pam
    Best Regards
    Srinivas

  • Download to EXCEL not working.

    Hi,
       in FBL3N report, the option to download to excel is not showing any data on excel. I am doing like below.
    on the report, I am going to menu LIST -> EXPORT -> SPREAD SHEET. A pop up appears. I am selecting last radio button "All available formats" and selecting Microsoft Excel (in existing XXL format).
    The excel will open, however the data will not be downloaded to spreadsheet.
    I tried to change the Macro settings on excel, but no results.
    It used to work before, now is not working.
    It is working for my id in my collegue's system.
    Please suggest how to get it resolved.

    Hi Rob, I have GUI 640 / EXCEL 2003 on my system.
    I have re-started the system and I am able to download to excel now.
    Don't know what was wrong.
    Thanks,
    Jay.

  • ALV Grid Download to Excel - Columns in wrong order

    I'm using the object cl_gui_alv_grid to output an ALV grid to the screen.  I've populated the field catalogue as follows:
    wa_alvfieldcat-col_pos = 1.
    wa_alvfieldcat-just = 'L'.
    wa_alvfieldcat-reptext = 'Customer Name'.
    wa_alvfieldcat-scrtext_s = 'Customer'.
    wa_alvfieldcat-scrtext_m = 'Customer'.
    wa_alvfieldcat-scrtext_l = 'Customer Name'.
    wa_alvfieldcat-outputlen = 35.
    wa_alvfieldcat-tabname = 'GTBL_REPORT'.
    wa_alvfieldcat-fieldname = 'CUST_NO'.
    The screen shows the table correctly in the order I've specified using COL_POS.  But when I select the download function from the ALV grid it moves all the date fields to the end instead of using the order I wanted.
    Any ideas?

      CALL FUNCTION 'LVC_FIELDCATALOG_MERGE'
        EXPORTING
          i_structure_name = 'ZCONTRACT_REPORT'
        CHANGING
          ct_fieldcat      = tbl_alvfieldcat.
    then
      LOOP AT tbl_alvfieldcat INTO wa_alvfieldcat.
        MOVE 'GTBL_REPORT' TO wa_alvfieldcat-tabname.
        CASE wa_alvfieldcat-fieldname.
          WHEN 'DATE_ORDER'.
            wa_alvfieldcat-col_pos = 4.
            wa_alvfieldcat-just = 'L'.
            wa_alvfieldcat-reptext = 'Date Order'.
            wa_alvfieldcat-scrtext_s = 'Date Order'.
            wa_alvfieldcat-scrtext_m = 'Date Order'.
            wa_alvfieldcat-scrtext_l = 'Date Order'.
            wa_alvfieldcat-outputlen = 10.

  • Download to excel not working in web gui

    Hi All,
    I created a transcation for a z report and selected the radio button Easy Web Transcation and check box SAP GUI for HTML while creating the transcation since this transcation link has to be given on SRM portal .
    Now when we click link on SRM portal and execute the report everything is fine but when we click the button Local File from menu , a popup comes in which we select Spreadsheet radio button and press continue , a message is displayed in status bar of explorer
    load :class Query not found
    and the download never complets it only shows the hourglass.
    How to solve this?
    Regards,
    Anubhav

    Hi @all
    Excel Export needs an installed Java RE on the client side
    I solved the problem by installing JRE 1.6.0.
    Regards
    Marcel
    Edited by: Marcel Hündler on Feb 16, 2010 5:30 PM

  • Facing problem while downloading ALV grid Output into Excel

    Hi Guys,
    I am facing problem while downloading ALV grid Output into Excel.
    It is downloading into excel, but all character columns first and next all quantity columns it is displaying. But I need columns order as it is in the grid.
    If I take all columns as characters it works fine. But it will be problem for calculating total, subtotals of quantity columns
    Can someone help me regarding this
    thanks for your help

    Hi,
    Open up Excel on your desktop. Goto Tools > Macro > Security.
    Make sure that your security is set to Medium (or less). SAP uses OLE automation to run the Excel instance and in Office 2003 (for example), Microsoft has increased their default security setting to High. With the High setting, the output to Excel fails.
    Was this your problem? Don't forget those points, either.
    check with this wetther it is solved or not.
    Regards,
    sana.

  • ALV grid export to Excel 2003-f.01

    Hi all,
    I have an issue with ALV grid export to excel 2003 ,when i tried to download with the option as local file > xls file ,the report downloads with page breaks which the user does not want , each break comeswith header .
    With the option of list>export>xml sheet - the report downloads with out page break but with no header information like the name of the report and reporting period .The tcode is f.01 and the system is ECC6.
    Can any one suggest  how to download the report with tiltle of the report with no page break ?
    Thanks
    ske

    Hi
    What happens if you use the export/local file option - does that help at all or can you change the layout? Haven't got access to your release to check.
    Cheers
    David
    Edited by: David Berry on Oct 28, 2010 9:38 PM

  • ALV output download to excel with top of page

    Hi,
    i want to download ALV grid output to excel sheet including the top of page. i am using the icon in application tool bar. but only data's are download to excel sheet. i cannot download the top of page. with out write coding in program can we download it. if yes pls explain.
    thanks.

    I'm sorry but I can't find FM with DOWNLOAD_EXCEL_*.
    I want to know more detail thing.
    plz. give answer to me anytime.
    I'm waiting..
    Edited by: Kwang Seop Kim on Sep 26, 2008 6:57 AM

  • Save ALV grid to local excel-file in background

    Hi,
    i want to save a alv grid to an excel-file on a local fileshare using an background job..
    Does anybody know how this works?
    Thanks ahead

    DATA: file TYPE string VALUE `flights.dat`,
          wa   TYPE spfli.
    FIELD-SYMBOLS TYPE x.
    OPEN DATASET file FOR OUTPUT IN BINARY MODE.
    SELECT *
           FROM spfli
           INTO wa.
      ASSIGN wa TO CASTING.
      TRANSFER TO file.
    ENDSELECT.
    CLOSE DATASET file.
    <b>The binary data from database table SPFLI is transferred to a binary file flights.dat</b>

  • ALV GRID download truncates the last digit of invoice

    Hi Experts,
                     I am facing a production issue related to ALV grid download. When we click export to local file -> spread sheet,
    if it is downloaded to Excel file, invoice last digit is truncated.
    Can any body face this problem ?
    Please let me know if any body has clue to solve this strange issue.
    Thanks,
    Balaji.T.

    Hi,
    check the type of field used for invoice list. Make it type vbeln. Also try using EXit_alpha_output FM and modify the table for invoice numbers.
    Thanks,
    Sam.

  • Adobe download assistant will not work on my machine?

    Adobe download assistant will not work on my machine. When i try to start it i get a message saying "Sorry an error has occurred. This application cannot be installed because this installer has been mis-configured. Please contact the application author for assistance." Any ideas what to do

    Are you using Mac OS?  If so please try removing the Adobe Download Assistant from your Applications folder and try again.  This issue is documented in the Known Issues section of Troubleshoot Adobe Download Assistant - http://helpx.adobe.com/creative-suite/kb/troubleshoot-download-assistant.html.

  • After updating to V 15.0 I have the issue that suddenly many but not all of the functions do not work anymore. Menues and download links do not work.

    I have updated my firefox to version 15.0. After this I have the effect that at some unspecified time during use many of the functions stop working. Menu's do not open, download links do not work anymore and so on. Opening new tab's or windows still works. Links on pages partly work partly not. Copy and paste does not work anymore on webpages. It takes ending the firefox process and restarting to correct the issue until it happens again. I have those effects on totally different webpages. At this time it happens every time after I start Firefox but not right away. Firefox first works for some time and then it suddenly doesn't anymore without me having done anything special

    The Reset Firefox feature can fix many issues by restoring Firefox to its factory default state while saving your essential information.
    Note: ''This will cause you to lose any Extensions, Open websites, and some Preferences.''
    To Reset Firefox do the following:
    #Go to Firefox > Help > Troubleshooting Information.
    #Click the "Reset Firefox" button.
    #Firefox will close and reset. After Firefox is done, it will show a window with the information that is imported. Click Finish.
    #Firefox will open with all factory defaults applied.
    Further information can be found in the [[Reset Firefox – easily fix most problems]] article.
    Did this fix your problems? Please report back to us!

Maybe you are looking for

  • How do i fix iPhoto from crashing when uploading? Here is the crash report.

    This is the second time ive experience this crash... The first time i removed a file and i could upload to iphoto again, less than a week later it crashes on upload again... Process:         iPhoto [504] Path:            /Applications/iPhoto.app/Cont

  • How to apply a css style to a radio button.

    I cannot seem to persuade jsf to pass css styles through to a radio button. I have markup like this: <h:selectOneRadio id="direction" styleClass="largish-form" >   <f:selectItem id="positive" itemLabel="positive" itemValue="positive" />   <f:selectIt

  • Setting icon for the attachment

    Anyone know how to set the icon of the attachment? I have no problem sending attachment (in this particular case of *.xls files), but the email I received using NOTES shows a default grey box with the correct file. Tried using NOTES to send Excel att

  • How to concatenate Member_caption in different level using mdx

    hi I am using the mdx below to get the list of ParameterCaption which will be used to populate a dropdown list inside SSRS WITH MEMBER [Measures].[ParameterCaption]  AS [Checkoutdate].[Year-Week].CURRENTMEMBER.MEMBER_CAPTION MEMBER [Measures].[Parame

  • Manual Standard Price updation

    Hi All, One of my client having 8 plants and have more than 1000 FG materials. We are not doing costing run. I have to update manually the standard price for all the FG materials for all the plants. How I can do the above updation in one screen. than