Export to Excel using URL in Discoverer Plus

Using Discoverer 4i Plus.
Using URL arguments I want to export to Excel automatically. I see that if I was using Discoverer Viewer it would be something like fm=xls. Is there similar code for doing this with Plus?
Thanks!

Maybe it's possible, but I doubt it.
Reason is that you're asking the URL to run the report and then once done export out the values and I just don't think the 'i' - or now 'g' versions support this.
This was why the command line interface with the Desktop version was so popular as this is exactly the kind of thing you can do, plus much more.
I checked the documentation for Plus and can find nothing about doing this in the URL. Maybe someone will say otherwise, but with Plus I don't think it's possible.
Russ

Similar Messages

  • Export to excel using service for office 2007

    Hi All,
    I am using a service to download the opport search result data into excel. Inside the code, it gets all the data and opens one window of excel download and closes automatically after few second. And finally does not download anything.
    It is working for office 2003, not for office 2007.I am following piece of code.Please help me how to achieve the same.
    DATA: l_xstring TYPE xstring,
          app_type type string,
          app_type_c(50) type c.
    app_type = 'APPLICATION/MSEXCEL; charset=utf-16le'.
          app_type_c = app_type.
          CALL FUNCTION 'SCMS_STRING_TO_XSTRING'
            EXPORTING
              text     = output      "my data to be exported into excel
              mimetype = app_type_c
            IMPORTING
              buffer   = l_xstring.
          CONCATENATE  cl_abap_char_utilities=>byte_order_mark_little
                       l_xstring
                       INTO l_xstring IN BYTE MODE.
    server->response->set_header_field( name =  'content-type'
                                        value = app_type ).
    server->response->delete_header_field( name = if_http_header_fields=>cache_control ).
    server->response->delete_header_field( name = if_http_header_fields=>expires ).
    server->response->delete_header_field( name = if_http_header_fields=>pragma ).
    server->response->set_header_field( name = 'Content-Disposition'
                                        value =  'attachment;filename=Opportunity_Result.xls'  ).
    CLEAR lv_length.
    lv_length = XSTRLEN(  l_xstring ).
    server->response->set_data( data =  l_xstring
                                 length = lv_length ).

    Maybe it's possible, but I doubt it.
    Reason is that you're asking the URL to run the report and then once done export out the values and I just don't think the 'i' - or now 'g' versions support this.
    This was why the command line interface with the Desktop version was so popular as this is exactly the kind of thing you can do, plus much more.
    I checked the documentation for Plus and can find nothing about doing this in the URL. Maybe someone will say otherwise, but with Plus I don't think it's possible.
    Russ

  • Reports output delayed when exported to Excel using OLE2

    Hi All,
    Platform - Oracle Application Server 10g Release 2 10.1.2.3 on Windows 32 bit.
    The report output is getting generated in a minute when exported to PDF i.e destype=cache & desformat=pdf. When we generate the output to excel is considerably delayed. It is taking time and internal server error is occuring.
    1) Report developed with simple query
    2) Used RPT2XLS procedure which uses OLE2 builtin to export report output into excel.
    3) Called RPT2XLS.run procedure in After-Report trigger of the report.
    4) We have relased all memory objects in the RPT2XLS package after exporting data and there is no EXCEL.exe running once the file is generated.
    System parameters used in the URL.
    . destype=file
    desformat=pdf
    CONTAINSOLE=yes (Required for exporting OLE2 objects into Excel in report)
    desname=path & name of the file.
    I have gone through the tuning documents for reports server and increased minengine, maxengine and initengine parameters of the reports engine and also changed maxconnect and IdleTimeout parameters in reports server configuration file.
    What might be the reason for delaying in the output of the reports when exported to Excel. Can the guys with special knowledge on this area help us in getting out of this issue.
    Thanks in advance.

    hey all,
    Thanks everyone for the reply.
    I am using the foloowing field cat:
    l_col_pos = l_col_pos + 1.
        wa_fieldcat-col_pos = l_col_pos.
        wa_fieldcat-outputlen = 32.            
         wa_fieldcat-fieldname = 'SOLLWERT'.
         wa_fieldcat-inttype   = 'P'.             
    *    wa_fieldcat-tabname = 'i_final'.      
        wa_fieldcat-seltext_l = text-t11.         "Target Value
        APPEND wa_fieldcat TO i_fieldcat.
        CLEAR wa_fieldcat.
    I have use this also in the field cat but stil i get space in the excel header.
    wa_fieldcat-REF_FIELDNAME = 'SOLLWERT'.
    *    wa_fieldcat-REF_TABNAME =  'QAMV'.
    Also the space comes with the descrip[tion in the cell of excel.
    its like [space Target Value] and i dont need this Space.
    I have also used  wa_layout-colwidth_optimize = 'X'. but it doesnt wrk.
    Please suggest

  • Formating URL for Discoverer plus returns an error

    Hello I have been playing around with formatting the URL. In Viewer this is working great with have created one click extracts to excel. However when I try to just create a link to discoverer plus to startup the connections page also pops up. We would like just the discoverer plus app to popup not the connections page. This is with 9.0.4 version. I have tried adding the following
    plus_popup=Fales&framedisplaystyle=embedded
    option on the end but when I do although the connections page no longer shows up I get an error on startup. The error states there is a runtime error has occured. Line 0 Error:'Window.opener.connListPage' is null or not an object' The msgbox asked if I want to debug or not. If I choose no then plus opens fine. My string looks like below. Does anyone know what I am missing?
    http://domainname:7778/discoverer/plus?cn=cf_a110&nlsl=en-us&release=true&_plus=true&plusp_FrameDisplayStyle=embedded

    I doesn't happen on mine, but I'm now on SP3. It might help if you upgrade - even if you don't want to go to SP3 yet, your OWA version appears not to be at rollup 2 level. I only mention this because if it is a problem specific to version 14.2.247.5 (which
    could easily be the case, because MS change the OWA scripts with surprising frequency) , it's going to be hard finding people who can reproduce the problem.
    But to answer the question in the last sentence, searching the GAL and searching Contacts is, in a technical sense, very different. The GAL search is done with an LDAP query against Active Directory, whereas Contacts are usually going to be mailbox items,
    plus a few AD contact items.
    OWA For SmartPhone

  • Testing export to excel using Selenium.

    I am trying to test export to excel functionality in selenium. I want to get the Id of the pop-up(save file) dialog. Is there a way to get page source of this pop-up dialog.

    Maybe it's possible, but I doubt it.
    Reason is that you're asking the URL to run the report and then once done export out the values and I just don't think the 'i' - or now 'g' versions support this.
    This was why the command line interface with the Desktop version was so popular as this is exactly the kind of thing you can do, plus much more.
    I checked the documentation for Plus and can find nothing about doing this in the URL. Maybe someone will say otherwise, but with Plus I don't think it's possible.
    Russ

  • Header of ALV with space when exported to excel using Standard ALV

    Hi,
    I am Using Reuse alv grid display    to dispaly my report and it works fine and I am using the standard SAP application tool to export it to excel.
    But for some of the header fields I am getting space in the excel sheet but there is no space while displaying through ALV.
    I am using the following field catalog for the same.
    wa_fieldcat-col_pos = 10.
      wa_fieldcat-fieldname = 'SOLLWERT'.
      wa_fieldcat-seltext_l  = 'text-t10'.      "Target value (* this has no space here)
      wa_fieldcat-outputlen = 32.
    wa_fieldcat-colwidth_optimize = 'X'.
      APPEND wa_fieldcat to it_fieldcat.
    but there are still space for this Colomn when exported to excel if after optimizing the column.
    kindly suggest what field needs to be passed to the field catalogoe to avoid spaces in excel for the header.
    Thanks
    Ritesh

    hey all,
    Thanks everyone for the reply.
    I am using the foloowing field cat:
    l_col_pos = l_col_pos + 1.
        wa_fieldcat-col_pos = l_col_pos.
        wa_fieldcat-outputlen = 32.            
         wa_fieldcat-fieldname = 'SOLLWERT'.
         wa_fieldcat-inttype   = 'P'.             
    *    wa_fieldcat-tabname = 'i_final'.      
        wa_fieldcat-seltext_l = text-t11.         "Target Value
        APPEND wa_fieldcat TO i_fieldcat.
        CLEAR wa_fieldcat.
    I have use this also in the field cat but stil i get space in the excel header.
    wa_fieldcat-REF_FIELDNAME = 'SOLLWERT'.
    *    wa_fieldcat-REF_TABNAME =  'QAMV'.
    Also the space comes with the descrip[tion in the cell of excel.
    its like [space Target Value] and i dont need this Space.
    I have also used  wa_layout-colwidth_optimize = 'X'. but it doesnt wrk.
    Please suggest

  • Export to excel using value set

    Hi all,
    I have an ALV table and in some columns I show the texts defining value_set (set_attribute_value_set). When I export the table to Excel using the standard button in the file I can see the codes, not the defined texts. How can I solve it? I thought about defining additional columns which will contain the texts and will be invisible in the screen and visible in Excel sheet instead of the column with codes, but I would like to know if there is any easier solution.
    Thank you,
    Anna

    Hi
    You can use Filedownload control to download the content you prepare as XML
    reading the context.
    For Ex: if you have product ID, Product Name and price as attributes.
    you can create the XML string as
    <?xml version="1.0" encoding="UTF-8" standalone="no"?>
    <products>
    <product>
       <productID>1234</productID>
       <productName>Sony</productName>
       <price>1234.00</price>
    </product>
    <product>
       <productID>1234</productID>
       <productName>Sony</productName>
       <price>1234.00</price>
    </product>
    </products>
    copy paste this in note pad name the file as products.xls and open it in MSXL.
    similarly you can read the context and form this xstring and just supply to filedownload control.
    Regards
    Abhimanyu L
    Message was edited by:
            Abhimanyu Lagishetti

  • Exporting into Excel Using the Dynpro Binary Cache is not working on NW04s

    Hello,
    I am using excel data export using the
    "Exporting Context Data into Excel Using the Web Dynpro Binary Cache" guide at
    <a href="https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/edc2f3c2-0401-0010-8898-acd5b6a94353">this link</a>.
    The tutorial is working on NW04 but when I use it on NW04s I receive errors for the StringBuffer object:
    java.lang.NoSuchMethodError: java.lang.StringBuffer.append(Ljava/lang/String;)Ljava/lang/AbstractStringBuilder;
    Any ideas?

    Hallo Roy,
    I have created an updated/enhanced version of this tutorial running on NW 7.0. The new solution allows to open the exported Excel File instantly without opening a popup window befor:
    See <a href="https://wiki.sdn.sap.com/wiki/x/0mQ">Exporting Table Data Using On-Demand Streams - SAP NetWeaver 7.0</a>.
    <b>NOTE:</b>
    Use <b>LinkedHashMap</b> instead of <i>HashMap</i>
      private Map getProductColumnInfos() {
        Map columnInfosMap = new LinkedHashMap();
        columnInfosMap.put(IPrivateTableCompBasketView.IProductsElement.QUANTITY, "Quantity");
        columnInfosMap.put(IPrivateTableCompBasketView.IProductsElement.ARTICLE, "Article");
        columnInfosMap.put(IPrivateTableCompBasketView.IProductsElement.COLOR, "Color");
        columnInfosMap.put(IPrivateTableCompBasketView.IProductsElement.PRICE, "Price in EURO");
        columnInfosMap.put(
          IPrivateTableCompBasketView.IProductsElement.TOTAL__PER__ARTICLE,
          "Total Per Article In Euro");
        return columnInfosMap;
    This keeps the order of key-displaytext-pairs passed by the client (table component) to the service (excel export component) stable.
    Regards, Bertram

  • Exception : Export To Excel using POI in ADF

    Hi,
    When i am using POI jars for export to Excel functionality I ma getting the following Exception.
    Actually page contains simple button .When user clicks on the button i am getting the values from the iterator and then exporting those values to the Excel using POI.
    javax.faces.el.EvaluationException: oracle.classloader.util.AnnotatedNoClassDefFoundError:
    Missing class: org.apache.xmlbeans.XmlOptions Dependent class: org.apache.poi.POIXMLDocumentPart
    Loader: current-workspace-app.web.ExportToExcelPOC-ViewController-webapp:0.0.0
    Code-Source: /C:/Documents and Settings/dtamarap/Desktop/export/poi-bin-3.6-20091214/poi-3.6/poi-ooxml-3.6-20091214.jar
    Configuration: <classpath> in C:\Durga\Jdev\jdevstudio10133\jdev\mywork\ExportToExcelPOC\ViewController\public_htmlT
    he missing class is not available from any code-source or loader in the system. at com.sun.faces.el.ValueBindingImpl.getValue(ValueBindingImpl.java:190) at com.sun.faces.el.ValueBindingImpl.getValue(ValueBindingImpl.java:143) at com.sun.faces.application.ApplicationImpl.createComponent(ApplicationImpl.java:406) at javax.faces.webapp.UIComponentTag.createComponent(UIComponentTag.java:1019) at javax.faces.webapp.UIComponentTag.createChild(UIComponentTag.java:1046) at javax.faces.webapp.UIComponentTag.findComponent(UIComponentTag.java:761) at javax.faces.webapp.UIComponentTag.doStartTag(UIComponentTag.java:451) at oracle.adf.view.faces.webapp.UIXComponentTag.doStartTag(UIXComponentTag.java:85) at test.ExportToExcel_jspx._jspService(_ExportToExcel_jspx.java:57) [test/ExportToExcel.jspx] at com.orionserver[Oracle Containers for J2EE 10g (10.1.3.3.0) ].http.OrionHttpJspPage.service(OrionHttpJspPage.java:59) at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:462) at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:594) at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:518) at javax.servlet.http.HttpServlet.service(HttpServlet.java:856) at com.evermind[Oracle Containers for J2EE 10g (10.1.3.3.0) ].server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:713) at com.evermind[Oracle Containers for J2EE 10g (10.1.3.3.0) ].server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:370) at
    .............................

    When you run your application, it is complaining that it cannot find a class. That class is part of Apache XMLBeans (http://xmlbeans.apache.org/). You need to ensure that you get the XMLBeans JAR file and include it in your project, just like you did for the Apache POI JAR file.
    John

  • Export to excel using MDM WebDynPro Configurator

    Hi,
    I am developing an application using MDM WDC and need to display Export to excel button with corresponding functionality.Is there an API available to do the same? Is it possible to get the search results details in the excel sheet while using MDM WDC?
    version used is MDM  7.1 SP06 and NWCE 7.2 .
    Regards,
    Apoorva Dave

    it is standard function of mdm wd component.
    we are in MDM 7.1 SP5, the api only gives you the string of  the selected record in xml format.
    i am using xslt to transform the xml as user are not happy with the standard export.

  • Chinese csv file export to excel using POI

    Dear all,
    I would like to read the csv chinese data to excel using POI in java but the character in excel is corrupted. How can I solve it? Please help me. Thank you!
    Regards,
    kzyo

    Use the correct encoding for the reading and writing streams.

  • Export to excel using deski report

    Hi,
    We are using BOXIR2 SP4 version. We have a deski report that generates excel output file and it was working fine until yesterday. Today that report successfully exported excel output file, but I was not able to open excel file and it gives me below error:
    Excel found unreadable content in 'abc.xls'. Do you want to recover the contents of this workbook? If you trust the source of this workbook, click Yes.
    Now, if I select Yes, then it opens blank sheet.
    I found that today there was a new record in the report for new customer. When I filtered out that customer record it works fine. So I thought may be something wrong with that customer.
    After that I filtered out 10 existing customers and then also I was able to open excel sheet with new customer record as well. So, I tried few other things to resolve the issue, if I reduce the length of Customer_name field from 35 to 30 by using SubStr(), it works fine. If I add a new field Customer ID to the left of Customer_name field, it works fine.
    This is a strange issue. I have suggested our client the above option that have worked. But if client is not OK with it, I will still have to find the root cause and resolve this issue.
    Please advise.
    Thanks,
    Nikhil

    with your product version there are little options you have.
    1. Upgrade to the latest SP and patch on XIR2 (SP6, fp6.4) and re-test
    2. Upgrade to current product release.
    3. figure out what has changed and how in the report and reverse those changes.

  • "Excel found unreadable content in" The Problem is text in a clob exported to excel uses - Left single quotation mark -Right double quotation mark.

    Here are the ASCII char being used.
    145 221 91 10010001 ‘ &#145; &lsquo; Left single quotation mark
    146 222 92 10010010 ’ &#146; &rsquo; Right single quotation mark
    147 223 93 10010011 “ &#147; &ldquo; Left double quotation mark
    148 224 94 10010100 ” &#148; &rdquo; Right double quotation mark
    149 225 95 10010101 • &#149; &bull; Bullet
    150 226 96 10010110 – &#150; &ndash; En dash --
    The default CHAR NOW is a black diamond with ? in middle in stead of 'Right double quoation mark' and others.
    The Text used is copied from documents user's get
    so someone is putting in I think what is called ALT ascii. This data has been used for years
    some updates where put in the system, I don't know details.
    The following error started you click YES and the XLS has alot of data missing not just the CLOB.
    Excel found unreadable content in ‘file-name’.
    Do you want to recover the contents of this workbook?
    If you trust the source of this workbook click yes.
    I can copy the text then load it into the a column in a xls. 
    I am exporting the spreadsheet from TOAD it wasn't updated so
    it has to be with the EXCEL. I tried changing the ENCODING in EXCEL but that
    didn't work.

    I'm not familiar with TOAD, could you please let us know how did you export data from TOAD to Excel?
    Based on your description, it should be an encoding problem, have you tried to change the encoding as 'UTF-8' ?
    Wind Zhang
    TechNet Community Support

  • Export to Excel using a single format file as a template

    Can I use a single PDF file with form fields as a template to export several other similar PDF files (without fields) to excel?
    I scanned in several report files with the same table format but different data values and wanted to export this data into excel.

    Not possible.

  • Export To Excel Using Oracle Portal Reports

    I am exporting reports to Excel (sylk) using oracle 10g portal application. Example of export link is:
    http://pens12345.xxxx.yyyy.zzz:1234/pls/portal/SCHEMAPTL.TEST_GR.SHOW?p_arg_names=ccc&p_arg_values=%25&p_arg_names=yy&p_arg_values=%25&p_arg_names=cd&p_arg_values=%25&p_arg_names=page_cnt&p_arg_values=10&p_arg_names=page_cnt2&p_arg_values=%25&p_arg_names=_show_header&p_arg_values=YES&p_arg_names=_max_rows&p_arg_values=65534&p_arg_names=_portal_max_rows&p_arg_values=65534&p_arg_names=_format_out&p_arg_values=EXCEL This will export the max rows for excel that are in page 10. During the export and in the dialog box that lets you know the file is being downloaded and exported, I am getting a row of symbols that look like boxes (it might be in binary format). My export works fine and I am able to view ALL the data in excel, but I wonder what those little boxes mean. Can anybody tell me what is causing this. It does not give the appearance of a clean export. Thanks in advance.

    First, apply [SP1|https://smpdl.sap-ag.de/~sapidp/012002523100009351512008E/crbasic2008sp1.exe], see if that helps.
    Ludek
    Follow us on Twitter http://twitter.com/SAPCRNetSup

Maybe you are looking for