Cant use Export to Excel functionality for ALV if I add a custom button

Hi,
  I have added a custom button the the ALV toolbar by creating a GUI status and using the USER_COMMAND event. However. Now I dont the get the standard ALV toolbar with all the options for sorting, exporting to excel etc.
  Can someone show me how I can do both, add my own button to the toolbar as well as use ALV Grid toolbar. Currently the ALV grid standard toolbar has disappeared
Thanks for reading

Hello,
I am not sure how you are creating your ALV report.  If you are using FM REUSE_ALV_GRID_DISPLAY there is a parameter callled I_CALLBACK_PF_STATUS .  Read the documentation for this field from the doc for the FM.  It tells you to copy a standard PF status from fucn group SLVC_FULLSCREEN and then add your new button to that staus.
If you are using class CL_SALV_MODEL_BASE there is a method called set_screen_status that lets you do a similar thing - copy an existing PF status and add your button.
Hope that helps
Regards
Greg Kern

Similar Messages

  • Export to Excel functionality for Multiple tabs in WAD

    Hi,
    I have a requirement where in i need to export a report from WAD to excel. The WAD template has multiple tabs which i want individually in seperate excel sheet tabs. How can i achieve this ?
    Regards
    Snehith.

    Hi,
    have a global button (some where on the top) with command 'export to excel' and configure all your analysis item for that button. So when u execute the template and when u click on individual tab, the report out from individual tab will be exported to excel when u click on Export to excel button.In this way u can individually export the output to excel.
    Regards

  • RDL reports(2008).File name after using Export to Excel is not comming properly in mozilla firefox.

    I am using Export to Excel functionality in rdl report.
    File name should be "Profitabilty By Buyer". It is working as expected in IE and chrome.
    But in mozilla firefox the file name appears as "Profitabilty".
    So the issue is it doesnt consider anything after space and user requirement is such that I cant put underscore("_") also instead of space.
    Kindly suggest the proper solution.

    Hi Mukesh,
    Reporting Services, we use a Web browser to view the report that deploy to Report Service. However, not all report functionally is supported by all browsers. Such as, the print button is not supported in Mozilla Firefox. It works only in Internet Explorer
    due to it uses ActiveX for the print button.
    I have tested it on my local environment, (SQL Server Reporting Services 2008, Firefox 28.0), we cannot reproduce this issue. So the issue can be the custom setting of your browser. Since SSRS reports are not about targeting NON-IE browsers, so in your scenario,
    we recommend you use IE to view report on Report Manager.
    And you said that you cannot put underscore ("_") also instead of space. However we can do this which you can see on the screenshot below.
    Regards,
    Charlie Liao
    TechNet Community Support

  • Adding "Filter Criteria" to the XSLT List View Web Part impact on "Export to Excel" functionality within Document Library

    Hi there,
    XSLT List View displaying all the list items within the Document Library. In order to implement the Search functionality within Document library out of box "Text Filter" web part is configured as explained below. The solution is similar to
    the one suggested at
    http://www.wonderlaura.com/Lists/Posts/Post.aspx?ID=77
    "Text Filter" Web Part added to the page.
    Filter Criteria (i.e., XSLT List View columns) added to the XSLT List View where the filter parameters take the input from the "Text Filter" Web Part .
      3. Both Web Parts (XSLT List View and the Text Filter) are connected.
    When the search criteria is entered into the "Text Filter" Web Part, it is passed to the relevant Columns of the XSLT List View and the documents (List Items) that match the search criteria are shown within XSLT List View.
    Search functionality working as expected.
    Query: Selecting the "Export to Excel" icon from the ribbon generates the excel spread sheet with no data except Column Titles from the Document library. In the investigation it is
    found that adding the 'Filter Criteria' on XSLT List View is causing this bug. When the Filter Criteria is removed, then "Export to Excel" functionality is working as expected.
    But it is mandatory to add "Filter Criteria" to implement the search functionality with in the document library.
    Help: Help/input appreciated on the work around to get the "Export to Excel" functionality work when the "Filter Criteria"
    exist on the XSLT List View.
    Regards,

    Once again thanks very much for your help Scott. very much appreciated.
    In the investigation it is found that removing the 'Filter Criteria' on XSLT List View makes the "Export to Excel" functionality work. But the 'Filter Criteria' is mandatory to get the 'Document Search' functionality.
    I think that due to technical limitations it should be concluded that 'only custom development can make all work, no code solutions using the SharePoint Designer can meet all the requirements.
    If you can think of any alternative solution that could help in resolving the current issue or fix the issue without any custom implementation please inform. Otherwise this issue would be marked as resolved with your suggested response.
    Regards,

  • VC Export to Excel Functionality not working

    Hi All,
    I have an issue an implementing the "Exporting the Table data to Excel."
    My VC version is 7.0
    Portal version NW 2004s.
    I have followed the instructions in the How To doc:
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/47fe4fef-0d01-0010-6f87-ed8ecb479123 have implemented Export To Excell functionality in VC.
    yet we're getting the error:
    Portal Runtime Error
    An exception occurred while processing a request for :
    iView : N/A
    Component Name : N/A
    iView not found: pcd:portal_content/com.sap.pct/platform_add_ons/com.sap.ip.bi/iViewsüom.sap.ip.bi.bex.
    Exception id: 05:39_17/04/07_0001_4060051
    See the details for the exception ID in the log file
    Any assistance/advice appreciated.
    cheers,
    Imran

    Very strange, as I know there is no ü allowed. There should be used only ASCII.
    And if there is a ü, this should translated, e.g. with base64 encoding or sth. like that.
    Best Regards,
    Marcel

  • Template having export to excel functionality with filter values in WAD

    Hi,
    I need to create a template which has export to excel functionality with all the filter values that the user has selected in the selection screen.
    export to excel can be done but how can be the output excel sheet contain only those values which we see in browser  when the report is executed with some filters.
    Regards,
    Apeksha

    Hi Apeksha,
    you can achieve this requirement (unless I do not know the detailled requirement) perhaps by using this way of implementation:
    1. Create a new template which contains an info_field which does a data binding to the variable values or the characteristic you want to display. Set the visibility of the top container to "hidden". Add a empty data provider to this template. However be aware that the name for the (empty) data provider must match the name of the data provider within the original template you want to print.
    2. Open your original template and include the template you created in step 1 (Advanced: Web Templates and technical name of the web template created in step 2). Choose the appropriate location (above/below the analysis item).
    3. Check the settings of your export command: do not set a special web item to be printed.
    If you export the template within web the second template should be printed correctly displaying the variable settings chosen in step 2 for the info_field.
    Brgds,
    Marcel

  • Export to Excel functionality doesn't work when DataControlScope is shared.

    Hi All,
    I have a taskflow whose transaction setting is as Below:
    1.Always Begin New Transaction
    2.DataControlScope is isolated(Share data controls with calling task flow checkbox is unchecked).
    I have an Export to Excel functionality with exportCollectionActionListener.The jsff source snippet is given below.
    <af:commandMenuItem text="#{smviewcontrollerBundle.EXPORT_TO_EXCEL}"
    id="cmi1" icon="/images/excel_icon.jpg"
    binding="#{backingBeanScope.backing_fragments_RefSetSearch.cmi1}">
    <af:exportCollectionActionListener exportedId="resId1"
    type="excelHTML"
    filename="SmRefSetCodes"
    title="System Reference Inquiry Result"/>
    </af:commandMenuItem>
    The jsff is used in the above mentioned task-flow.Having this configuration in task-flow,export to excel doesn't export any table data in the excel sheet.But the moment,data-control-scope is changed to shared,export starts working.
    Is there any specific reason on this kind of behavior.
    In all other task-flows in my application,I have data-control-scope as isolated only,but there,export is working perfectly fine.
    Please help.
    Thanks,
    Gaurav

    Hi Frank,
    Thanks for your reply.
    Exactly,I have just one task-flow in which I have a page fragment for which export to excel is not working.The moment I change the data-control-scope to shared,export functionality starts working.
    I do have correct table id mentioned in exportCollectionListener.
    Is there anything I need to look into?
    Thanks,
    Gaurav.

  • Close window in export to excel functionality

    Hello Everyone,
    I have created application of export to excel functionality as per following document.
    Exporting Data from Web Dynpro in Different Formats Using Open Source (POI, JExcel, iText) APIu2019s
    https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/d0cc41cb-9576-2b10-99a6-ab90ef28c73b
    i want to close my parent window.
    I have written the following code.
    This code for Showpopup which is called in export to excel method.
    public void showpopup( com.sap.tc.webdynpro.services.sal.url.api.WDWebResourceType resourceType, java.io.ByteArrayOutputStream OutputStream, java.lang.String title )
        //@@begin showpopup()
         IWDResource resource = null;
              resource = WDResourceFactory.createResource(OutputStream.toByteArray(),"SupplierExcel",resourceType);
              wdContext.currentContextElement().setResource(resource);
              window = wdComponentAPI.getWindowManager().createNonModalExternalWindow(resource.getUrl(WDFileDownloadBehaviour.ALLOW_SAVE.ordinal()),title);
              window.setWindowSize(50,150);
              window.setWindowPosition(WDWindowPos.CENTER);
              window.show();
              wdContext.currentContextElement().setPopwindow(window);
         wdThis.wdGetTraiexcelAppInterfaceViewController().wdFirePlugClosewindow("javascript:void(window.close())");
        //@@end
    This is method of export to excel.
    public void export_to_excel( java.util.Map columninfo, com.sap.tc.webdynpro.progmodel.api.IWDNode datanode )
        //@@begin export_to_excel()
         ByteArrayOutputStream outputStream = null;
                        HSSFWorkbook wb = null;
                        HSSFSheet sheet = null;
              try
                    outputStream = new ByteArrayOutputStream();
                    wb = new HSSFWorkbook();
                    sheet = wb.createSheet("Table1");
                    int col = 0;
                    String attributeName, trimmedHeaderText;
                    HSSFRow row = sheet.createRow(0);
                    for (Iterator iter = columninfo.keySet().iterator(); iter.hasNext();)
                        attributeName = (String) iter.next();
                    trimmedHeaderText = (String)columninfo.get(attributeName);
                    columninfo.put(attributeName, trimmedHeaderText);
                    HSSFCell cell_hed = row.createCell((short)col++);
                    cell_hed.setCellType(HSSFCell.CELL_TYPE_STRING);
                    cell_hed.setCellValue(trimmedHeaderText);
                        for(int x=0; x<datanode.size(); x++)
                                            col=0;
                                            for (Iterator iter = columninfo.keySet().iterator(); iter.hasNext();)
                                                                attributeName = (String) iter.next();
                                            HSSFRow row_data_products = sheet.createRow(x+1);
                                            IWDNodeElement ele = datanode.getElementAt(x);
                                          HSSFCellStyle cellstle = wb.createCellStyle();
                                          cellstle.setWrapText(true);
                                          cellstle.setAlignment(HSSFCellStyle.ALIGN_CENTER);
                                          cellstle.setFillBackgroundColor(HSSFColor.BLUE_GREY.index);
                                          cellstle.setFillForegroundColor(HSSFColor.BLUE_GREY.index);
                                          HSSFFont font1 = wb.createFont();
                                          font1.setColor(HSSFColor.BLUE.index);
                                          font1.setBoldweight(HSSFFont.BOLDWEIGHT_NORMAL);
                                          cellstle.setFont(font1);
                                                    HSSFCell cell = row_data_products.createCell((short)col++);
                                                    cell.setCellValue(ele.getAttributeValue(attributeName).toString());
                                                    cell.setCellStyle(cellstle);
                        wb.write(outputStream);
                        showpopup(WDWebResourceType.XLS, outputStream, "XLS Out Put");
                        outputStream.close();
                        catch ( IOException ex )
                        //wdComponentAPI.getMessageManager().reportException(ex);
                        ex.printStackTrace();     
        //@@end
    Anyone can plz tell me how to close the window.
    Edited by: Abhilasha Dahare on Apr 6, 2009 3:04 PM

    Hi
    IWDWindow win = wdContext.currentContextElement().getPopwindow();
           win.destroyInstance();
    Here context element is same as u have used in opeing the popup.
    Best Regards
    Satish Kumar

  • Export to excel compatable for Office 2000

    Hi guys
    Could you  tell me is it the
    Export to excel function is compatable for office 2000.
    i am using BI 7.0  using Gui 7.0
    thanks in advance
    regards
    AK

    Hi Mauricio!
    It only works on Excel versions, which can import XML. The Excel export
    functionality creates an Microsoft Excel XML file and with Excel versions
    2002 and higher this works. Excel 97 has no XML import - so it doesn't work at all.
    Greetings
    Frank

  • How to Customize "Export to Excel" functionality in applicationsTable

    Hi All,
    I have an applicationsTable with exportEnabled. In my table, I have a column with commandImageLink. when we click on it, the summary of that particular record will be shown in the pop up. Now when I use "Export to Excel" feature I want the pop up content too to be exported to the Excel. Currently the column is shown with blank data in the exported Excel. Is there a way I can achieve that?
    How do I override/customize the default functionality? Please suggest me.
    Thanks in advance.

    884221,
    Reading between the lines, are you a fusion apps developer? If so, you need to be asking on an internal forum somewhere, since we, the general public, don't yet have any access nor knowledge to the magic of fnd:applicationsTable
    John

  • Text Elements in Export to Excel functionality

    Hello Gurus,
         I have added Export to Excel functionality button on my web template and also added a Text Element Web Item to my web template. I am unable to get the Text Elements into the Excel Sheet when I click on Export to Excel button. Is there a way to show them in the Excel sheet when I click on Export to Excel or it is not possible to show them.
    Please let me know.
    Thanks a lot
    Raj

    Raj,
    Export to Excel will work only for the table item. Not 100% sure, but don't think that it can be setup for teh text items.
    Put the text elements into parts of teh query, for e.g. in the query title or column headings.
    The idea of export to excel is that the data gets exported. There is no transfer of context of the information.
    Aneesh

  • I can't use arabic with excel office for mac 2011

    why i can't use Arabic with excel office for mac 2011?

    anajjar wrote:
    why i can't use Arabic with excel office for mac 2011?
    Because even after 14 years MS has failed to add arabic support to most Office products for Mac.  Instead use Open/LibreOffice or Numbers.

  • COPY TO EXCEL FUNCTION FOR MB5L

    ENHANCE THE COPY TO EXCEL FUNCTION FOR MB5L REPORT SO THAT THE DATA IS STRAIGHT AWAY TRANSFERRED TO EXCEL FILE IN PROPER COLUMNS AND VALUES.
    BEST REGARDS
    PANKAJ

    Hi Pankaj,
    Execute MB5L, then 
    go to list-Save-File-Spread sheet- Give file name and generate.
    Hope it helps.
    Uts

  • Add on custom button to ALV toolbar in std tcode ME51N, ME52N and ME53N.

    Hi All,
    I have the requirement to add on the custom button to ALV toolbar in ITEM OVERVIEW for standard transaction ME51N, ME52N and ME53N. Does anyone know what enhancement point or user exit i should apply and how i can add on the custom button?
    Thanks.

    There are no user exits or badi's for COOIS. You may have to make copy of the PPIO_ENTRY to ZPPIO_ENTRY including all the varians without changing their names like copy SAP&COOIS to SAP&COOIS. Create a T-Code ZCOOIS and replace COOIS in variant SAP&COOIS to ZCOOIS not in the name of the variant but in the field "Check Authorization for".
    The PF-Status is found in the include LCOISOUTPUTF16 which is located in the function group COISOUTPUT you may have to copy that too. Finally you need to copy SAPLCOISOUTPUT with its GUI status GENERAL and add your custom button there.

  • Formatting of Excel worksheet While using Export to Excel

    Hello Experts,
    I have a requirement to format the workbook according to the user needs while the user clicks "Export to Excel" in the webpage of Web template.
    The major problem is with the hierarchy.. when exporting, the hierarchy nodes have triangular symbols.. is there any way to remove them??
    What can i do, so that i can make changes to the default export format of the workbook, while exporting it??
    Any helpful suggession will be appreciated and rewarded.
    Thanks and Best Regards,
    Vikas Bittera.

    Hi Mark,
    Thank you very much for the response.. however this is not the full solution of my problem..
    Now, if i execute the same query in the BEx explorer analyzzer, then even this setting does not work... it shows traingles.. wht oue intention is to use Excel grouping function, so that the user will have better navigation in hierarchy..
    so is there any way to do this? we need to other formatting of the output.. is it possible that we can change the standard query ouput in excel??
    Looking ahead for your response..
    Thanks and Best Regards,
    Vikas Bittera.

Maybe you are looking for

  • Downloads going into wrong folder

    I have it set up so that when downloading any apps etc from the iTunes store that they go into a specific folder, but they are being downloaded into the default C: Users/my name/My Music/iTunes/mobile applications every time. Obviously I can copy the

  • How to restore a SP 2010 Foundation site collection in a SP 2010 Enterprise Server?

    Is it possible to backup a Foundation site collection and restore it in an Enterprise Server? Or should we use export/import? Which is the best way to perform this? Thank you J.Clua

  • Error messages in opening and closing garageband

    when I open or start a project it says "Error reading/writing file \U201Ccom.apple.garageband.cs\U201D: Logical end-of-file reached during read operation." Then when I quit it says "The application GarageBand quit unexpectedly." ect Basicly its a bit

  • Mail with attachment; dynamic receiver

    Hi everybody, we are sending a mail with attachment though mail adapter. In Micosoft Exchange the mail is received correct und the attachment is displayed. We got also a signature server. There the attachment is not regocnized. Any ideas. Is MS Excha

  • Auditing...without auditing....????

    Hi, very strange title... but.... I have an application developed in Oracle Forms10g. The end-users connect via a custom login form to the database as application users... I mean two or more end-users (each one is related to an application user , let