How to automate ALV to Excel View selection?

How to automate ALV to Excel View selection?
I'd like to view ALV data in Excel sheet. The standard way is to select "View" tab in "Change Layout" window, then click "Excel" radio button, then I should select document template from list, then I should select it again, then I need to press "Copy" button.
This is very long way! Is it possible to do it automatically, without multiple selection and pressing lots of buttons.

Hello Vladimir,
Use FM 'XXL_SIMPLE_API ' or XXL_FULL_API .
Also go thru the link :
http://www.sap-img.com/abap/download-to-excel-with-format-border-color-cell-etc.htm

Similar Messages

  • ALV for excel view version 2003

    Hi Experts,
    I am using FM 'REUSE_ALV_GRID_DISPLAY' for ALV reports. In my system I am using Excel 97 version and I could see the output in excel format when I press Microsoft Excel (ctrlShiftF7). But my user is using version 2003. He couldn't see the data but only empty sheet.
    How can I solve this..?
    Regds,
    Vinsa.R

    Hi Vinsar,
    My solution is based on Oss Note 853821
    Try this:
    In Excel:
    Tools -> Macro -> Security;
    select the Security Level tab;
    ensure that the radiobutton Medium is selected
    click OK.
    Exit Excel.
    Try this first. If it doesnot work then try these additional changes as well keeping the first set of changes to Macros intact.
    Tools -> Macro -> Security;
    select the Trusted Sources tab;
    ensure that the box Trust access to Visual Basic Project is checked;
    click OK.
    Exit Excel.
    Regards.
    Ruchit.

  • How to download alv to excel but translate char to number  ?

    i have alv report that the user want to download the
    result to excel , ok you have two ways  :
    1) excel inplace , its work good but in big amount of
       data the option is working slow and the user
       dont want to use it .
    2) download it as local file , the problem is that
    the fields that contain the amount is char format
    due to using dynamic columnes,
    so how can i convert the field that it will be download
    to excel as number  ?
    i tried to change the fieldcatalog to :
    LS_FCAT-DATATYPE  = 'QUAN'.
    LS_FCAT-INTTYPE = 'P' .
    but its not help .
    thanks .

    hi dakota,
    you could make your own download-routine.
    before downloading you move the data in an internal table where all fields have the wanted format.
    then download it with function module "GUI_DOWNLOAD" name the file ".xls" and use filetype "DBF".
    this way you get an excel with formatted rows as you like.
    br,
    matthias

  • How to download ALV  to Excel

    Hi all!
    Any body can guide me how to download records from ALV output to Excel,i have tried to downlowad using the Excel button which is coming as default in ALV display, but when i m clicking that Excel button ,i m getting the empty sheet with out data, what should i do?
    Thanks & Regards,
    palani

    Hello Raja,
    The standard icon should work!! Which icon are you using? there's one with the tool-tip text <b>Export</b>. That is the one to be used.
    If you are still not able to get that, then display the grid as a list and then use the standard menu option <i>System>List>Save-->Local File</i>.
    Hope that helps,
    Regards,
    Anand Mandalika.

  • How to export alv into excel sheet without using toolbar button

    hi,
    i have developed ALV using FM methord on that i have created one button when user will click on that button
    hole ALV should export in to excel as it is and that ALV is Heaving top of page contain also i want that shuld
    also copy please help me for that please send me the sample code for that
    Edited by: ankita khare on Nov 3, 2008 9:42 AM

    Check this:
      CALL FUNCTION 'GUI_DOWNLOAD'
        EXPORTING
          filename                = 'C:/test.xls'
          filetype                = 'ASC'
          write_field_separator   = 'X'
        TABLES
          data_tab                = t_output
    Regards.

  • How SAP stores ALVs in Excel

    I would like to know witch critheria makes SAP to export an ALV grid to Excel file. When I use the standar ALB button, the order of the columns is the same that in the ALV. But when I go to Menu -> List -> Export -> To excel, the excel file generated has all the ammount and quantity data in the finals columns in white color and the rest of columns are in yellow in the first columns.
       My problem is that I need each quantity or amount with its corresponding unit next the value.
      Thanks In Advance
      Regards.

    <b>When you do an Export to Excel from ALV</b> - The logic is with reference to your current field catalog ( order of columns, hidden/displayed layout settings etc) the DATA table is passed to the Excel. ALV calls a function module ALV_XXL_CALL for doing it.
    On the contrary, when you do an Export to Excel for a list - its a very generic thing. The entire list is taken on to an internal table and passed to a File. The file is stored in ur presentation server( ur desktop) and Excel application opens this file.
    So bottom line is in the first case SAP calls excel application then passes the data and in the second case it passes the data then calls the Excel to open the file.
    Now coming back to ur requirement - You want all your units to come after your amount fields - you can create a layout in ALV ( in case you are operating from ALV) and if it is a list then also u ll have to do the same thing.

  • How to automatically "save" email when viewed?

    I'm migrating to Mail after 14+years on AOL where they had a preference to "save email that I read" to an incoming/saved mail folder. Is there a way to do this in Mail automatically so when I open an email to read it, it's automatically saved in an incoming/saved mail folder? I want to MOVE (not copy) every message to a different folder once it's read, for archiving purposes, sort of like a personal diary/journal/blog, as I do a lot of "chatting" in email that documents my life and that of my children.

    Ziv Jacoby wrote:
    Let me explain how I tackle this and maybe, if you like it, you can do the same.
    I hold several mailboxes on my Mac each has its own rule. Apart from that I have a smart mailbox which only holds my unread mails. When my emails arrive I always read them from my smart mailbox and deleting them if I want. If I want to retrieve them I go to the desired mailbox on my Mac.
    I hope this will solve your problem,
    ok, that sounds like it might work--but how do I get the emails into the 'on my mac' folder since I can't find a "if mail is read/unread" condition in the rules?
    thanks!

  • Excel View from an ALV Report

    Hi,
    How I can use the Excel View correctly?. I have a User that want to see this view from an ALV Report. The user clicks on "Views" -> "Microsoft Excel" then in the ALV area appears the excel workarea but all the cells are blank.
    Is there an option or previous configuration than make the data appear?
    Regards,
    CL

    carlos,
    Check this out.
    1) To change the current layout, show additional information, or hide unnecessary information, choose  next to  and then Change Layout. 
    The Define Layouts dialog box appears. All of the fields displayed in the report are listed in the left column. All of the available information you can display is listed in the right column. This information is grouped. Through the list box, you can select a certain field group and display the available fields in the right column.
    Make the desired changes and select  Enter.
    2) Select the desired fields and use the arrow keys to transfer the selected fields or all fields. These fields are now shown in the left column.
    3) End your selection with Enter. The layout you have defined is applied to the report immediately.
    4) To save this selection, select Save. Name your layout. The name of the layout must begin with a slash (/) or with a letter (user-specific).
    5) Decide whether you want to save the layout as a user-specific layout. If you save it as a user-specific layout, it is only available to you. If you don’t save the variant as a user-specific layout, it is also available to other users.
    Hope this helps u,
    Regards,
    Nagarajan.

  • How to open an ALV (the OO way) in Excel-View  right away?

    Dear experts,
    i'm creating an ALV Grid by using method set_table_for_first_display and I wonder if I can initially choose the Excel-view for it as if the user had switched over to it by using the standard "view" function. I figured that this might be posible by using the "FRONTEND" field in the Layout-structure, but this has no efect. Does anybody know how to do that? (if possible without creating an instance of the office integration class).
    regards
    Andreas

    Yeah, it is possible
    Check this code
    *   Container auxiliar
        create object g_o_container
          exporting
            container_name              = 'G_D_CONTAINER'
          exceptions
            cntl_error                  = 1
            cntl_system_error           = 2
            create_error                = 3
            lifetime_error              = 4
            lifetime_dynpro_dynpro_link = 5
            others                      = 6.
        create object g_d_grid
          exporting
            i_parent          = g_o_container
            i_parentdbg       = cl_gui_custom_container=>default_screen
          exceptions
            error_cntl_create = 1
            error_cntl_init   = 2
            error_cntl_link   = 3
            error_dp_create   = 4
            others            = 5.
      endif.
      perform layout.
      perform fieldcat.
      call method g_d_grid->set_table_for_first_display
       exporting
          is_layout                     = gs_layout
    *     is_print                      =
    *     it_special_groups             =
    *     it_toolbar_excluding          =
        changing
          it_outtab                     = g_t_alv
          it_fieldcatalog               = g_t_fieldcatalog
        exceptions
          invalid_parameter_combination = 1
          program_error                 = 2
          too_many_lines                = 3
          others                        = 4
    The key is using the i_parentdbg parameter when creating the ALV Grid, it's kind of a trick, but it worked for me.

  • ALV Grid and Excel view

    Hi,
    I'm searching anywhere on this forum for a solution but up to now I did only partial progress.
    I've already seen dozens of sap notes about this problem.
    When I pressed "view in Microsoft Excel" (code &VEXCEL) on an ALV grid list, a popup appeared noticing that no template was found. Looking around on this forum I managed to discover how to load these templates from local (BC_ALVEXCEL_SAP_TEMPL, BCALV_BDS_MAINTENANCE) or from client 000 (BCALV_BDS_IMPORT_SAP_TEMPLATE).
    Anyway, I managed to restore the templates on the system, but excel view still doesn't work:
    wheh I press the button now I only see a blank screen in place of the excel; if excel was already open (not in sap), then an excel view is actually shown, but the sheet is empty, no data in it.
    Any hints?
    thank you

    Hi,
    Just open Excel, then Goto Menu -> Tools -> Options -> Security Tab -> Macro Security ->Set Medium and in Trusted publisher tab select the checkbox Trust Access to Visual Basic Project Now Press Ok.
    This will solve your problem.
    Regards
    Karthik D

  • ALV Excel View Problem

    Hi All,
        I have a problem with the ALV display problem.
        When I click on the 'Microsoft Excel View' button at the top of the ALV display, I can view the data in Excel View.
        However, when my user click it on his computer, he saw the excel view is blank without data (even there are data at the initial ALV display screen).
        May I know what is the root cause of this problem? I've no idea of how to investigate it or solve it.
        Many Thanks.

    HI try with this code------
    *& Report  ZTEST_DOWNLOAD1
    report  ztest_download1.
    tables : trdir.
    type-pools: slis.
    types: begin of gt_output,
            progname type progname,
            strct_type(14) type c,
            strct_name(50) type c,
            serial(8) type c,
            mainfieldname(50) type c,
            offset(17) type c,
            leng(8) type c,
            decimals(8) type c,
            inttype(15) type c,
            datatype(9) type c,
            scrtext_m type scrtext_m,
            tabname type tabname,
            fieldname type fieldname,
            rollname type rollname,
            domname type domname,
            default(100) type c,
            end of gt_output.
    types: begin of gt_header,
            name(300) type c,
    end of gt_header.
    data : gi_output type standard table of gt_output,
           wa_output type gt_output,
           gi_header   type standard table of gt_header.
    data: d_filename like ibipparms-path,
          gi_fieldcat type slis_t_fieldcat_alv,
          wa_fieldcat type slis_fieldcat_alv,
          wa_header type gt_header.
    selection-screen:
    begin of  block b1 with frame title text-001.
    parameter: program(150) type c default 'ZTOOL_TEST'.
    select-options so_incl for trdir-name default 'ztool_test' no intervals .
    selection-screen begin of line.
    parameters :pa_check as checkbox default 'X'.
    selection-screen comment (29) text-t01.
    parameters :pa_path type rlgrap-filename default 'D:\TRIAL.XLS'.
    selection-screen end of line.
    selection-screen end of block b1.
    at selection-screen.
      perform download_excel_template.
    at selection-screen on value-request for pa_path.
      perform f4_file_help.
    *&      Form  F4_file_help
          text
    -->  p1        text
    <--  p2        text
    form f4_file_help .
      call function 'KD_GET_FILENAME_ON_F4'
        exporting
          program_name  = sy-repid
          dynpro_number = syst-dynnr
          field_name    = pa_path
        changing
          file_name     = d_filename
        exceptions
          mask_too_long = 1
          others        = 2.
      if sy-subrc <> 0.
       MESSAGE ID gv_msgid TYPE 'I' NUMBER 000.
      endif.
    endform.                    "f4_file_help
    form download_excel_template .
      refresh gi_header.
      wa_header-name = text-t01.
      append wa_header to gi_header.
      wa_header-name = text-t02.
      append wa_header to gi_header.
      wa_header-name = text-t03.
      append wa_header to gi_header.
      wa_header-name = text-t04.
      append wa_header to gi_header.
      wa_header-name = text-t05.
      append wa_header to gi_header.
      wa_header-name = text-t06.
      append wa_header to gi_header.
      wa_header-name = text-t07.
      append wa_header to gi_header.
      wa_header-name = text-t08.
      append wa_header to gi_header.
      wa_header-name = text-t09.
      append wa_header to gi_header.
      wa_header-name = text-t10.
      append wa_header to gi_header.
      wa_header-name = text-t11.
      append wa_header to gi_header.
      wa_header-name = text-t12.
      append wa_header to gi_header.
      wa_header-name = text-t13.
      append wa_header to gi_header.
      wa_header-name = text-t14.
      append wa_header to gi_header.
      wa_header-name = text-t15.
      append wa_header to gi_header.
      wa_header-name = text-t16.
      append wa_header to gi_header.
      wa_output-strct_name = 'abc'.
      append wa_output to gi_output.
      call function 'MS_EXCEL_OLE_STANDARD_DAT'
        exporting
          file_name                 = pa_path
          data_sheet_name           = 'Structure details'
        tables
          data_tab                  = gi_output
          fieldnames                = gi_header
        exceptions
          file_not_exist            = 1
          filename_expected         = 2
          communication_error       = 3
          ole_object_method_error   = 4
          ole_object_property_error = 5
          invalid_pivot_fields      = 6
          download_problem          = 7
          others                    = 8.
      if sy-subrc <> 0.
       MESSAGE ID gv_msgid TYPE 'E' NUMBER 002.
      endif.
    endform.                    " DOWNLOAD_EXCEL_TEMPLATE
    regards
    prashant

  • How to link individual picker view selections to download an individual file from a website or other location such as dropbox using Xcode?

    Alright, the question I have has to deal with how to link an app to a website to download files. How, or is it even possible to link individual picker view selections to download an individual file from a website or other location such as dropbox using xcode. Sorry if this is the wrong place to post this, but if anyone can help or can send a link to a place that can, I would greatly appreciate it!

    I am not getting anywhere with deploying my application or
    applet.
    I have set up my bc4j project. It contains all my VO info,
    links, application module. (proj a)
    I then have another project with DbInfo in it(has all my rowset
    info), Multiple Frames, and my Applet.java file.
    Actually I have an Applet.java file and a Application.java file
    because I was seeing if both/either worked. Anyway they seem the
    same, except for that extra window that comes up when you run the
    applet.
    I follow the steps in the oracle directions (from earlier post).
    And all seems ok. But at ---->
    [*] Select the subdirectory under myhtml where your applet's HTML
    file
    is located, and enter the directory path of the 'staging'
    directory you
    created in step 3 above, if different from the default.</li>
    [*]Select the HTML files that JDeveloper created to run your
    applet.</li>
    [*]Select all of the Java source files in your project that make
    up the
    applet.</li>
    I have no HTML file associated with my applet, at least that I
    know of.
    So do I need to create one, or should it of been done
    automatically.
    Also, I trying to figure out what will be the best way to deploy
    my project. Applet or stand alone application is what my first
    choices have been so far. I have read that there is some issues
    with applets being served from a different server than the
    database. So a stand alone application was my front runner, but
    I haven't gotten either way to work yet.

  • How to download alv grid output(with field catalog) into excel file format

    Hi all,
    How to download alv grid output(with field catalogs) into excel file format and same file has to download to application server.
    Please help.
    Regards,
    Satya.

    Hi,
    On list where alv is displayed, select export icon( green color -> ),select spread sheet.
    This will display records in Excel sheet.

  • Excel view in ALV Grid---- Urgent

    Hi,
    On executing sample porgram BCALV_FULLSCREEN_DEMO, we get ALV grid display. After that, on Clicking "<b>Microsoft Excel View(controlshiftF7)</b>" we are getting blanck Excel screen view instead of the field values.
    I have the same scenario requirement in real time. I want the excel screen with values from ALV Grid.
    Thanks in Advance.
    -Mohan.

    Hi Mohan,
    Try this:
    Download Data in EXCEL from ALV list display
       1) Once you have alv report displayed in the screen.
       2) Click button 'View' ( next to print button) on application toolbar
       3) Select Excel in Place
       4) This will download the same format as of Report
    I hope your ALV have all the Standard functions in Toolbar. If not copy the status from and get the function as mentioned above.
    <b>Program - SAPLSALV
    Status  -  STANDARD</b>
    Reward points if this Helps.
    Manish

  • How to  send ALV output data into Excel sheet format via Mail to the user?

    Hi friends,
    I have a doubt ie,
    How to  send ALV output data into Excel sheet format via Mail to the user?
    regards
    Moosa

    Hi,
    Provide the output internal table to the objbin in the below FM
    Send Message
      CALL FUNCTION 'SO_NEW_DOCUMENT_ATT_SEND_API1'
           EXPORTING
                document_data              = i_docdata
                put_in_outbox              = c_x
           TABLES
                packing_list               = i_objpack
                object_header              = i_objhead
                contents_bin               = i_objbin
                contents_txt               = i_objtxt
                receivers                  = i_reclist
    and specify the document type
      i_objpack-doc_type   = 'XLS'.
    and try.
    Regards,
    Nandha

Maybe you are looking for

  • Download pdf-files from websites is disabled!???

    Some websites provide additional information by making the user download a PDF-file. For some reason (can't really say since when), whenever I need to download a PDF, either there's a blank location-address or Firefox just stops whenever the PDF-link

  • Hello can someone help my phone is on but just say itunes how to i get it going again thanks

    Hi I'm trying to turn on my phone its on but says itunes can anyone help thanks

  • Port Stock Handling

    Hi Gurus, My customer has the below requirement They recieve material from import Vendor,recieve first at port and invoice is Paid ...because of the capacity restrictions of the  warehouse ...I will keep the stock in Port This stock should not be val

  • Where did GridBagConstraints.RIGHT (LEFT) go?

    Am I missing something obvious or is it just me missing this feature alot? Especially since "anchor" doesn't have the wanted effect inside a "filled" container. (or so it has atleast lead me to beleive)

  • 10g Data Guard Install Questions... Solaris 9

    Firstly, I've done several Failsafe installes on Wintel platforms, but I'm having a tough time getting started installing Dataguard on Solaris. According to the manual: Oracle® Data Guard Broker 10g Release 1 (10.1) Part Number B10822-01 "The Oracle