Universal export to Excel process

Hello,
I must write pl/sql procedure that exports data to Excel file in XML format. This procedure should be available for all pages in quite big application, so I don’t want to write it by scratch for each report separately. I need more object-oriented way.
Do you know any way to read results of any APEX report region and write it/export to Excel using pl/sql process?
I know how to write XML Excel files and I know I can find region definitions with reports’ queries in APEX_APPLICATION_PAGE_REGIONS view, but I have no idea how to deal with it, especially with pl/sql reports returning string query. How to put this data into cursor, how to declare cursor’s type automatically etc. Maybe I can use some APEX function?
Regards,
Przemek Staniszewski

Przemek:
If it were possible to identify a report region source as being the type 'function returning query' I think it would be a simple matter to execute the specified pl/sql function ( using execute immediate) and obtain the query for the report.
Given the query I think, Denes' code will do the rest.
Varad

Similar Messages

  • Service Process Monitor  export to excel is not working

    Hi,
    The  Tx. CRM_SRV_REPORT ( Service -> Service Process Monitor) is not working.
    When you try to export to Excel (press button Excel (CtrlshiftF7) is not working. However, this button in other transaction is working, for example Activity Monitor.
    Any idea?
    Lyda

    Report to SAP. They sent a solution... it's an error

  • Export Universal Worklist to Excel

    Is it possible to export the contents of the Universal Worklist to Excel or some other reporting mechanism?

    Dear Peter,
    Im not sure if theres a quicker method than what Ill describe below, but you can have a look:
    There is an excellent UWL API provided which you can use.
    Get the worklist of a user, iterate through it and retrieve stuff like the subject, message, priority etc.
    http://help.sap.com/javadocs/NW04S/SPS09/uw/index.html
    Writing to Excel is something else you will need to read about.
    http://www.javaworld.com/javaworld/jw-03-2004/jw-0322-poi.html
    Hope this helped.
    Regards,
    Prem

  • Export to excel and others inactive in ALV GRID

    Hi,
    I am creating a report using the 'REUSE_ALV_GRID_DISPLAY' FM and the export to excel fucntionality is inactive. There is no spreadsheet push button on the application toolbar and the List->Export sub menu items 'Word processing' 'spreadsheet' and 'local file ' are all inactive. I have tried to run the code on a different system and the export to excel functionality works there. I am considering creating a new GUI staus using the standard status contained in the function group of 'REUSE_ALV_GRID_DISPLAY' but will like to know if this issues can be remedied e.g is it probably a basis issue or a configuration issue e.t.c.
    Thanks
    Andy.

    Hi Max,
    Checked the PF_STATUS_SET routine and there was code that deactivated  all gui download function codes of the standard gui status if an authorisation check failed ( auth obj. S_GUI) but the function code for excel export is &XXL not &VEXCEL.
    Thanks for the prompt reply max, much appreciated
    regards
    Andy.

  • Export to excel with javascript/vbscript or with plsql(html table)

    i have searched for a way to export data from OracleXe to excel without losing formatting .
    So far i have found 2 possible relatively easy ways that i am still researching
    (i do not include the ask tom sylk format way of exporting )
    1 to export the query to a html table, while using stylesheets for formatting
    (using microsoft specific styles)
    2. use of javascript/vbscript to fill an array and write this array to excel with use
    of visual basic for applications in excel.This also provides charting capabilities.
    I am still researching this two ways, and have
    encountered a few obstacles (help would be appreciated)
    1 the first way:
    a. create a button " export to excel"
    b. create the following pl/sql procedure:
    owa_util.mime_header('application/vnd.ms-excel');
    owa_util.http_header_close;
      HTP.PRINT('<html>');
      HTP.PRINT('<head>');
      HTP.PRINT('<meta http-equiv="Content-Type" content="text/html">');
      HTP.PRINT('<title>Title of the HTML File</title>');
      HTP.PRINT('</head>');
      HTP.PRINT('<body TEXT="#000000" BGCOLOR="#FFFFFF">');
      HTP.PRINT('<h1>Heading in the HTML File</h1>');
      HTP.PRINT('<p>Some text in the HTML file.');
      HTP.PRINT('</body>');
      HTP.PRINT('</html>');
    htmldb_application.g_page_text_generated := true;
    htmldb_application.g_unrecoverable_error := true;
    c: run the procedure conditionally based on the button  "export to excel"
    the problem with this way is that using htmldb_application.g_unrecoverable_error := true; is not the ideal way, because it
    stops further processing, but if i leave it out, the export doesn't happen.
    To export to excel while retaining data formatting  you have to use microsoft excel
    specific styles(Seedocumentation on the microsoft site)
    2.The second way:
    a create a pl/sql procedure or sql query.
    b use this query to fill a vbscript/javascript array with values
    c write these values to excel with use of vba in excel :
    the obstacle i encountered here was that i dont know how to export the result of a
    query to a visual basic script or javascript array.

    Using approach 1) works fine for me.
    the problem with this way is that using htmldb_application.g_unrecoverable_error := true;
    is not the ideal way, because it
    stops further processing, but if i leave it out, the export doesn't happen. Why is this a problem?
    I created the button to export the excel file on page 1 and created your pl/sql procedure on page 2 using an onload process.
    Works fine.
    Other approaches for exporting to excel are:
    http://www.oracle.com/technology/pub/articles/saternos_broadcast.html
    http://htmldb.oracle.com/pls/otn/f?p=18326:54:5685133631021176591::::P54_ID:1962
    ~Dietmar.

  • Export to excel loses formatting

    I have a region whose source is a SQL query.
    My SQL query contains function calls that return a value.
    source of the region:
    select nvl(GETSRHR(:P253_STARTDATE,:P253_ENDDATE),0) as "REQUESTS",
    nvl(GETTBHR(:P253_STARTDATE,:P253_ENDDATE),0) as "BENEFITS",
    nvl(GETTOTALHRS(:P253_STARTDATE,:P253_ENDDATE),0) as "TOTALS"
    from dual
    Report template chosen is: default vertical report look 1 (include null columns)
    when I run the page the report looks as follows:
    REQUESTS 20
    BENEFITS 120
    TOTALS 140
    When I export this it looks like:
    REQUESTS     BENEFITS     TOTALS
    20          120          140
    Why is the formatting lost when I export to Excel? am I missing a step somewhere?
    thanks for the feedback

    The CSV/Excel export always exports your data horizontally. Similar to what you would get if you were running this in SQL Plus. The vertical look report template only applies to the report when shown in your web page. The template selection has now affect on the structure of the CSV export. If you need to export your data in a different way, one way to implement this would be to write a PL/SQL region or process that stores the data in that format first, e.g. in another table or using HTML DB collections and then write a report that is based on that temporary storage.
    Regards,
    Marc

  • Export to Excel from PL/SQL Procedure

    Hello,
    I am creating a report using PL/SQL and html code. Once the report is display, I click on "Export to Excel" button. it should open the new window with Excel. The window opens in Excel, but no data. I have following code
    as the first statement in the procedure.
    OWA_UTIL.MIME_HEADER ('application/vnd.ms-excel', FALSE);
    and this is the script
    <script language="JavaScript">
    var param_list
    l_param_list := l_param_list || '&p_app_main_id=' || p_app_main_id;
         l_param_list := l_param_list || '&p_from_date=' || p_from_date ;
         l_param_list := l_param_list || '&p_to_date=' || p_to_date ;
    htp.prn('
    param_list = ''');
    htp.prn( l_param_list);
    htp.prn('''
    function NewWindow(mypage,myname,w,h,scroll){
    var win = null;
    LeftPosition = (screen.width) ? (screen.width-w)/2 : 0;
    TopPosition = (screen.height) ? (screen.height-h)/2 : 0;
    settings = ''height=''+h+'',width=''+w+'',top=''+TopPosition+'',left=''+LeftPosition+'',scrollbars=''+scroll+'',resizable''
    win = window.open(mypage,myname,settings)
    win.focus();
    function ExportToExcel() {
    var wndname = ''ExpCodeMoveRep'';
    var wndw = screen.width-10;
    var wndh = screen.height-10;
    var wattr = ''scrollbars=yes,toolbar=yes,resizable=yes,menubar=yes'';
    var wndurl = ''pm_codemove_report?p_output=E'';
    wndurl = wndurl + param_list;
         NewWindow(wndurl,wndname,wndw,wndh,wattr);
    </script>
    My submit is
    htp.prn('
    <p align="center">
    <input type="button" class="printbutton" value="Close" class="button" OnClick="window.close();"> 
    <input type="button" class="printbutton" value="Export To Excel" class="button" OnClick="ExportToExcel();">');
    Can anyone tell me what is wrong.
    I have the same code in another schema and it is working fine. Both schema are on the same server. Do they have any set up on appserver in DAD file to be able to see the data in Excel?
    Thanks
    Yagna

    Thank you for your answer dccase!
    I decided to go with on demand process. I have trouble with calling procedure from (button URL - javascript:popupURL('#OWNER#.exportXML')) pop window which cause "Forbidden, The requested operation is not allowed" error. I read that this is because I'm using XE edition and there is no HTMLDB_PUBLIC_USER role in XE.
    Now, I use on demand process and button URL link:
    javascript:popupURL('f?p=&APP_ID.:0:&APP_SESSION.:APPLICATION_PROCESS=PLSQL_Export_XML:NO::')
    It is working. Now I have to find solution to automatically close popup window :-)
    Thanks!
    Marko

  • Export to Excel in Web Analysis

    We are in the process of upgrading to Web Analysis (and the rest of the products for that matter) 11G and we're having an issue when someone tries to export to excel. It pops up and wants the user to drill down to excel.exe so it can launch excel and open the report.
    Has anyone seen this before? If so what is the resolution?
    I know there was a config fil in Analyzer 7 that we had to update a excelpath variable, but I don't see anything similar in 11g and I can't find a good admin guide for Web Analytics 11g.

    With System 9 and SmartView you also have the option to Export to Excel in
    Query Read - preserves its connectivity
    Fully Formatted - preserves its formatting.
    Brian Chow

  • Export To Excel In Visual Composer 7.0

    Hi ,
    i need Exprot Excel Functionality in Visual  Composer7.0  EP7.0 & SP17 . we are getting the data from BI 7 Version Queries in Portal .
    As We Know there is No Direct Open of Export to Excel Functionality
    After Folliowing the Great Link
    Using Web Design API .with Hyperlink  .
    When im trying click on Export To Excel Button It throws Error .
    Im Using Compiler Flash Flex2 Compiler.
    When i am using Flash Compiler it Throws An Error in VC .
    please give me valuehble inputs
    500 Internal Server Error
      BEx Web Application
    Failed to process request; contact your system administrator
    Information for Administrator
    To avoid this exception see the steps below. To help SAP better investigate this issue, you will need to provide the diagnostic information from these steps.
    1. Most likely, the issue you are experiencing has already been corrected. Please make sure that the most recent patch level is deployed on your system according to notes 1033246 and 1011241. Starting with Support Package Stack 16 patch level 30, BI Java is delivered according to the synchronized delivery process described in the note 1033246.
    2. Please ensure that NetWeaver Business Intelligence Diagnostics & Support Desktop Tool  does not report any issues on your server according to note 937697. You can start it by clicking here (administrator permissions are required).
    3. When opening any customer message on this issue, please attach:
    Support Desktop Tool support info ZIP  file according to note 937697,
    Required information for reproduction  according to note 948490.
    Error Summary
    Exception occured while processing the current request; this exception cannot be handled by the application or framework
    If the information on this page does not help you locate and correct the cause of the problem, contact your system administrator
    To facilitate analysis of the problem, keep a copy of this error page Hint: Most Web browsers allow you to select all content, and copy and paste it into an empty document (such as in an email or simple text file)
    Root Cause
    The initial exception that caused the request to fail was:
    Parameter object with the name "BI_COMMAND_TYPE" and the index "0" still does not exist in the parameter list:
    <parameterList>
      <param name=" BI_COMMAND_TYPE" value="EXPORT"/>
      <param name=" NULL" value=""/>
      <param name=" SHOW_EXPORT_DIALOG" value="X"/>
    </parameterList>
    com.sap.ip.bi.base.exception.BIBaseRuntimeException: Parameter object with the name "BI_COMMAND_TYPE" and the index "0" still does not exist in the parameter list:
    <parameterList>
      <param name=" BI_COMMAND_TYPE" value="EXPORT"/>
      <param name=" NULL" value=""/>
      <param name=" SHOW_EXPORT_DIALOG" value="X"/>
    </parameterList>
    Log ID 001517B2186400780000039E00003F0400047C7C752D75EE
    Details: Full Exception Chain
    System Environment
    Server
    BI Java Release: 7 - Patch level: 0000000016 - Description: BI Web Applications Java - Additional info:  - Production mode: true
    BI ABAP Release: 700 - Patch level: 0019 - Description: SAP NetWeaver BI 7.0 (PB1CLNT451) - Additional info:  - Production mode: true
    Java Virtual Machine Java HotSpot(TM) 64-Bit Server VM - Sun Microsystems Inc. - 1.4.2_21-b03
    Operating System SunOS - sparcv9 - 5.10
    Context
    ACCESSIBLE false
    CACHE true
    CONTENT_PADDING true
    COUNTRY US
    DEBUG false
    DEBUG_LEVEL 0
    DEBUG_MESSAGES false
    DEBUG_TEXTS false
    DEFAULT_FONT 
    DISPLAY_STACK_TRACE_IN_ERROR_PAGES true
    LANGUAGE EN
    Master System Alias PB1CLNT451
    NAVIGATION_NODE_ACTIVE_IVIEW pcd:portal_content/com.sap.pct/platform_add_ons/com.sap.ip.bi/iViews/com.sap.ip.bi.bex
    PROFILING false
    Query String (Initial Browser Request) BI_COMMAND_1-BI_COMMAND_TYPE=EXPORT&BI_COMMAND_1-NULL=&BI_COMMAND_1-SHOW_EXPORT_DIALOG=X&BI_COMMAND_1-EXPORT_FORMAT=PDF&QUERY=
    RTL false
    Request URL http://d03pp1.saildsp.co.in:50300
    SAP_BW_IVIEW_ID pcd:portal_content/com.sap.pct/platform_add_ons/com.sap.ip.bi/iViews/com.sap.ip.bi.bex
    SERVER_URL_PREFIX http://d03PP1.saildsp.co.in:50300
    THEME_NAME sap_tradeshow
    TRACE false
    TRAY_TYPE PLAIN
    Time Wed Jan 06 16:01:30 IST 2010
    USE_HTTPS_FOR_ADS false
    USE_SAP_EXPORT_LIB false
    User CEP_SIVA (USER.R3_DATASOURCE.CEP_SIVA)
    VALIDATION_DATA false
    Deployed SCAs
    SCA Version SP Patch Compiled Deployed
    ADSSAP 7.00 17 0 2008-09-17 22:26:43 IST 2009-08-29 10:51:50 IST
    BASETABLES 7.00 17 0 2008-09-17 22:41:38 IST 2009-08-29 10:37:16 IST
    BI-BASE-S 7.00 17 20 2008-12-04 07:47:32 IST 2009-08-29 11:55:31 IST
    BI-IBC 7.00 17 0 2008-09-18 06:07:59 IST 2009-08-29 11:45:17 IST
    BI-REPPLAN 7.00 17 0 2008-09-18 07:38:15 IST 2009-08-29 11:56:13 IST
    BI-WDALV 7.00 17 0 2008-09-18 07:38:21 IST 2009-08-29 11:56:24 IST
    BIWEBAPP 7.00 17 20 2008-12-04 07:48:29 IST 2009-08-29 11:47:27 IST
    BI_MMR 7.00 17 0 2008-09-17 22:42:29 IST 2009-08-29 10:52:19 IST
    BI_UDI 7.00 17 0 2008-09-17 22:42:49 IST 2009-08-29 10:53:28 IST
    CAF 7.00 17 0 2008-09-18 08:09:40 IST 2009-08-29 11:30:07 IST
    CAF-KM 7.00 17 0 2008-09-18 07:42:37 IST 2009-08-29 12:06:47 IST
    CAF-UM 7.00 17 0 2008-09-18 08:09:46 IST 2009-08-29 10:47:54 IST
    CORE-TOOLS 7.00 17 0 2008-09-17 22:45:03 IST 2009-08-29 10:37:32 IST
    EP-PSERV 7.00 17 0 2008-09-18 06:14:35 IST 2009-08-29 11:57:13 IST
    EP-WDC 7.00 17 0 2008-09-18 01:31:00 IST 2009-08-29 11:59:04 IST
    EPBC 7.00 17 0 2008-09-18 06:13:01 IST 2009-08-29 11:09:46 IST
    EPBC2 7.00 17 0 2008-09-18 06:13:12 IST 2009-08-29 11:49:55 IST
    JLOGVIEW 7.00 17 0 2008-09-17 21:40:00 IST 2009-08-29 10:37:52 IST
    JSPM 7.00 17 1 2008-12-10 12:16:00 IST 2009-08-28 22:07:33 IST
    KM-KW_JIKS 7.00 17 0 2008-09-17 22:47:53 IST 2009-08-29 11:10:10 IST
    KMC-BC 7.00 17 0 2008-09-18 06:15:00 IST 2009-08-29 11:59:39 IST
    KMC-CM 7.00 17 0 2008-09-18 06:15:52 IST 2009-08-29 12:00:05 IST
    KMC-COLL 7.00 17 0 2008-09-18 06:16:17 IST 2009-08-29 11:51:27 IST
    LM-PORTAL 7.00 17 0 2008-09-18 07:45:59 IST 2009-08-29 11:45:18 IST
    LM-TOOLS 7.00 17 0 2008-10-08 12:18:34 IST 2009-08-29 11:37:41 IST
    NET-PDK 7.00 17 0 2008-09-18 06:16:25 IST 2009-08-29 11:51:29 IST
    RTC 7.00 17 0 2008-09-18 06:16:39 IST 2009-08-29 11:51:31 IST
    RTC-STREAM 7.00 17 0 2008-09-18 06:16:39 IST 2009-08-29 11:45:19 IST
    SAP-EU 7.00 17 0 2008-09-18 07:47:22 IST 2009-08-29 12:05:04 IST
    SAP-JEE 7.00 17 0 2008-09-17 22:52:28 IST 2009-08-29 10:38:17 IST
    SAP-JEECOR 7.00 17 0 2008-09-17 22:53:35 IST 2009-08-29 10:38:52 IST
    SAP_JTECHF 7.00 17 0 2008-09-17 22:54:39 IST 2009-08-29 10:39:08 IST
    SAP_JTECHS 7.00 17 0 2008-09-17 22:57:28 IST 2009-08-29 11:24:36 IST
    UMEADMIN 7.00 17 0 2008-09-18 08:19:28 IST 2009-08-29 11:38:09 IST
    UWLJWF 7.00 17 0 2008-09-18 06:17:26 IST 2009-08-29 12:07:22 IST
    VCBASE 7.00 17 0 2008-09-18 06:17:33 IST 2009-08-29 12:08:19 IST
    VCFLEX 7.00 17 0 2008-09-18 06:18:04 IST 2009-08-29 11:52:19 IST
    VCFRAMEWORK 7.00 17 0 2008-09-18 06:18:13 IST 2009-08-29 11:52:24 IST
    VCKITBI 7.00 17 0 2008-09-18 06:11:41 IST 2009-08-29 11:45:20 IST
    VCKITGP 7.00 17 0 2008-09-18 06:18:13 IST 2009-08-29 11:45:21 IST
    VCKITXX 7.00 17 0 2008-09-18 06:18:13 IST 2009-08-29 11:45:22 IST
    WDEXTENSIONS 7.00 17 0 2008-09-18 07:49:02 IST 2009-08-29 12:08:46 IST
    Full Exception Chain
    Log ID 001517B2186400780000039E00003F0400047C7C752D75EE
    com.sap.ip.bi.base.exception.BIBaseRuntimeException: Parameter object with the name "BI_COMMAND_TYPE" and the index "0" still does not exist in the parameter list: <parameterList>  <param name=" BI_COMMAND_TYPE" value="EXPORT"/>  <param name=" NULL" value=""/>  <param name=" SHOW_EXPORT_DIALOG" value="X"/></parameterList>     at com.sap.ip.bi.base.parameter.impl.ParameterList.getParameterWithUpperCaseName(ParameterList.java:682)     at com.sap.ip.bi.base.parameter.impl.ParameterList.getValueWithUpperCaseName(ParameterList.java:748)     at com.sap.ip.bi.base.parameter.impl.ParameterList.getValue(ParameterList.java:742)     at com.sap.ip.bi.base.parameter.impl.ParameterList.getValue(ParameterList.java:732)     at com.sap.ip.bi.webapplications.runtime.impl.Page.resolvePageCommandDialogs(Page.java:4471)     at com.sap.ip.bi.webapplications.runtime.impl.Page.normalizeCommands(Page.java:4422)     at com.sap.ip.bi.webapplications.runtime.impl.Page.doProcessRequest(Page.java:3974)     at com.sap.ip.bi.webapplications.runtime.impl.Page._processRequest(Page.java:3021)     at com.sap.ip.bi.webapplications.runtime.impl.Page.processRequest(Page.java:2864)     at com.sap.ip.bi.webapplications.runtime.controller.impl.Controller.doProcessRequest(Controller.java:994)     at com.sap.ip.bi.webapplications.runtime.controller.impl.Controller._processRequest(Controller.java:883)     at com.sap.ip.bi.webapplications.runtime.controller.impl.Controller.processRequest(Controller.java:860)     at com.sap.ip.bi.webapplications.runtime.jsp.portal.services.BIRuntimeService._handleRequest(BIRuntimeService.java:362)     at com.sap.ip.bi.webapplications.runtime.jsp.portal.services.BIRuntimeService.handleRequest(BIRuntimeService.java:279)     at com.sap.ip.bi.webapplications.runtime.jsp.portal.components.LauncherComponent.doContent(LauncherComponent.java:24)     at com.sapportals.portal.prt.component.AbstractPortalComponent.serviceDeprecated(AbstractPortalComponent.java:209)     at com.sapportals.portal.prt.component.AbstractPortalComponent.service(AbstractPortalComponent.java:114)     at com.sapportals.portal.prt.core.PortalRequestManager.callPortalComponent(PortalRequestManager.java:328)     at com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:136)     at com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:189)     at com.sapportals.portal.prt.component.PortalComponentResponse.include(PortalComponentResponse.java:215)     at com.sapportals.portal.prt.pom.PortalNode.service(PortalNode.java:645)     at com.sapportals.portal.prt.core.PortalRequestManager.callPortalComponent(PortalRequestManager.java:328)     at com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:136)     at com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:189)     at com.sapportals.portal.prt.core.PortalRequestManager.runRequestCycle(PortalRequestManager.java:753)     at com.sapportals.portal.prt.connection.ServletConnection.handleRequest(ServletConnection.java:240)     at com.sapportals.portal.prt.dispatcher.Dispatcher$doService.run(Dispatcher.java:524)     at java.security.AccessController.doPrivileged(Native Method)     at com.sapportals.portal.prt.dispatcher.Dispatcher.service(Dispatcher.java:407)     at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)     at com.sap.engine.services.servlets_jsp.server.servlet.InvokerServlet.service(InvokerServlet.java:156)     at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)     at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.runServlet(HttpHandlerImpl.java:401)     at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.handleRequest(HttpHandlerImpl.java:266)     at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:386)     at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:364)     at com.sap.engine.services.httpserver.server.RequestAnalizer.invokeWebContainer(RequestAnalizer.java:1039)     at com.sap.engine.services.httpserver.server.RequestAnalizer.handle(RequestAnalizer.java:265)     at com.sap.engine.services.httpserver.server.Client.handle(Client.java:95)     at com.sap.engine.services.httpserver.server.Processor.request(Processor.java:175)     at com.sap.engine.core.service630.context.cluster.session.ApplicationSessionMessageListener.process(ApplicationSessionMessageListener.java:33)     at com.sap.engine.core.cluster.impl6.session.MessageRunner.run(MessageRunner.java:41)     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:102)     at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:172)
    Regards ,
    venkat p

    Hi Apurva ,
    Now I got Variable Id  and Varibale Value i have give From Data Fields of VC  .
    When i click on Button Export To  Excel it gives
    SET_VARIABLES_STATE is Correctly placed For
    VARIABLE_VALUES VARIABLE_VALUE
    if give 
    VARIABLE_VALUES VARIABLE_VALUE instead of SET_VARIABLES_STATE it is giving  No MetaData  is available for VARIABLE_VALUES VARIABLE_VALUE
    it throws like .
    please help in this regard.
    I Have given The Formuls AS Below
    "pcd!3aportal_content!2fcom.sap.pct!2fplatform_add_ons!2fcom.sap.ip.bi!2fiViews!2fcom.sap.ip.bi.bex?QUERY=zmp_prodn_mtef_ccp_1&BI_COMMAND_1-BI_COMMAND_TYPE=VARIABLE_VALUES VARIABLE_VALUE&BI_COMMAND_1-VARIABLE_VALUES VARIABLE_VALUE_1-VARIABLE_TYPE=VARIABLE_INPUT_STRING&BI_COMMAND_1-VARIABLE_VALUES-VARIABLE_VALUE_1-VARIABLE_TYPE-VARIABLE_INPUT_STRING="&2009&"&BI_COMMAND_1-VARIABLE_VALUES-VARIABLE_VALUE_1-VARIABLE=0P_FYEAR&BI_COMMAND_3-BI_COMMAND_TYPE=EXPORT&BI_COMMAND_3-EXPORT_FORMAT=XLS&BI_COMMAND_3-null="
    Regards ,
    venkat p

  • Crystal Reports for Eclipse ver. 2 fails on export to excel

    I have downloaded crystal reports for eclipse version 2 (full eclipse setup) and created the sample project.
    The new version of JRC looks awesome on the browser. Finally the visual appeal is as good as the .NET version.
    However I am having a problem with the export to excel feature. When I select export to excel, I get the following exception
    Update: I just realized this problem exists for all the export options
    SEVERE: Servlet.service() for servlet CrystalReportViewerServlet threw exception
    com.businessobjects.report.web.shared.WebReportingException: getOutputStream() has already been called for this response----
    (Full Exception pasted below the message)
    I have not made any changes to the sample crystal reports project so I am not really sure what i am missing.
    I have Microsoft Vista Ultimate with Crystal Reports 2008 trial version installed.
    I have configured eclipse with Tomcat 6.0 and JDK/JRE 1.6
    Any help would be appreciated.
    Thanks
    SEVERE: Servlet.service() for servlet CrystalReportViewerServlet threw exception
    com.businessobjects.report.web.shared.WebReportingException: getOutputStream() has already been called for this response---- Error code:0
    +     at com.businessobjects.report.web.e.if(Unknown Source)+
    +     at com.businessobjects.report.web.e.a(Unknown Source)+
    +     at com.crystaldecisions.report.web.ServerControl.a(Unknown Source)+
    +     at com.crystaldecisions.report.web.ServerControl.processHttpRequest(Unknown Source)+
    +     at com.crystaldecisions.report.web.viewer.CrystalReportViewerServlet.a(Unknown Source)+
    +     at com.crystaldecisions.report.web.viewer.CrystalReportViewerServlet.doPost(Unknown Source)+
    +     at javax.servlet.http.HttpServlet.service(HttpServlet.java:710)+
    +     at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)+
    +     at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)+
    +     at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)+
    +     at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)+
    +     at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)+
    +     at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)+
    +     at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)+
    +     at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)+
    +     at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:263)+
    +     at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)+
    +     at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:584)+
    +     at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)+
    +     at java.lang.Thread.run(Unknown Source)+
    Edited by: Avinash Tauro on Feb 5, 2009 7:43 AM

    I searched on scn and got the listing you mentioned.
    The jsp code I am using is as follows.
    <%@ page contentType="text/html; charset=UTF-8" pageEncoding="ISO-8859-1" %><%@ taglib uri="/crystal-tags-reportviewer.tld" prefix="crviewer" %><crviewer:viewer reportSourceType="reportingComponent" viewerName="CrystalReport1-viewer" reportSourceVar="CrystalReport1" isOwnPage="true"><crviewer:report reportName="CrystalReport1.rpt" /></crviewer:viewer>
    And I get the following exception on selecting any export.
    WebReportingException: getOutputStream() has already been called...
    So I think maybe this problem is not the same as listed under SAP Note 1199025.
    Also the strange thing is I just download the full ganymede version with crystal report for eclipse version 2, and created a default crystal reports website.
    The samples were provided automatically, and I have not written any code myself.
    Any help would be appreciated.
    Regards
    Avinash Tauro

  • How do I get PDF forms to export to excel in the desired order?

    How do I get PDF forms to export to excel in the desired order?
    Here is what I have done:
    As taken from another post:
    Choose Forms > Manage Form Data > Merge Data Files Into Spreadsheet.
    In the Export Data From Multiple Forms dialog box, click Add Files.
    In the Select file Containing Form Data dialog box, select a file format option in File Of Type option (Acrobat Form Data Files or All Files). Then locate the form files that you want to merge into the spreadsheet, select them, and click Select.
    Repeat the previous step to add form data files that are in other locations, as needed.
    Click Export. Then select a folder and filename for the spreadsheet, and click Save.
    In the Export Progress dialog box, click either View File Now to open the spreadsheet file or Close Dialog to return to Acrobat."
         The problem now is that Adobe populates Excel in ABC order of the form, based off of the name of each box in the form. For example, if my form has three text boxes, named A, B, and C, then Adobe will export to Excel as such:
    Row 1 =         A                              B                              C
    Row 2 =         data entered             data entered              data entered
    where 'data entered' is whatever the user typed into the form boxes. But what if I want a different order for exporting, and I don't want to rename my text boxes? What if I want:
    Row 1 =         C                              B                              A
    Row 2 =         data entered             data entered              data entered   ?
    Is there a way to do this in acrobat x or xi?
    Thanks

    I don't have time to test right now, but there was a change with Acrobat 10 where it exports according to the tab order, which you may have to set manually, so give that a shot. Otherwise, you'll have to process the file after it's exported if you need the fields in a particular order. This wouldn't be too difficult to do with something like a VBS or JS script in Windows.

  • Best way to create dataset to be exported in Excel for further elaboration

    Hello experts!
    I need help with some of my custormers, that perform their work in a way that I partially disagree.  They work in BOXI R3.1 SP3.
    They use webi on top of relational universes (DWH layer in Oracle DB).
    We created reports in webi that cover their standard analysis, but for their spot analysis they find difficult to work in webi.
    I think that it partially depends on lack of known of the tool (even if they have been trained).
    Anyway they need a solution to this issue:
    they wont create in webi a basic set of information inserting reclassifications of information and some calculation in webi. Then they need to export information in excel to do their on spot calculations. Those dataset are often big, so they find following issues:
    1)they tried to use Live Office to import the table they need but the limit of the datastream size is reached quickly (currently limit is 50Mb in our settings , but is reached even from report that exported with Save to my computer As Excel are not more than 10Mb ). I discussed with B.O. administrator and increasing much more this treashold affects general  performances of other services.
    2)Exporting in excel with Save As is quite cumbersome and they can't use .xlsx format as it is only supported by BI4.0 .So they get tables with more than 64K rows splitted over many sheets.
    3)They also tried to export in CSV format to eventually further elaborate in Access, but .CSV only retrieve the information of the Microcube extracted by the query, not the data elaborated in the report.
    Anyone can suggest further ways to behave?
    Kind regards.
    Roberto.

    there are 3 options I see :
    1. Learn to use webi, it can do everything excel can and more
    2. I question ability of anyone to deal with that much data in excel, you should agregate data on DB side and push most of calculations there. Then your exports will be much smaller.
    Better designed semantic layer will allow your users to get needed data quicker and in less volume, making their work in webi or in excel easier.
    3. Use DF/DI products as ETL tools into your Excel users.

  • Timeout when using  ALV build-in functionality: exporting to Excel

    Hello,
    I have the following problem within one of my web dynpro abap applications:
    I need to be able to display data in a table that preferably should be via alv component.
    Then I shall also be able to download the displayed data via Excel.
    So I have embedded the ALV component I added to the component within a view and activated the export to excel button.
    Downloading small amount of data does no lead to any problem, but when trying to process a larger amount of data (in this case 22500 entries), I get a timeout.
    Does anybody have any idea if it is possible to increase performance here without reducing the amount of data to be downloaded?
    thanks a lot ion advance!
    Ana

    Hello,
    coming back to the UI element download.
    I managed to get the data being saved to the desktop, but unfortunately, the data remains being displayed as in chines letters.
    Anybody got an idea, what parameters I might have set wrong? Or if I have to do an additional encoding before generating the XString?
    Here is the supply method code and the parameters I have set in the UI element:
    The Supply method
    method GEN_EXCEL_DOWNLOAD_DATA .
      data: wa_cmx_line type zksb_cmxshowline.
      data: lt_excel type zksb_cmx_excel_download_t.
      data: wa_excel type zksb_cmx_excel_download.
      data: l_guid type guid_32.
      data: l_url type string.
    * read context-------------------------------------------------------------------------------------
      data lo_nd_z_ksb_get_prcm type ref to if_wd_context_node.
      data lo_nd_exporting type ref to if_wd_context_node.
      data lo_nd_rt_zksb_cmx_show type ref to if_wd_context_node.
      data lo_el_rt_zksb_cmx_show type ref to if_wd_context_element.
      data lt_rt_zksb_cmx_show type table of wd_this->element_rt_zksb_cmx_show.
      data wa_rt_zksb_cmx_show like line of lt_rt_zksb_cmx_show.
    *   navigate from <CONTEXT> to <Z_KSB_GET_PRCM> via lead selection
      lo_nd_z_ksb_get_prcm = wd_context->get_child_node( name = wd_this->wdctx_z_ksb_get_prcm ).
    *   navigate from <Z_KSB_GET_PRCM> to <EXPORTING> via lead selection
      lo_nd_exporting = lo_nd_z_ksb_get_prcm->get_child_node( name = wd_this->wdctx_exporting ).
    *   navigate from <EXPORTING> to <RT_ZKSB_CMX_SHOW> via lead selection
      lo_nd_rt_zksb_cmx_show = lo_nd_exporting->get_child_node( name = wd_this->wdctx_rt_zksb_cmx_show ).
    *   @TODO handle not set lead selection
      if lo_nd_rt_zksb_cmx_show is initial.
      endif.
    * get static attributes table
      lo_nd_rt_zksb_cmx_show->get_static_attributes_table( importing table = lt_rt_zksb_cmx_show ).
    * reduce data to only the data that shall be displayed----------------------------------------
      loop at lt_rt_zksb_cmx_show into wa_rt_zksb_cmx_show.
        move-corresponding wa_rt_zksb_cmx_show to wa_excel.
        append wa_excel to lt_excel.
      endloop.
    * populate data as tab separated strings-----------------------------------------------------
      data l_str  type string.
      data lv_struct type extdfiest.
      data itab type ref to zksb_cmx_excel_download_t.
      data r_xstring type xstring.
      data s(256) type c.
      field-symbols <wa_desc> like line of lv_struct.
      field-symbols: <tab> type table.
      field-symbols:  <wa> type any.
      field-symbols:  <f> type any.
    * populate the column headers----------------------
      get reference of lt_excel into itab.
    * assign lt_excel to <tab>.
      assign itab->* to <tab>.
      lv_struct = wd_this->get_table_structure( itab = itab ).
      loop at lv_struct assigning <wa_desc>.
        concatenate wa_cmx_line
                    <wa_desc>-coltitle
                    cl_abap_char_utilities=>horizontal_tab
                    into wa_cmx_line.
      endloop.
      concatenate wa_cmx_line
                  cl_abap_char_utilities=>cr_lf
                  into wa_cmx_line.
    * loop through the data table-----------------------
      loop at <tab> assigning <wa>.
        loop at lv_struct assigning <wa_desc>.
          assign component sy-tabix of structure <wa> to <f>.
          check sy-subrc = 0.
          if <wa_desc> is assigned and <wa_desc>-convexit is not initial.
    *  Process any output conversion routines
            concatenate 'CONVERSION_EXIT_' <wa_desc>-convexit '_OUTPUT' into wa_cmx_line.
            call function wa_cmx_line
              exporting
                input  = <f>
              importing
                output = s.
          else.
            concatenate wa_cmx_line
                     <f>
                      cl_abap_char_utilities=>horizontal_tab
                      into wa_cmx_line.
          endif.
        endloop.
        concatenate wa_cmx_line
                    cl_abap_char_utilities=>cr_lf
                    into wa_cmx_line.
      endloop.
    *Convert the strings to Binary strings (UTF-16le)------------------------------------------------
      call function 'SCMS_STRING_TO_XSTRING'
        exporting
          text     = wa_cmx_line
          mimetype = ''
        importing
          buffer   = r_xstring.
    *Add the UTF-16 Little Endian Byte Order Mark to the begining of the file
      concatenate  cl_abap_char_utilities=>byte_order_mark_little
                   r_xstring
                   into r_xstring in byte mode.
    * set context
      DATA lo_nd_excel_download TYPE REF TO if_wd_context_node.
      DATA lo_el_excel_download TYPE REF TO if_wd_context_element.
      DATA ls_excel_download TYPE wd_this->element_excel_download.
      DATA lv_excel_download_data LIKE ls_excel_download-excel_download_data.
    * navigate from <CONTEXT> to <EXCEL_DOWNLOAD> via lead selection
      lo_nd_excel_download = wd_context->get_child_node( name = wd_this->wdctx_excel_download ).
    * get element via lead selection
      lo_el_excel_download = lo_nd_excel_download->get_element(  ).
    * set single attribute
      lo_el_excel_download->set_attribute( name =  `EXCEL_DOWNLOAD_DATA`  value = r_xstring ).
    endmethod.
    and the parameters to the UI are as follows
    behaviour: allowSave
    data: <data that was created by supply method>
    fileName: CMX.xls          also tried CMX.cvs
    mime-type: ms-excel     also tried  /vnd.ms-excel
    text: $OTR:SOTR_VOCABULARY_BASIC/DOWNLOAD
    textDirection: inherit
    type: navigation
    visible: Visible
    Any suggestion of what I might have to change would be great!
    Tx
    Ana

  • Exporting to Excel causes compounded field to be divided

    I have a report with compounded fields of plant and manager (ex. 3350/200). When I attempt to export to Excel, it is treated as a division and it displays 16.75 instead. I've changed a couple of settings under Tools/Options and Query Properties in both Excel and BEx query designer, but it does not change it. I also tried to export as CSV. This works, but not without doing a lot of manual manipulations to the file and I'm trying to come up with a clean process for my users. I have not found any info in the OSS Notes. Has anyone seen this issue, or has any suggestions of what else I can try? Thanks!

    Hi Paul,
       Try to download as CSV and open again in excel, i think it will work. Or
       Format the perticular field as TEXT and try to down load.
    Or in report try to replace the perticular charachter"/" with "_" and download.
    Hope it Helps
    Srini

  • Export to Excel and File Upload is not working on ipad/IPhone

    Hi
    We have a site in ASP.Net 2008 which is running on browsers and devices. There is an option to export to excel and file uploadd, It is working in the browsers but not working in Devices like IPad and Iphone. we are creating xml file when export to excel. We have tried it on IPad1,IPad3 and iphone3.
    can you please elaborate the causes of these issues? Pleas support to fix the issues.
    Regards,
    Manoj

    How does your PL/SQL for the saving of uploaded files looks like? Where does this error happen? Does your process have an error message?
    Denes Kubicek
    http://deneskubicek.blogspot.com/
    http://www.opal-consulting.de/training
    http://apex.oracle.com/pls/otn/f?p=31517:1
    -------------------------------------------------------------------

Maybe you are looking for