Export to Excel in Discoverer - Is this a Bug ???

Hi all, thanks for all your helping and sharing thoughts.
I have one issue when exporting to EXcel:-
If you create a calculated field in Discoverer and 1 or more of the values used in the calculation has a NULL value, Discoverer will show a NULL value for the calculated field, which is correct. However when the report is exported to Excel, the calculation for this field is done as if the NULL is a zero causing the calculation to be incorrect. For example:
Ordered_Qty = 20,487
Contract_Amount = NULL
Calculation for new field 'Contract_amt_Remaining' is Contract_Amount - Ordered_ Qty = NULL (since you can not subtract something from nothing , ie NULL - 20,487= NULL) this is fine.
When the new field is exported to Excel the value shows -20,487 as if the Contract_Amt = 0 and not NULL, actually it supposed to show NULL, I don't know why its happening like this.
can anyone help me on this, that would be greatly appreciated.
Thanks in advance,
skat

Hi puppethead,
Thanks for your response,
Here what I am asking is, calculation working fine in Discoverer Plus lik the difference between 2 items, when it is null ie NULL - 3435= NULL this is working well and good in Disc PLUS, but when we export that worksheet to Excel it is giving as ie NULL-3435 = -3435 instead of NULL.
so you guys asking me to use CASE statement in Calculation, but this is not with our calculation part right in Disco Plus, coz we are getting correct result, only when we exporting to Excel getting incorrect value thats it.
Also i tried that CASE statement in calculation, saying syntax error, is that right syntax or not, i used as it is from this post.
Can you make sure that CASE statement is right or not in the above post, do you want me change anything over there, coz I am getting syntax Error.
Thanks again and for your helping.
--skat                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

