ALV : How to activate List - Export - Spreadsheet

Hi all,
I have tried to search this forum n google regarding on the above problem but couldn't find any answer. Therefore, i have decided to post this question here.
I have ALV report but somehow i couldn't Export -> spreadsheet directly. It was disable in my report.
I can still export my spreadsheet via Local file.
How do i enable the List-> Export -> Spreadsheet? Please help.....
Thank you in advance.
Regards,
SW

Hi,
ALV grid has export option of Excel sheet.
  CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
    EXPORTING
      i_callback_program      = sy-repid
      it_fieldcat             = it_fieldcat
      i_save                  = 'A'
    TABLES
     t_outtab                = it_item
   EXCEPTIONS
      program_error           = 1
      OTHERS                  = 2.
  IF sy-subrc <> 0.
    MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
            WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
  ENDIF.
Please check and pass posible paramters
Regards

Similar Messages

  • Excel download for ALV Block report (List- export- spreadsheet)

    Dear friends,
    I want to download the output into Excel...
    I am using all SAP standards and using the ALV Block list
    Ex: List->export->local file..  is anable from here i can download to excell .....but the same there is anothere option : List->export->spreadsheet...( this one inactive.)
    I want to activate the  List->export->spreadsheet option.
    how to do this???
    Thanks,
    Sridhar.

    hi Sridhar,
    there is already an option to download in spreadsheet format when saving to local file...then why do you want to activate List->export->spreadsheet ????
    regards,
    madhu

  • List- Export- Spreadsheet option disabled in ALV Report

    Hi,
    In one of the ALV Report the option List->Export->Spreadsheet option is disabled. How to enable that option?
    I am calling the REUSE_ALV_GRID_DISPLAY Function module with the following parameters
        CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
          EXPORTING
            i_callback_program = w_repid
            it_fieldcat        = i_fieldtab[]
            is_layout          = ls_layout
            it_events          = i_events[]
            i_save             = 'A'
            is_variant         = i_variant
          TABLES
            t_outtab           = it_display
          EXCEPTIONS
            program_error      = 1
            OTHERS             = 2.
    This is the problem with only this report. So I believe it is not due to authorization.
    Regards,
    Anusha

    Hi Anusha,
    This link should help you. You just need to change the deep structure.
    [Export Option is Grayed out in ALV Grid Display;
    You already figured it out
    Edited by: sap_wiz on Jul 6, 2011 4:42 PM

  • Why in ALV report, menu List- Export- Spreadsheet,must save in local file

    Hello everyone .
    in FBL3N (GL line item) that is ALV report.
    i want to export data to excel.
    but when i go to menu List->Export-> Spreadsheet
    system want to save file in local drive.
    when i use menu List->Export-> Spreadsheet
    it's should show data in excel , not save file to local drive.
    please advice.

    Hi,
    Before savind into the system browse the location and rename the file for word format that means
    After pressing spread sheet it show like this
    Directory file:  
    File Name:
    Encoding:
    In the File name it will shows the default file name and you have change that document file>
    Eg:- It shows .xls and you want as word format change as  .doc
    It shows .xls and you want as txt format change as  .txt
    It shows .txt format and you want as excel format change as  ..xls
    Hope this will understand
    Regards,
    Kanike

  • Download the output into Excel...(List- export- spreadsheet)

    Dear friends,
    I want to download the output into Excel...
    I am using all SAP standards and using the ALV Block list
    Ex: List->export->local file.. is anable from here i can download to excell .....but the same there is anothere option : List->export->spreadsheet...( this one inactive.)
    I want to activate the List->export->spreadsheet option.
    how to do this???
    Thanks,
    Sridhar.

    Hi
       Use the Function Module:
    EXCEL_OLE_STANDARD_DAT
    For your purpose.
    But by default you can get the option to download into several formats including your desired one.
    Regards,
    Sreeram

  • Display report through List-export-spreadsheet

    Hi,
    I am outputting a report using REUSE_ALV_GRID_DISPLAY and my reports are outputting correctly.  And also when I download directly through excel also my reports are coming out correctly.  But the users wanted to download it through list-export-spreadsheet at that time, the fields like amount, quantity gets sorted into one group which I do not want.
    Is there a way for me to ungroup this and make it display in the format that it gets displayed on ALV.  Pls help
    thank you very much.

    ok

  • List Export Spreadsheet

    Hi,
    I am trying to export my alv grid output into excel by List > Export > Spreadsheet and selecting table option. All the date is being exported to excel good till here, but columns are changing their positions. When I look little bit close I found that all character columns are shown first and then dates, all quantities, currencies etc.
    I want the the output columns position same as alv grid output. Does anyone know of the solution? Your help is appriciated.
    Thank you,
    Surya.

    I tried the other options
    1st Option
    Tried to save to local file, selected spreadsheet > gave file name and path.
        This options giving me the same format(I want the same format, good) as alv grid. But first row, first column with date and in first row in the middle with text 'Dynamic List Display'. 2nd and 3rd rows are empty. our data starts at 4th row and 2nd column. user don't want this he wants to have minimal manual work.
    2nd Option:
         List > Export > Spreadsheet > selected table
         with this I got better results meaning data started 1st row, 1st column, but all the text or character columns are printed first and then date, quantity, amounts etc... here user wants to have same format as alv grid output. I trying to find a way of customizing the output.
    3rd Option:
          This option I tried is Micorsoft Excel View. here all the data displays in excel object in the middle of the report. output structure is same as alv grid output. user can do file > save as. But here also another problem. the problem here is that the file is saving with more than 10 tabs(sheets), and here user don't want these may tabs in the saved excel file.
    I hope this gave more good view of the issue I am looking at. Anybody come across this kind of situations please respond.
    Thank you,
    Surya

  • Excel download(List -- Export -- Spreadsheet) not working in GUI 710

    Dear All,
    My client is using SAP 4.7. Recently my client upgrade the SAP GUI from GUI 620 to GUI 710. Now we are unable to download any report output when we follow path  '* List --> Export --> Spreadsheet*'.
    When we click on List  --> Export --> Spreadsheet, system give a pop up screen 'Filter criteria, sorting, totals and subtotals are not taken into account', after that nothing coming. Its returning back to the report output.
    Your quick answer will be highly appriciated.
    Thanks,
    sp sahu

    Hi,
    you can download it from SAP Service Marketplace:
    https://service.sap.com/swdc
    Download
    Support Packages and Patches
    Support Packages and Patches - Entry by Application Group
    SAP Frontend Components
    SAP GUI FOR WINDOWS
    SAP GUI FOR WINDOWS 7.10 CORE
    Win32
    Here you can choose the needed SAPGUI Patch.
    I hope this helps.
    Regards
    Jozsef

  • Report Export - Spreadsheet not working for one User: ECC6, SAPGUI710

    Hi,
    Our setup: SAP ECC6, Solaris10, Oracle 10g, SAPGUI Patch 9
    Normal download like List ->export ->Local file is working
    But when user click excel icon (list ->export->spreadsheet) it is not working and even it is not giving any error message.
    Only one user ID we are getting problem, all other user ids are ok.
    There is no issue with his work station or SAP GUI patch level as for other user id on his workstation export function is working fine. One more info with this problematic user id export function is not working in any workstation.
    Any thing we need to do with user parameters/user settings or authorization????
    Anyone faced this problem eralier . . .
    Advance thanks

    It is not hte problem with workstation, as for other user ids on his workstation working fine. Also with his user id on other machines also not working.
    Regarding trace in ST01, how to switch the trace for other users as there is no user selection option???
    Is it ok if I procedd as below:
    1. ST01 -> Edit menu ->Write to database
    2. Selected all trace components
    2. General Filters ->under "Trace for User Only" I give this problematic user id.
    3. From menu "Goto" ->"Save Trace file in" I give this user id, client and time
    But I am getting following message when I click "Analysis"
    No records that correspond to these search criteria found
    regards

  • FBL5N export spreadsheet with detailed headers

    Dear experts,
    after upgrading our ERP to 607 the spreadsheet export at TX FBL5N works different.
    I selected a company code and a date and get several lists as usual. On top of all lists are the customer, the company code, the name and the city. When I now export the list with List --> Export --> Spreadsheet the new spreadsheet does not liste the mentioned headers (company code, name ...). Instead it includes all seperate lists from the GUI in a single spreadsheetfile.
    I need the seperation between the lists from the GUI in excel.
    Can somebody tell me how to do that?
    Best regards,
    Martin

    Hello Rupesh,
    the Switch does not help. I only get another view to the content but it does not chenges the Export behaviour. Also the Note does not apply to me. I did not choose "Always use selected Format".
    I only want an Excel Export like the shown data with all lines.
    Best regards,
    Martin

  • How to apply List box for multiple selection of rows  in ALV report ?

    Hi Exprots,
    1: How to apply List box for multiple selection of rows  in ALV report ?
    Thanking you.
    Subash

    hi,
    check the below program.
    REPORT zalv_dropdowns.
    *Type pools declarations for ALV
    TYPE-POOLS : slis.
    *data declarations for ALV container,ALV grid, Fieldcatalogues & layout
    DATA: g_grid  TYPE REF TO cl_gui_alv_grid,
          g_custom_container TYPE REF TO cl_gui_custom_container,
          gt_fieldcat TYPE lvc_t_fcat,
          gs_layout TYPE lvc_s_layo.*INTERNAL TABLE AND WA DECLARATIONS FOR t517 A table
    DATA: gt_outtab TYPE STANDARD TABLE OF t517a INITIAL SIZE 0,
          wa_outtab TYPE t517a.
    START-OF-SELECTION.*Call to ALV
      CALL SCREEN 600.*On this statement double click  it takes you to the screen painter SE51.
    *Create a Custom container and name it CCONT and OK code as OK_CODE.
    *Save check and Activate the screen painter.
    *Now a normal screen with number 600 is created which holds the ALV grid.
    PBO of the actual screen , Here we can give a title and customized menus
    Here we also call the subroutine for ALV output.
          MODULE PBO OUTPUT                                             *
    MODULE pbo OUTPUT.
      PERFORM alv_output.
    ENDMODULE.                    "pbo OUTPUT
          MODULE PAI INPUT                                              *
    MODULE pai INPUT.
    ENDMODULE.                    "pai INPUT
    *&      Form  BUILD_FIELDCAT
    FORM build_fieldcat.
    DATA ls_fcat TYPE lvc_s_fcat.
    *Build the field catalogue
      CALL FUNCTION 'LVC_FIELDCATALOG_MERGE'
        EXPORTING
          i_structure_name = 'T517A'
        CHANGING
          ct_fieldcat      = gt_fieldcat.
    To assign dropdown in the fieldcataogue
      LOOP AT gt_fieldcat INTO ls_fcat.   
    CASE ls_fcat-fieldname.
       WHEN 'SLART'.
    *is the first list box
            ls_fcat-drdn_hndl = '1'.
            ls_fcat-outputlen = 15.
            MODIFY gt_fieldcat FROM ls_fcat.
    is the second list box    
    WHEN 'ABART'.       
            ls_fcat-drdn_hndl = '2'.
            ls_fcat-outputlen = 15.
            MODIFY gt_fieldcat FROM ls_fcat.   
    ENDCASE.
      ENDLOOP.
    ENDFORM.                    "build_fieldcat
    *&      Form  ALV_OUTPUT
    FORM alv_output .*Create object for container
      CREATE OBJECT g_custom_container
             EXPORTING container_name = 'CCONT'.
    *create object for grid
      CREATE OBJECT g_grid
             EXPORTING i_parent = g_custom_container.
    Build fieldcat and set column
    *Assign a handle for the dropdown listbox.
      PERFORM build_fieldcat.
    *Build layout
      PERFORM build_layout.
    Define a drop down table.
      PERFORM dropdown_table.
    *fetch values from the T517A table
      SELECT * FROM t517a INTO TABLE gt_outtab.
    *Display ALV output
      CALL METHOD g_grid->set_table_for_first_display
        EXPORTING
          is_layout       = gs_layout
        CHANGING
          it_fieldcatalog = gt_fieldcat
          it_outtab       = gt_outtab.ENDFORM.                               "ALV_OUTPUT
    *&      Form  dropdown_table
          text
    -->  p1        text
    <--  p2        text
    FORM dropdown_table.*Declarations for drop down lists in ALV.
      DATA: lt_dropdown TYPE lvc_t_drop,
            ls_dropdown TYPE lvc_s_drop.
    First SLART listbox (handle '1').
      ls_dropdown-handle = '1'.
      ls_dropdown-value = '01 Primary school'.
      APPEND ls_dropdown TO lt_dropdown.  ls_dropdown-handle = '1'.
      ls_dropdown-value = '02 Lower Secondary'.
      APPEND ls_dropdown TO lt_dropdown.  ls_dropdown-handle = '1'.
      ls_dropdown-value = '03 Upper Secondary'.
      APPEND ls_dropdown TO lt_dropdown.
      ls_dropdown-handle = '1'.
      ls_dropdown-value = '04 Professional School'.
      APPEND ls_dropdown TO lt_dropdown.
      ls_dropdown-handle = '1'.
      ls_dropdown-value = '05 College'.
      APPEND ls_dropdown TO lt_dropdown.
      ls_dropdown-handle = '1'.
      ls_dropdown-value = '06 University'.
      APPEND ls_dropdown TO lt_dropdown.
      ls_dropdown-handle = '1'.
      ls_dropdown-value = '09 Other Establishment'.
      APPEND ls_dropdown TO lt_dropdown.* Second ABART listbox (handle '2').  ls_dropdown-handle = '2'.
      ls_dropdown-value = '10 Primary School certificate'.
      APPEND ls_dropdown TO lt_dropdown.
      ls_dropdown-handle = '2'.
      ls_dropdown-value = '20 Lower secondary/Junior high'.
      APPEND ls_dropdown TO lt_dropdown.  ls_dropdown-handle = '2'.
      ls_dropdown-value = '30 High school diploma(B-levels)'.
      APPEND ls_dropdown TO lt_dropdown.
      ls_dropdown-handle = '2'.
      ls_dropdown-value = '31 Vocational'.
      APPEND ls_dropdown TO lt_dropdown.  ls_dropdown-handle = '2'.
      ls_dropdown-value = '32 Matriculation'.
      APPEND ls_dropdown TO lt_dropdown.  ls_dropdown-handle = '2'.
      ls_dropdown-value = '40 Specialist vocational certificate'.
      APPEND ls_dropdown TO lt_dropdown.  ls_dropdown-handle = '2'.
      ls_dropdown-value = '50 College degree Level1'.
      APPEND ls_dropdown TO lt_dropdown.  ls_dropdown-handle = '2'.
      ls_dropdown-value = '51 College degree Level2'.
      APPEND ls_dropdown TO lt_dropdown.  ls_dropdown-handle = '2'.
      ls_dropdown-value = '52 Masters degree'.
      APPEND ls_dropdown TO lt_dropdown.  ls_dropdown-handle = '2'.
      ls_dropdown-value = '60 Univ Degree level1'.
      APPEND ls_dropdown TO lt_dropdown.  ls_dropdown-handle = '2'.
      ls_dropdown-value = '61 Bachelors degree'.
      APPEND ls_dropdown TO lt_dropdown.  ls_dropdown-handle = '2'.
      ls_dropdown-value = '62 Masters degree'.
      APPEND ls_dropdown TO lt_dropdown.  ls_dropdown-handle = '2'.
      ls_dropdown-value = '63 Licenciate'.
      APPEND ls_dropdown TO lt_dropdown.  ls_dropdown-handle = '2'.
      ls_dropdown-value = '64 Doctors Degree Ph.D'.
      APPEND ls_dropdown TO lt_dropdown.  ls_dropdown-handle = '2'.
      ls_dropdown-value = '89 None'.
      APPEND ls_dropdown TO lt_dropdown.  ls_dropdown-handle = '2'.
      ls_dropdown-value = '90 Unknown'.
      APPEND ls_dropdown TO lt_dropdown.*method to display the dropdown in ALV
      CALL METHOD g_grid->set_drop_down_table
        EXPORTING
          it_drop_down = lt_dropdown.ENDFORM.                               " dropdown_table
    *&      Form  build_layout
          text
    *layout for ALV output
    FORM build_layout .  gs_layout-cwidth_opt = 'X'.
      gs_layout-grid_title = 'ALV DROPDOWN LISTS'.
      gs_layout-no_toolbar = 'X'.ENDFORM.                    " build_layout
    endform.
    Edited by: S.r.v.r.Kumar on Jun 1, 2009 2:48 PM

  • Remove "Export Spreadsheet" button in result list for search on BP in WebUI

    Hi everybody,
    Could someone tell me how to remove the standard button "Export spreadsheet" from the result list of a search for Customer and Account in the WebUI?
    Is it possible to do this by using the transaction BSP_WD_CMPWB "BSP WD Component Workbench"?
    The component is CRM_UI_FRAME and I'm afraid that if I do some changes to this one, the modification will affect all othe transaction with search...
    I'm open to other solutions (if exists ;o)
    Thanks in advance,
    Luis.

    Hello Michael,
    First thing, thanks for your quick answer :o)
    It 's the first time that I use the BSP WD Component Workbench so I don't know what you are talking about, sorry :o)
    I understand that I have to put the parameter "downloadToExcel" to False but I don't know where it is.
    I looked in the tree node "View layout" of the component CRM_UI_FRAME.
    I didn't find the tag "chtmlb" in the code.
    Could you please explain me a little more about this (or just where to look ;o)
    Thank you very much,
    Luis.

  • Hi gurus in ALV how to edit the fields on out put list

    hi gurus in ALV how to edit the fields on out put list

    hi
    REPORT ZSB_ALV_EDITABLE_SAMPLE.
    TABLES: SFLIGHT.
    DATA: gc_container TYPE scrfname VALUE 'LIST_AREA',
    gc_custom_container TYPE REF TO CL_GUI_CUSTOM_CONTAINER,
    gc_grid TYPE REF TO CL_GUI_ALV_GRID,
    gs_layout TYPE LVC_S_LAYO,
    gt_fieldcat TYPE LVC_T_FCAT.
    DATA: ok_code TYPE SY-UCOMM.
    DATA: gt_outtab TYPE TABLE OF SFLIGHT.
    *DYNPRO
    CALL SCREEN 100.
    *& Module STATUS_0100 OUTPUT
    MODULE STATUS_0100 OUTPUT.
    SET PF-STATUS '100'.
    CREATE OBJECT gc_custom_container
    EXPORTING
    container_name = gc_container
    EXCEPTIONS
    cntl_error = 1
    cntl_system_error = 2
    create_error = 3
    lifetime_error = 4
    lifetime_dynpro_dynpro_link = 5
    OTHERS = 6.
    CREATE OBJECT gc_grid
    EXPORTING
    i_parent = gc_custom_container
    EXCEPTIONS
    error_cntl_create = 1
    error_cntl_init = 2
    error_cntl_link = 3
    error_dp_create = 4
    OTHERS = 5 .
    PERFORM prepare_field_catalog CHANGING gt_fieldcat .
    PERFORM prepare_layout CHANGING gs_layout .
    PERFORM get_alv_display.
    ENDMODULE.
    *& Module USER_COMMAND_0100 INPUT
    MODULE USER_COMMAND_0100 INPUT.
    OK_CODE = SY-UCOMM.
    IF OK_CODE = 'BACK'.
    SET SCREEN 0.
    LEAVE SCREEN.
    CLEAR OK_CODE.
    ENDIF.
    ENDMODULE.
    FORM prepare_field_catalog CHANGING gt_fieldcat TYPE LVC_T_FCAT.
    CALL FUNCTION 'LVC_FIELDCATALOG_MERGE'
    EXPORTING
    I_BUFFER_ACTIVE =
    I_STRUCTURE_NAME = 'SFLIGHT'
    I_CLIENT_NEVER_DISPLAY = 'X'
    I_BYPASSING_BUFFER =
    I_INTERNAL_TABNAME =
    CHANGING
    ct_fieldcat = gt_fieldcat[].
    ENDFORM.
    FORM prepare_layout changing p_gs_layout TYPE lvc_s_layo.
    p_gs_layout-zebra = 'X'.
    p_gs_layout-edit = 'X'.
    ENDFORM. " prepare_layout
    FORM get_alv_display .
    SELECT * FROM sflight INTO TABLE gt_outtab UP TO 10 ROWS.
    CALL METHOD gc_grid->set_table_for_first_display
    EXPORTING
    I_STRUCTURE_NAME = 'SFLIGHT'
    IS_LAYOUT = gs_layout
    CHANGING
    it_outtab = gt_outtab
    IT_FIELDCATALOG = gt_fieldcat
    ENDFORM. " get_alv_display

  • How to activate sumation functions in alv tool bar..!!

    hi,
    how to activate the icon for summation that appears for an alv when it is in diasabled State.
    all icons are working except that summation...please suggest me..!
    thanks
    sivaram.

    Hi,
    In your ALV there has to be numerical field. Check the structure.
    It wiill come automatically.
    Reward if useful!

  • ALV List export to Excel when program is run in background

    Hello,
    I am running into an issue with a custom ALV report which contains an export to Excel option on the input screen. However, when I attempt to run the report in background due to high volume of records/expected performance constraints, the job fails to produce a spool when the "export to Excel" option is selected. When I deselect that option, the background job successfully generates a spool, which I can then export to Excel (albeit the formatting will not look the same).
    Is the above an accurate statement or does anyone know of a way where either;
    1) The background job can create and store the Excel output into a cached directory?
    2) The spool generated, when exported to Excel, can match the format of the foreground Excel output?
    Thanks in advancce.

    Check out the sample program of the provided link ..
    http://www.sap-img.com/abap/download-in-background-in-excel-format.htm

Maybe you are looking for