Html error while downloading table entries to Excel.

Hi,
I am getting an error while downloading table entries from webdynpro to excel. After some entries below error script comes and  this is not comming all the times.
Is this because of large size?Can anyone please suggest me on this?
<u>Here is the dump:</u>
[code]<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>                                   
<head>                                   
     <title>Error Report</title>                              
<style>                                   
td {font-family : Arial, Tahoma, Helvetica, sans-serif; font-size : 14px;}                                   
A:link                                    
A:visited                                    
A:active                                    
</style>                                   
</head>                                   
<body marginwidth="0" marginheight="0" leftmargin="0" topmargin="0" rightmargin="0">                                   
<table width="100%" cellspacing="0" cellpadding="0" border="0" align="left" height="75">                                   
<tr bgcolor="#FFFFFF">     
    <td align="left" colspan="2" height="48"><font face="Arial, Verdana, Helvetica" size="4" color="#666666"><b>  500   Internal Server Error</b></font></td>     
</tr>     
<tr bgcolor="#3F73A3">     
    <td height="23" width="84"><img width=1 height=1 border=0 alt=""></td>     
    <td height="23"><img width=1 height=1 border=0 alt=""></td>     
    <td align="right" height="23"><font face="Arial, Verdana, Helvetica" size="2" color="#FFFFFF"><b>SAP J2EE Engine/6.40 </b></font></td>     
</tr>     
<tr bgcolor="#9DCDFD">     
    <td height="4" colspan="3"><img width=1 height=1 border=0 alt=""></td>     
</tr>     
</table>     
<br><br><br><br><br><br>     
<p><font face="Arial, Verdana, Helvetica" size="3" color="#000000"><b>  Application error occurs during processing the request.</b></font></p>     
<p><font face="Arial, Verdana, Helvetica" size="2" color="#000000"><table><tr><td valign="top"><b> Details:</b></td><td valign="top"><PRE><pre>com.sap.engine.services.servlets_jsp.server.exceptions.WebIllegalStateException: The stream has already been committed.     
     at com.sap.engine.services.servlets_jsp.server.runtime.client.HttpServletResponseFacade.sendError(HttpServletResponseFacade.java:792)
     at com.sap.engine.services.servlets_jsp.server.runtime.client.HttpServletResponseFacade.sendError(HttpServletResponseFacade.java:780)
     at com.sap.engine.services.servlets_jsp.server.runtime.client.HttpServletResponseFacade.sendError(HttpServletResponseFacade.java:768)
     at com.sap.tc.webdynpro.serverimpl.core.url.WebDynproExchangeHandler.responseCachedWebResource(WebDynproExchangeHandler.java:98)
     at com.sap.tc.webdynpro.serverimpl.core.url.WebDynproExchangeHandler.doExchange(WebDynproExchangeHandler.java:189)
     at com.sap.tc.webdynpro.serverimpl.defaultimpl.DispatcherServlet.doExchangeProcessing(DispatcherServlet.java:164)
     at com.sap.tc.webdynpro.serverimpl.defaultimpl.DispatcherServlet.doContent(DispatcherServlet.java:119)
     at com.sap.tc.webdynpro.serverimpl.defaultimpl.DispatcherServlet.doGet(DispatcherServlet.java:48)
     at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
     at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
     at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.runServlet(HttpHandlerImpl.java:391)
     at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.handleRequest(HttpHandlerImpl.java:265)
     at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:345)
     at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:323)
     at com.sap.engine.services.httpserver.server.RequestAnalizer.invokeWebContainer(RequestAnalizer.java:865)
     at com.sap.engine.services.httpserver.server.RequestAnalizer.handle(RequestAnalizer.java:240)
     at com.sap.engine.services.httpserver.server.Client.handle(Client.java:92)
     at com.sap.engine.services.httpserver.server.Processor.request(Processor.java:148)
     at com.sap.engine.core.service630.context.cluster.session.ApplicationSessionMessageListener.process(ApplicationSessionMessageListener.java:37)
     at com.sap.engine.core.cluster.impl6.session.UnorderedChannel$MessageRunner.run(UnorderedChannel.java:71)
     at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37)
     at java.security.AccessController.doPrivileged(Native Method)
     at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:94)
     at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:162)
</pre></PRE></font></td></tr></table></font></p>     
</body>     
</html>[/code]
Thanks,
Sanjeev