Similar Messages

  • Export to EXCEL 4m Discoverer Plus/Viewer doesnt retain Header Formatting ?

    Hi,
    I am trying to export reports from Discoverer Plus and Viewer to XCEL
    but the Header's Formatting like Bold and Background Color etc are
    not being exported as seen in Plus.
    Could you please advice on how to make this happen.
    Thanks,
    VJ

    i tried this option..but the problem is as follows
    Excel Export:+ The header comes like this
    Report Name Company Name Date : 22-APR-10 Page: 1                               
    Column1     Column2     Column3     Column4                     Column5                                     Column6                                                     Column7          
    122124     9752          7 METRO NORTH     716 MIDWEST REGION     DODGE CITY/ANDERSON TOYOT      LEXUS OF ROCKFORD
    122124     9752          7 METRO NORTH     716 MIDWEST REGION     DODGE CITY/ANDERSON TOYOT      LEXUS OF ROCKFORD
    122124     9752          7 METRO NORTH     716 MIDWEST REGION     DODGE CITY/ANDERSON TOYOT      LEXUS OF ROCKFORD
    HTML Export:+ The header comes like this
    Report Name                                 Company Name
    Date : 22-APR-10                            Page: 1      
    Column1     Column2     Column3     Column4                     Column5                                     Column6                                                     Column7          
    122124     9752          7 METRO NORTH     716 MIDWEST REGION     DODGE CITY/ANDERSON TOYOT      LEXUS OF ROCKFORD
    122124     9752          7 METRO NORTH     716 MIDWEST REGION     DODGE CITY/ANDERSON TOYOT      LEXUS OF ROCKFORD
    i.e the export to HTML is retaining the format but it is putting the heading into multiple cells..there by making it look bad when opened in Excel.
    Wheras in EXCEL export it doesnot retain formatting like Bold,etc it merges all the cells of teh first row and is putting it there which is much better to view.
    Is there anything we can do about it ??
    Thanks

  • 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.

  • Does not display axis label in graph when exported to excel

    I have a wierd issue.I have a report with graph with coloum chart and axis labels description on x axis.WHen i export the report to PDF everything looks OK.But when i export it to excel few axis labels disapper.Out of 12 labels only 2 apper when exported to excel.Has anyone encountered this issue.
    If so is there a way to fix this.
    PS: I am using BO XI 3.1 Webi.
    Thank you,
    Sanjeev

    hi,
    I have tried this out with a sample.
    In WEBI preview mode and PDF, all axis labels will appear fine.
    But when exported to excel, some labels will disappear.
    Workaround: We have to increase the chart size in Excel till all axis labels appear clearly.
    Regards,
    Vamsee

  • CSV output (export to excel) don't use right code table

    CSV output (export to excel) don't use right code table. We use code table
    8859-2 (reports and forms are OK). Why export to excel don't use this code table.
    Thanks for answers

    You could also take the example from my blob that Denes mentioned and instrument it to output in either CSV or HTML. This way, you could have a single procedure that worked for both formats.
    All you would need to do is handle each field differently - pad a TD and /TD (with proper brackets, of course) if its HTML or just append a comma if it's CSV.
    Thanks,
    &#150; Scott &#150;
    http://spendolini.blogspot.com/
    http://sumnertech.com/

  • Export to Excel and PDF

    Hi Guys,
    I need a bit of a help for exporting my data to Excel or PDF. Can someone link me to a good article how can I do this using SAP NetWeaver Developer Studio CE. Thanks a lot guys!

    Hi,
    Export to Excel:
    Please look at this [wiki|http://wiki.sdn.sap.com/wiki/display/WDJava/UploadingexcelfileusingWebDynproforJava]
    [Web Dynpro Java - Exporting Table Data into Excel|http://wiki.sdn.sap.com/wiki/display/Snippets/WebDynproJava-ExportingTableDataUsingOn-DemandStreams-SAPNW+7.0]
    Export to PDF:
    check this thread
    [Export to PDF|Export to PDF] and [Transfer data from WebDynpro Context to PDF|Transfer data from WebDynpro Context to PDF - Options]
    Hope this helps!!
    Thanks & Regards
    Vijay K

  • Error: -43..when exporting to Excel

    Hi All
    A client gets Error: -43 [863-29], when exporting a list to excel.
    I cant seem to find what the error means.
    Any ideas?
    Thanks
    Jerusha

    From SAP Note number 864829
    When exporting to excel via Business one , this error occurs if user does not have the correct permissions on the folder he has chosen to save the data in.
    Solution
    Verify user permissions on the folder.
    User must have the correct permissions ie read and write on the folder.
    Give user the necessary permissions to be able to save to that folder.
    These rights can be given by the local Administrator.
    Regards,
    Frederic

  • Discoverer: Export to Excel not working properly on XP sp2

    Hi,
    In Discoverer, after exporting to Excel the spreadsheet should be displayed automatically. It works fine on Windows 2000, XP sp1, but not on XP sp2.
    Any suggestions on how to fix that problem?
    Thanks,

    Sonal,
    Did you try using the context menu to export the results?
    I faced the same problem. I could not export using the export functionality but worked when i used the context menu.
    Left click on any result area --> Enhanced Menu --> Export to.
    hope this helps
    Mustafa

  • Discoverer Plus4i - Exporting to Excel - Your server is running low

    We are currently running Discoverer Plus 4i.
    We have a couple of large reports that we want to export to Excel.
    We retrieve the report and then carry out the 'Export to Excel' action. The export starts to run but during the 'sort' phase we are getting the error "Your server is running low on virtual memory".
    The largest report is currently retrieving about 64K rows but will grow by at least another 20K.
    I appreciate we could restrict the retrieval through parameters but we were wondering if anyone had encountered this before and if there are any solutions out there.

    Hi,
    Any chance any of your items are created using custom functions/packages that return varchar's? If so, check you max char fetched (admin edition - properties tab, each item in folder(s) used by the report). The columns created by custom functions/packages will probably be 4000 characters. Excel doesn't like this. This also slows down your report. Wrap your custom function call in a substr and reduce to the correct size. This might fix your problem.
    If you don't use custom functions/packages in this report, oh well, just a thought.
    Regards,
    Nancy

  • 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

  • Page headers are not exported to excel files - can this be fixed in 2008SP3

    I use 2008, SP3.
    I am experiencing a problem with exporting to Excel(.xls): the page headers, but the very first, are not exported.
    The report page headers consist of weekdays and the corresponding dates, meanning they are different on each page.
    The report looks OK in pdf and doc formats.
    Is this a known problem or limitation?
    Is there is a way to controll the export to Excel to correct this problem?
    Thanks and ragards
    Israel M Brill, Analyst

    Note that this is the .NET - SAP Crystal Reports forum;
    Is this an issue in a .NET app?
    Does the report export as expected from the CR 2008 designer? If not, close this thread and post a new one in the [SAP Crystal Reports Design|SAP Crystal Reports, version for Visual Studio; forum.
    What version of .NET?
    Web or Win app?
    Ludek
    Follow us on Twitter http://twitter.com/SAPCRNetSup
    Got Enhancement ideas? Try the [SAP Idea Place|https://ideas.sap.com/community/products_and_solutions/crystalreports]

  • Discoverer issues exporting to excel

    i'm using OracleBI Discoverer Viewer Version 10.1.2.48.18 and some users claim that when they try to export to excel they get the following message: The exported document no longer exists. An exported document is not maintained after the first download. If you wish to view the document again, please perform the export again.
    I'm able to replicate the error but only after I export and then I closed the workbook in excel. If I re-run the report I can export but for the users whith the problem they can not even export the first time.
    any idea of what the problem is?

    Hi,
    I am using Discoverer Viewer .....
    Wherein there are few parameters based on which we can drill down to reports
    BUT
    when i click on Export to Excel option it displayin all d reports one after d other
    But can't it display in d same way like hierarchy and allow user to drill down based on parameters
    Any suggestions please....
    Thanks in Advance

  • Discoverer Plus OLAP (D4O) - Export to Excel  vs. Open Office

    Hej dear experts,
    following issue: we`re using D4O (Version 10.1.2.54.25) and have many users, who want to use the "Export to Excel" function.
    As we don`t run MS Office, but Open Office, the function "Export to Excel" is not available (greyed out).
    I`ve been searching forums and web for any hint, how to use Open Office instead of MS Office for this, but no hits so far.
    * associating xls file with Open Office doesn`t help
    * extracting the content of d4o.jar gives me the structure, in which I was searching for a kind of configuration file, but no success (expecting xml file?)
    Obviously D4O is looking for the "EXECL.EXE" somewhere in the registry?
    Has anyone of you experiences or an idea, how to make it work with Open Office?
    Any hints and comments highly appreciated!
    Thanks,
    Thomas

    Thanks to a hint from Oracle support experts it`s working now...
    D4O checks during startup following keys in the registry:
    HKEY_LOCAL_MACHINE\software\Classes\Applications\Excel.exe\shell\Open\command<fileName>
    (or)
    HKEY_LOCAL_MACHINE\software\Classes\Applications\Excel.exe\\shell\Edit\command <fileName>
    I`ve created a registry key:
    HKEY_LOCAL_MACHINE\software\Classes\Applications\Excel.exe\shell\Open\command\
    (Type: REG_SZ) and entered the path to scalc.exe.
    It didn`t work with scalc.exe, but after I`ve copied scalc.exe to excel.exe and changed the registry key to point to it, it works now.
    Note: it obviously needs capital letters, so I wrote it like "C:\Program Files\OpenOffice.org 2.0\program\EXCEL.EXE" , with small letters it didn`t do anything.
    Now "Export to Excel" is avalible in D4O.
    Tested successfully, the only sour note is that graphs are not properly exported or readable by OO, but this may depend on OO version 2.
    regards,
    Thomas

  • Automated exports to excel

    is there anyway to have a scheduled report - automatically export to excel and email the attachment to a distribution list?
    is there another tool i can use in conjunction with discoverer to get this to work.
    pareena

    Hi Pareena
    Please do the folowing...
    1. Install Discoverer on a server/ PC which will never be shut down
    2. Install a programm called WINAT (or any other Event scheduler ) also on the server.
    3. Create a batch file which will invoke Discoverer, open an wbook and sheet from the databse, execute it and get it to export the result as an EXCEL to a folder on the Server. Sample code is ...
    C:\orant\discvr31\DIS31USR.EXE /APPS_GWYUID APPLSYSPUB/PUB /APPS_FNDNAM APPS /APPS_USER /APPS_RESPONSIBILITY "ABCD" /connect login/password@connect string /batch /opendb "WorkBook Name" /sheet Number /export XLS C:\report_name.xls.
    4. Create yet an another batch file which will pick up this excel file and email it to an email group.
    We have been successfully sending out Excel version of a critical report to a set of people every week day morning at 5:00 am using the above route.
    All the best.
    Thanks
    -Uma

  • Exporting to Excel - Macro Problems

    For reasons unknown to us, when we export our crosstab reports from Discoverer 4i to Excel(2000 or 2003), we are getting a dialog message box warning us of the following, "The document you are opening contains macros. Some macros may contain harmful viruses. If you are sure this document is from a trusted source, Click Yes. If you are not sure and want to prevent any macros from running, click No." If we click Yes, then it will download two sheets, the first complete with drop down boxes etc and the second sheet just contains the regular crosstab report that we used to get but with formatting included, aka grey shaded columns etc. We checked the ExcelExportWithMacros pref and it is set to 0, the macro security on Excel is set to medium.
    Any ideas would be welcome.
    Thank you

    The macro warning is something that's well known when exporting to Excel. Just for grins, try putting your security at low to see if it still warns. There may be some kind of macro that gets sent with the export (this has been discussed before), but not really sure. However, many clients I've been at just accept it and click Yes. I believe it's a 4.x thing (ie: I hope it's been corrected in 10g), but haven't tried that yet to be sure.
    As for the export having more than one worksheet, I believe I remember that this is also a known 'challenge' (ie: it doesn't just come out like a pivot table in 1 worksheet) and again, I'm pretty sure it's only a 4.x thing.
    Also, are there 2 options for exporting to Excel for a xtab (ie: export to Microsoft Excel Workbook (.xls), Microsoft Excel Pivot Table (.xls)? If so, try each as the first is for static sheet only info and the latter exports a 'static sheet', a 'pivot table' and 'warning sheet'.
    Also see metalink doc: 214075.1 for one possibility.
    Also see metalink doc: 157162.1 for another idea.
    Russ

Maybe you are looking for

  • Problem during printing smartforms

    Hi, We are using Epson 9 pin printer for printing. We have custom page layout used in our sap script and smartforms with size 12 inch / 9 inch (80 column dot matrix printing). We are using SWIN (windows default printing) driver. Problem we are facing

  • ILife 08- problem with Podcast and Blog links on landing page

    Hello I have iLife 08, running OS 10.4.11. The Podcast and Blog links on my iWeb landing page appear but don't do anything. All was working fine one week ago. They load, and when you mouse over it the links looks like they are going to work but don't

  • Cisco Aironet 1300 Series Power

    Can the 1310ap receive it's power from a POE switch?

  • Date functions in Oracle

    Hello I need to rewrite the following sql I used in MSSQL server to sql for Oracle: declare @lastmo_start datetime,      @lastmo_end datetime select @lastmo_start = dateadd(month, -1, getdate()) select @lastmo_end= dateadd(day, -1, getdate()) Basical

  • Contextual event producer not listed as in the event map

    Hi There is a taskflow A containing a pagedef which raises a contextual event. Taskflow A resides in Taskflow B. Consumer page has Taskflow B dropped as a region and also has a handler method to subscribe to the event. While trying to create an event