Hallo Sanjeev,
How do you exactly "download the table entries from Web Dynpro to Excel?"
I wrote a new <b>Wiki Code Tutorial </b>which demonstrates how to download an Excel file from a Web Dynpro <i>Table </i>UI element <b>on-demand</b>. In this scenario the resource gets re-created on every request. The solution is based on re-initializing the context with a new  0-byte resource object within the calculated context attribute getter method.
See <a href="https://wiki.sdn.sap.com/wiki/display/Snippets/ExportingTableDatainWebDynproJava-SAPNetWeaver04s">Exporting Table Data in Web Dynpro Java - SAP NetWeaver 04s</a>
Regards, Bertram

Similar Messages

  • Error while downloading Report as an Excel Sheet

    Hi All,
    I have a issue regarding enabling download of report as a excel sheet. Here is the summary of the issue I am facing.
    I have enabled report links in the Dashboard and saved the Dashboard. The download link is visible and when I click on the link
    it gives the option of excel and pop up window starts showing that the download has started. But midway it says the application URL is unavailable.
    My query is are there any server settings which we need to enable or add to allow the download of reports are excel sheets.
    The download to excel works fine in Firefox.
    The problem is with MIME type which is .mhtml in IE browser.
    Our Instance is SSO wired.
    If we remove the SSO, download to excel works fine in both IE and Firefox.
    Any inputs on this?
    Regards
    (S.Prashant)
    Edited by: user783550 on Sep 15, 2009 11:11 PM

    this issue is related to the web server hosting sso. i had posted the same question on this forum, hope it will help you as well - Download to excel issue

  • Error while transporting table entries to QA

    Hi All,
    I am working on system 4.6C i have a ztale with 3 key fields.
    I have added entries in table sucessfully.
    While imprting to Quality system.
    key field1   2183
    Key field2  A
    Key field3  CHF
    It returns an return code with message called 'key of table Ztest (6102183      ACHF) only valid up to offset 13. It's better to skip it.
    It has only enter when i enter values in 3 key fields. If i left key field2 as empty for those entries the values are impoerted to quality suceesfully.
    Can anybody please let me know what would be the problem.
    Thanks,

    YOu can try transporting the entries using generic keys.

  • Error while downloading data into excel file.

    Hi,
        I have a requirement to download data available in xstring to excel file.
    I have a RFC which has export parameter 'file_data' of type xstring. When i call RFC
    from web dynpro abap application it gives data out pout in xstring format.
    I am opening excel file using that xstring data as below
    cl_wd_runtime_services=>attach_file_to_response(
    i_filename = 'file.xls'
    i_content = ls_data_source-data_source   ***[xstring data from RFC]
    i_mime_type = 'x-excel/application'
    i_in_new_window = abap_true ).
    But excel file not coming in correct format. its  giving an error while download
    excel file
    Error is
          " the file you are trying to open , 'file[1].xls', is in a different format than
    specified by the file extension. Verify that the file is not corrupted and is from
    a trusted source before opening the file. Do you want to open the file now? "
    If i click on 'YES' button file opening but not in proper excel format. Data is coming
    in tab delimiter format in excel file.
    Please suggest any solution for this problem.
    Thanks,
    Venkat.

    Hi Thomas,
    Following is the logic implemented in RFC which is giving XSTRING as export parameter
    STEP1      create a dynamic internal table
               Create field catalog for the table   using LVC_FIELDCATALOG_MERGE
                   CALL METHOD cl_alv_table_create=>create_dynamic_table
                        EXPORTING
                           it_fieldcatalog = it_fieldcat
                         IMPORTING
                           ep_table        = dyn_table.
                  CREATE  EXCEL SHEET BY SENDING FIELD CATALOG AND DATA TAB
    STEP2 # Convert text table to xstring.
            CALL FUNCTION 'SCMS_TEXT_TO_XSTRING'
              IMPORTING
                buffer   = l_content
              TABLES
                text_tab = lt_data_tab
              EXCEPTIONS
                failed   = 1
                OTHERS   = 2.
    STEP3  *# Psss Data to Netweaver
              PERFORM pass_data_to_nw USING is_import
                                      CHANGING es_attachment_metadata.

  • Error while creating table "EDISEGMENT' entry 'BIC/CIBA0PLANT_ATTR

    While loading master data for 0PLANT, its giving me following error.
    "error while creating table "EDISEGMENT' entry 'BIC/CIBA0PLANT_ATTR"
    Please help me out.
    Thanks

    steve,
    Can you give the solution you used to correct this problem?
    This error occurred in BW during import.
    Raj.

  • Error while creating table 'EDISEGMENT' entry for Transfer Structures

    Hi Guyz...
    I've been facing a few issues regarding activation of transfer structures.
    I'll explain the whole process...so it makes sense to you guys.
    I've initially activated the Transfer Structures in BI Content for Master Data. Later on we faced some issues in the DEV server. So we had to transport all the objects and store them locally on a temporary location. When the BI DEV sever, was up and running, we transported all the objects back to the server.
    Now while moving the objects back to the sever. We had an errors in the Master Data Request (Log- Method Execution). After going into the log...this is what I found.
    Error while creating table 'EDISEGMENT' entry '/BIC/CIIA0DIVISION_TEXT'
    Error while creating table 'EDISEGMENT' entry '/BIC/CIIA0DISTR_CHAN_TEXT'
    Error while creating table 'EDISEGMENT' entry '/BIC/CIIA0MATL_TYPE_TEXT'
    Error while creating table 'EDISEGMENT' entry '/BIC/CIIA0SALESORG_TEXT'
    Error while creating table 'EDISEGMENT' entry '/BIC/CIIA0SALES_GRP_TEXT'
    I hope, I am clear here.
    Any suggestions, guys...
    Thanks,
    Regards,
    G

    Hi,
    Please check this link:
    Error while creating table EDISEGMENT entry
    Hope it helps.
    Thanks and Regards,
    MuraliManohar.

  • Error while creating table 'EDISEGMENT' entry '/BIC/CIBD0BILBLK_DL_TEXT'

    Hi All,
    I am getting a error"Error while creating table 'EDISEGMENT' entry", when running the program RS_Transtru ActivateAll to activate the transfer rules as we had reconnected our source system,
    we are on 2004s server and on SP level 17, I understand that this issue is created as the transfer rules are using IDOC as transfer method, and I Cannot manually change the transfer method to PSA and activate  as the number of transfer rules with this  issue are huge in number.
    Please suggest the suitable solution
    Thank you in advance
    krishna
    Edited by: krishna dvs on Feb 17, 2009 1:24 PM

    Hi,
    Please check the note 493422. The reports listed in the note
    should correct the inconsistencies and afterwards you can re-import the
    request and it should then work.
    Regards,
    Srikanth

  • Error while creating table 'EDISEGMENT' entry '/BIC/CIWA0TRZONE_TEXT'

    Hi experts,
    when I import my transport request to QA, I am getting this error
    "Error while creating table 'EDISEGMENT' entry '/BIC/CIWA0TRZONE_TEXT'"
    the performance assistance reads as below..
    Message no. EA201
    Diagnosis
    An attempt was made to create the entry '/BIC/CIWA0TRZONE_TEXT' in table 'EDISEGMENT'. The attempt failed.
    System response
    The operation was canceled.
    Procedure
    Please check whether the relevant entry already exists
    I have an entry for '/BIC/CIWA0TRZONE_TEXT'  in the table 'EDISEGMENT' do need to delete it before importing the transport. How to delete this entry, I donot see the options in SE11 /SE16..
    thanks in advance
    D Bret

    Hi,
    can you please be more precise with your enquiry?
    As far as I read the note, it is quite explanatory....
    What is your source system release?
    You'll need to implement this prog in your source system and execute it there.
    If everything works and is fine, import to program in your QA/PROD source systems and rexecute it as specified in the note...
    does it answer your question
    Olivier.

  • Error while creating table 'EDISEGMENT' entry '/BIC/CIBB0DISTR_CHAN_TEXT'

    When I am activating the transfer rules of 0divison_text giving me the error
    Error while creating table 'EDISEGMENT' entry '/BIC/CIBB0DISTR_CHAN_TEXT'
    Message no. EA201
    Diagnosis
    An attempt was made to create the entry '/BIC/CIBB0DISTR_CHAN_TEXT' in table 'EDISEGMENT'. The attempt failed.
    System Response
    The operation was canceled.
    Procedure
    Please check whether the relevant entry already exists.
    I have checked the note 493422 but I did not understand it can any one help me in this
    I am  working on 7.o with  SP SAPKW70010

    Hi Priya,
    Delete entries for the data source in ROOSGEN,  EDISEGMENT and EDSAPPL tables, both on ECC and BI sides.
    Try activating the infosource again.  This should solve your problem.
    Sasi

  • Error while creating table 'EDISEGMENT' entry '/BIC/CIAC0CLASS_NUM_TEXT'

    Hello,
    I get the error message:
    "Error while creating table 'EDISEGMENT' entry '/BIC/CIAC0CLASS_NUM_TEXT'"
    when trying to activate my inactive transfer structure for 0CLASS_NUM_TEXT..
    Many other transfer structures work fine, but this one is really problematic.
    Has anyone seen it before? What do i do to solve it?
    Regards,
    F C

    Hi,
    Please check the note 493422. The reports listed in the note
    should correct the inconsistencies and afterwards you can re-import the
    request and it should then work.
    Regards,
    Srikanth

  • Error while downloading DNL_CUST_BASIS3

    Hi,
    We are encountering the error while downloading Customizing Object
    DNL_CUST_BASIS3 from R/3 system to SRM system. Error description reads"
    Error in RSQL module of database interface. &INCLU DE
    &P9".DNL_CUST_BASIS3 synchronizes units of measure, dimensions, and
    currencies.
    can any one help me to solve the issue.
    Thanks,
    Sandeep

    Hi,
    See if the foll notes help:
    Note 1038966 - Entries missing in TCURX after load of DNL_CUST_BASIS3
    Note 665077 - Downloading units of measurements (ISO codes etc.)
    Note 904229 - Fields in Customizing tables are filled incorrectly
    BR,
    Disha.
    Pls reward points for useful answers.

  • Excel service and OWA - getting ERROR while trying to open/edit Excel documents

    Hi All,
    We have configured SharePoint 2013 with Excel Service and OWA (Office Web Apps).
    After configuring, we are able to view/edit Word or PowerPoint documents from the browser (as OWA is configured). But we are getting errors while trying to open/edit Excel documents.
    We are not able to view/edit the excel workbook from the browser (through OWA).
    To open the excel in the browser, decision has to be taken at the farm level on what to be used – Excel Service or OWA Server? Is it possible to do setting at site collection level?
    Error details are given below:
    Event code: 3005
    Event message: An unhandled exception has occurred.
    Event time: 3/25/2013 1:29:08 PM
    Event time (UTC): 3/25/2013 7:59:08 AM
    Event ID: fc2e0530f493493896e6c8b6297a0423
    Event sequence: 10
    Event occurrence: 3
    Event detail code: 0
    Application information:
        Application domain: /LM/W3SVC/2/ROOT/x-1-130086717598089315
        Trust level: Full
        Application Virtual Path: /x
        Application Path: C:\Program Files\Microsoft Office Web Apps\ExcelServicesWfe\
        Machine name: VHYDMANTHSTP-02
    Process information:
        Process ID: 1252
        Process name: w3wp.exe
        Account name: NT AUTHORITY\NETWORK SERVICE
    Exception information:
        Exception type: ArgumentException
        Exception message: An entry with the same key already exists.
       at System.Collections.Generic.TreeSet`1.AddIfNotPresent(T item)
       at System.Collections.Generic.SortedDictionary`2..ctor(IDictionary`2 dictionary, IComparer`1 comparer)
       at Microsoft.Office.Excel.Server.ServiceHost.ServiceHost.GetInstalledUICultures()
       at Microsoft.Office.Excel.Server.ExcelServerRegionalSettings.IsUICultureSupported(String cultureTag, CultureInfo& cultureInfo)
       at Microsoft.Office.Excel.Server.ExcelServerRegionalSettings.SafeSetCurrentUICulture(String cultureTag, Boolean useOleo, Boolean allowCustomFallback)
       at Microsoft.Office.Excel.Server.ExcelServerRegionalSettings.SafeSetCurrentUICultureFromFrontEnd(String uiCultureTag, Boolean allowFallback)
       at Microsoft.Office.Excel.Server.ExcelServerRegionalSettings.SafeSetCurrentCulturesFromFrontEnd(String uiCultureTag, String dataCultureTag)
       at Microsoft.Office.Excel.Server.ServiceHost.ServiceHost.Microsoft.Office.Excel.Server.Host.IEwaHost.SetCurrentCulturesFromContext(HttpContext context)
       at Microsoft.Office.Excel.Server.ServiceHost.ServiceHost.Microsoft.Office.Excel.Server.Host.IEwaHost.PreProcessRequest(HttpContext context)
       at Microsoft.Office.Excel.WebUI.XlPreview.OnLoad(EventArgs e)
       at System.Web.UI.Control.LoadRecursive()
       at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)
    Request information:
        Request URL:
    http://mysrevr/x/_layouts/xlpreview.aspx?ui=en-US&rs=en-US&WOPISrc=http://myservernames1/_vti_bin/wopi.ashx/files/f36d669ceb814d67bdad0e1e1f98e466&wdSmallView=1
        Request path: /x/_layouts/xlpreview.aspx
        User host address: 10.81.138.92
        User: 
        Is authenticated: False
        Authentication Type: 
        Thread account name: NT AUTHORITY\NETWORK SERVICE
    Thread information:
        Thread ID: 13
        Thread account name: NT AUTHORITY\NETWORK SERVICE
        Is impersonating: False
        Stack trace:    at System.Collections.Generic.TreeSet`1.AddIfNotPresent(T item)
       at System.Collections.Generic.SortedDictionary`2..ctor(IDictionary`2 dictionary, IComparer`1 comparer)
       at Microsoft.Office.Excel.Server.ServiceHost.ServiceHost.GetInstalledUICultures()
       at Microsoft.Office.Excel.Server.ExcelServerRegionalSettings.IsUICultureSupported(String cultureTag, CultureInfo& cultureInfo)
       at Microsoft.Office.Excel.Server.ExcelServerRegionalSettings.SafeSetCurrentUICulture(String cultureTag, Boolean useOleo, Boolean allowCustomFallback)
       at Microsoft.Office.Excel.Server.ExcelServerRegionalSettings.SafeSetCurrentUICultureFromFrontEnd(String uiCultureTag, Boolean allowFallback)
       at Microsoft.Office.Excel.Server.ExcelServerRegionalSettings.SafeSetCurrentCulturesFromFrontEnd(String uiCultureTag, String dataCultureTag)
       at Microsoft.Office.Excel.Server.ServiceHost.ServiceHost.Microsoft.Office.Excel.Server.Host.IEwaHost.SetCurrentCulturesFromContext(HttpContext context)
       at Microsoft.Office.Excel.Server.ServiceHost.ServiceHost.Microsoft.Office.Excel.Server.Host.IEwaHost.PreProcessRequest(HttpContext context)
       at Microsoft.Office.Excel.WebUI.XlPreview.OnLoad(EventArgs e)
       at System.Web.UI.Control.LoadRecursive()
       at System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint)

    I have the same issue while opening the file , i have checked every thing twice. but unable to fix this thing . can any one help.
    One more thing which is i am wondering none of the MS representative replied on this post which is originally posted on March 27-2013.
    is microsoft alive??
    Imran Bashir Network Administrator MCP, JNCIA-EX,ER,JNIOUS +92-333-4330176

  • Error: "Error while creating table 'EDISEGMENT'"

    Hi,
    When I activate a Transfer Rule return the following error:
    Error while creating table 'EDISEGMENT'
    Someone has passed the problem?

    Bom dia Marques,
    Na SAP Note 339957 tem o síntoma descrito por você.
    Solução:
    In the system where the error occurs (usually the OLTP), create and run the report RS_CHECK_TS_EDISEGMENT (with SENDING and RECEIVING LOGSYS as an entry).
    Entretanto esta nota foi substituida pela SAP Note 493422, com bem mais detalhes e indica um programa Z
    Atenciosamente,
    Fernando Da Rós
    PS: Fórum em português.

  • Error while download oracle 10g release2 for linux x-86

    Hi,
    I got errors while downloading oracle 10g r2 for linux x-86 from
    http://www.oracle.com/technology/software/products/database/index.html
    i got htis error:
    source file not found
    contact administrator.
    how do i download?

    Works for me in western Canada right now.
    You might want to try again, and if it still happens try clearing your browser cache and cookies.

  • Error while download HR integrator having parameter

    We created HR integrator and then selected Standalone_Integrator_Queries for assigning parameters which are following.
    Example:
    Integrator Name - CUSTOM TEST People3 INTG
    SQL Where Clause – WHERE EFFECTIVE_DATE = '31-DEC-4712' AND EMPLOYEE_NUMBER = $PARAM$.EMPLOYEE_NUMBER
    1st Parameter Name – EMPLOYEE_NUMBER
    1st Parameter Type – Varchar2
    1st Parameter Prompt– EMPLOYEE_NUMBER
    Below error while download file for particular employee.
    SQL error: ORA-00904: "EFFECTIVE_DATE": invalid identifier occurred processing stored SQL for Content 800:GENERAL_362_CNT.
    Download parameters are not complete
    Secondly, now if remove effective parameter coditions and reload the same then layout taking twice input for the employee field, is there any table which is configured parameter with integrator
    thanks

    Dear
    I have incorporated both option as you suggested but still there is not getting all employee when pass blank employee number at the time of Parameter.
    if this is working try to evolve it into something like:
    SQL Where Clause – WHERE (EMPLOYEE_NUMBER = $PARAM$.MY_EMPLOYEE_NUMBER or $PARAM$.MY_EMPLOYEE_NUMBER is null)
    SQL Where Clause – WHERE (EMPLOYEE_NUMBER = nvl($PARAM$.MY_EMPLOYEE_NUMBER, EMPLOYEE_NUMBER)
    Secondly user ("936671") suggested to use where_clause in such manner but this where system doesn't accespt due to (:PER) SHORT NAME.
    should i apply patch for this or need to change some profiles setting.
    thanks

Maybe you are looking for