About excel export for WD!

i 've seen the thread  <a href="https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/edc2f3c2-0401-0010-8898-acd5b6a94353"><b>web dynpro Binary Cache</b></a>.
<b>i have to got some changes for requirement:</b>
  <b>1.></b>i don't wanna to open a new URL page and a download dialog windows(open/save/cancel option buttion) when i  click excel URL file.i hope it only to pop the download dialog windows;
  <b>2.></b> after i download the excel file to my local computer.i don't wanna to select some options(1.As a XML list;2.As a read-only workbook) to open it.i hope i can open it directly by click the *.xls file.
  <b>3.></b>i don't know how to change the column name for excel file. Liking some blank-letter maybe appear in  the column name. e.g.: <b>First Name</b> not <b>FirstName</b>.
    looking forward to u reply.thanks in advance!

Point 2 and Point 3 are solvable in the following way.
Refer the Web Dynpro Binary Cache and there are minute changes that needs to be done.
Implement the following methods:
exportToCSV
  public void exportToCSV( com.sap.tc.webdynpro.progmodel.api.IWDNode dataNode, java.util.Map columnInfos )
    //@@begin exportToCSV()
     byte[] excelCSVFile;
     IWDCachedWebResource cachedExcelResource = null;
     String fileName = dataNode.getNodeInfo().getName() + ".csv";
     try
          excelCSVFile = toExcelCSV(dataNode, columnInfos).getBytes("UTF-8");
          cachedExcelResource = getCachedWebResource(excelCSVFile, fileName, WDWebResourceType.getWebResourceType("csv", "application/ms-excel"));
          if(cachedExcelResource != null)
               wdContext.currentContextElement().setExcelFileURL(cachedExcelResource.getURL());
               wdContext.currentContextElement().setExcelFileName(cachedExcelResource.getResourceName());
               openExcelLinkPopup();
          }else{
               wdComponentAPI.getMessageManager().reportException("Failed to create Excel file from table !",true);
     catch(UnsupportedEncodingException e)
          wdComponentAPI.getMessageManager().reportException(e.getLocalizedMessage(),true);
     catch(WDURLException e)
          wdComponentAPI.getMessageManager().reportException(e.getLocalizedMessage(),true);
    //@@end
To Excel CSV
  public String toExcelCSV( com.sap.tc.webdynpro.progmodel.api.IWDNode dataNode, java.util.Map columnInfos )
     StringBuffer x = new StringBuffer();
     String attributeName, headerName;
     //trimHeaderTexts(columnInfos);
     for(Iterator iter = columnInfos.keySet().iterator(); iter.hasNext();)
          attributeName = (String) iter.next();
          headerName = (String) columnInfos.get(attributeName);
          x.append(headerName)
           .append(",");
     x.append("n");
     for(int i = 0; i< dataNode.size(); ++i)
          IWDNodeElement dataNodeElement = dataNode.getElementAt(i);
          for(Iterator iter = columnInfos.keySet().iterator(); iter.hasNext();)
               attributeName = (String) iter.next();
               x
                .append(dataNodeElement.getAttributeValue(attributeName))
                .append(",");
          x.append("n");
     wdComponentAPI.getMessageManager().reportSuccess(x.toString());
     return x.toString();
Regards,
Subramanian V.

Similar Messages

  • Question about Excel export from Infoview

    Can someone please verify this for me?
    I need to be able to export the results of a report to MS Excel.  When running a CR on demand, or scheduled, through the InfoView and then exportiing as "Excel with Data Only" we get an error that reads "A request was canceled.  The necessary security privileges could not be verified.  This indicates a problem with the security server."
    I suspect we are getting that error because Excel is not installed on the BOXI server.  Is this a possible cause?  Any other ideas to check into?
    Thank you,
    - George

    ANd exactly sorry, this is useless. You have not provided any details about your export settings, version of AI, system info, how you are trying to view and so on. Just saying that it doesn't work is simply not good enough.
    Mylenium

  • Concerned about rendering/exporting for too long - how bad is it for Macbook Pro?

    If it's even bad at all...
    I know these machines are made to take some strain, but I always get a little panicky when I need to export big jobs.
    I'm currently busy exporting Quicktimes (not self-contained) of a project in which I had to key out backgrounds for what will eventually end up as a DVD. Thing is, I'm working in ProRes 422 (HQ) and the DVD's over an hour long in the end...
    And I still have to grade later on, which means another render cycle, and after that, send to DVD, which means yet ANOTHER render cycle...
    So I'm hoping those out there can help me put my mind at ease.
    My Macbook:
    Model Name:          MacBook Pro
    Model Identifier:          MacBookPro5,3
    Processor Name:          Intel Core 2 Duo
    Processor Speed:          2,8 GHz
    Number Of Processors:          1
    Total Number Of Cores:          2
    L2 Cache:          6 MB
    Memory:          4 GB
    Bus Speed:          1,07 GHz
    CPU's currently running at 203 Fahrenheit (95 Celsius) and the fans are pumping at aroun 5500RPM. I imagine the machine will carry on like this for at least another 8 hours, if not 10 or more...
    Can I rest easy or should I tell these inconsiderate, uninformed and ungrateful clients (who have no understanding of what postproduction ACTUALLY entails) to buzz off?
    Thanks!

    Haha thanks, but believe me - I've reached my threshold.
    I've hardly ever burnt bridges, and in this case the client is a photographer with a bunch of DSLRs who decided he's gonna do a multicam shoot and transcode everything to ProRes422. Which is all good, except the final DVD is arond 1.5 hours, and he wants the backgrounds replaced. So instead of shooting with a green screen, he just shot against his infinity curve - which ended up being a TOTAL nightmare for me because there is so much white in his shots that I just couldn't fathom why he wouldn't shoot green? On top of this, he brought me all the footage on a friggin' USB drive, and then expected me to copy it onto my drives. I informed him that I didn't have 500 odd gigs free and that he'd have to provide a faster drive. He did so, but the result is that the first day of post was spent copying files to the new drive.
    On top of this, I decided to take on this job because a friend of mine couldn't do it, and I thought I'd help out - he gave me the impression that it would be a very easy 5 day job. If only - this friend drew up the initial quote, but he didn't take rendering or exporting time into consideration, and also didn't quote for an on-set post supervisor. The result is that he under quoted, and I'm fighting against time to get through cos I need to carry on with another job tomorrow. And the client hasn't even done a proper approval, provided me with music needed for the project, etc. etc.
    ****, I'm so over people who just don't understand or respect post. Anyway, excuse me for venting, I really needed to do that.
    So you reckon the laptop will handle it? Any other thoughts out there?

  • Question about proper export for 480 sequence out to 720

    I have 480 4:3 DV-NTSC footage in a 480 timeline. When I export it out, I choose 720. Now no matter which way I have exported these videos out, when I upload them to youtube and choose to view in full screen, the vid is always squished horizontally.
    How could I properly export this?

    Don't export at 720.  Export at the proper SD resolution.

  • Excel export are merging cells for data on multiple lines !

    Hello,
    I'm using Crystal Report XI R2, when we are doing an export to Excel with have an unexpected formatting.
    For example the value of the name is on 2 lines:
    => So, on Excel the result is on 2 lines but merged. We want to have this result only on one cells.
    Remark: if we delete the 2nd lines, because cells are merged we obtain the expected result.
    Proposal A:
    Are they any set-up available concerning the formatting of Excel ?
    Proposal B:
    Could we run some VBA when we click on Export button to make queries on the Excel ?

    When they introduced Unicode support in Crystal 9 (I believe), they had to completely re-write the export routines. At that time, they made a decision to change the functionality of the excel export. Crystal is attempting to remain absolutely faithful to the graphical layout of the report as you see it in the viewer. So it creates merged cell sections, empty columns between columns, and empty rows to give you as close to exactly what you see in the viewer as possible. Unfortunately, the result is typically less than useful. Iu2019ve had several conversations with Business Objects (now SAP) with regards to this when they changed it between versions 8.5 and 10, and they have no intention of changing the functionality as it now exists.
    There is a document which is now likely somewhere on the SAP portal that explains what you need to do to obtain the best results when exporting to excel.
    The jist of it is this:
    Line up all of the columns detail data with thier headers, and make sure that data fields are the same size as thier headers. 
    Line up all rows (headers and detail rows). (ie: select everything in the row, right click, align tops, and make the same height)
    cram everything as close together as possible. zero space in the report translates to zero extra collumns and rows in the export.
    the other option is to use the export to data only functionality, but that may not be what you're looking for either.

  • Is any different between ECC 5.0 and ECC 6.0 for Excel export?

    Dear all,
    As you know, most standard SAP report allow Excel export. I just wonder is any different between ECC 5.0 and ECC 6.0 for excel report in standard SAP reports?
    In ECC 5.0, Reports in profit center accounting, LIS, or PA, etc. has their own different way to export to excel and is any improvement in ECC 6.0? I Thanks.

    In ECC 5.0, a lot of reports don't have Excel export function instead user has to go to system -> List -> Save -> Local file -> spreadsheet.
    I just wonder is any improvement in ECC 6.0? just like LIS report, user can select export -> Transfer XXL to either pivot table or just plain excel but the function only exist in certain reports in some modules and not all.
    Thanks again.

  • Title for Excel Export

    Hi all.
    In BI 7.0, after executing a query, I can download the results to Excel and the description of my query name shows as the first row in the Excel sheet.
    When I use this query in a template that also uses the tab item, the data is dumped to Excel but the name of my query does not show.  I have tried changing the Export command parameters to have a header but that seems to only apply to PDF downloads. 
    I've considered putting in a label item (or something similar) with the title in it,  to download to excel with the data, but I'd rather not if there is a simpler soultion.
    Thanks for your help.
    Jeff

    Hi Jeff,
    when you execute a query from Query Designer, the web Template 0ANALYSIS_PATTERN is used. If you lookup the button group parameters there, you could see what and how it is exported to excel.
    So, you have to add a text item to your web template and bind the text content to the query title. Then it will be exported to excel.
    The parameters according headers, page format etc. is not used for Excel export.
    Look up [note 1178857|https://service.sap.com/sap/bc/bsp/spn/sapnotes/index2.htm?numm=1178857].
    Best regards
    Arne

  • Export to excel compatable for Office 2000

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

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

  • Question about file size when using "Export for Web"

    Hi!
    I created a .mov file and worked to get a great balance between file size and quality so that I could deliver it via the web and make it easier for end users to see the video on a slower connection.
    My question: When I use "Export for Web," my .mov file is converted into a very large .m4v file--more than double the size of the original file. I know that this export option is to optimize the file for a wide variety of users/internet speeds. Am I correct in guessing that the end size is not an issue? I would post the .mov file instead, but I really like the option of embedding into a html page along with the "click to play" option.
    Bottom line--is it better to post the smaller .mov file that i originally started with or to go ahead and link to the bigger .m4v file that was created with the "Export for Web" option?

    "Export for Web" is a feature of QuickTime Pro and it makes 4 files and the html page code for easy copy/paste Web page editing.
    The very first file is called a "reference movie" and it links to the other 3 files (56kbps, 900kbps and 1.5Mbps). It, and the page code, "read" the connection speed of the viewing hardware and "serve up" the correct file based on that connection speed.
    In nearly all cases the "Desktop" version would still be smaller in file size than the original source. The times the file would "increase" in file size would be when an already compressed was used as the source file. You can find out more about your source file by opening it in QuickTime Player and viewing the Movie Inspector window information.
    There are dozens of other html "tricks" that could be used if your source file is already compressed but you want a different display size:
    Page code to show "aspect" or scale="tofit". This code allows values "outside" of those found in the actual QuickTime file be used for the Web page display. A 320X240 QuickTime .mov file looks pretty good at double size (640X480) but the file size would still be that of the source file.
    "Poster Movie" is another html trick that loads the Web based file directly in the QuickTime Player application (bypassing Web page layout restrictions). These files are also known as "Presentation Movies".
    Another method is the QuickTime Media Link file (.qtl). These are simple text based files that are used as a "direct link". These use simple XML (Extensible Markup Language) and are easily created in any text editing application. The simple syntax has amazing control over a simple QuickTime .mov file. You can launch (and quit) the QuickTime Player, display at other dimensions and even embed "links" inside the display.
    Some of my files as examples:
    http://homepage.mac.com/kkirkster/Lemon_Trees/ a "Poster Movie" style.
    http://homepage.mac.com/kkirkster/.Public/RedneckTexasChristmas.qtl
    A QuickTime Media Link file. A tiny file should download to the viewing machine, launch QuickTime Player, present the movie and it even includes a "link" to my Web page.
    Edit: It appears you must now double click the .qtl download to launch QuickTime.

  • Excel export & Layout feature for UI element table

    Hello,
      I have a requirement to implement Excel export and saving of user layout in webdynpro table. I am not using ALV table but table UI element. Please let me know how I can implement the same.
    Regards
    Nilanjan

    Let say you have button at table toolbar to export table data into excel. On click of this button you want to perform export:
    you need to convert the content of context node bounded to table into an xstring to be used for export to an external file.
    use following steps to convert your context node data into XSTRING
    1. Get reference to the wd table displaying the data
    2. Create header row for export
    3. Get columns of table
    4. Create export row with field names for excel header row
    5. Collect export attribute names
    6. Get your context node data
    7. Build your export string such that value of attributes in each line are separated by horizontal tab i.e. %_HORIZONTAL_TAB and all lines are separated by newline i.e. %_NEWLINE
    8. Once your export string is ready convert it into xstring using FM:
    CALL FUNCTION 'SCMS_STRING_TO_XSTRING'
        EXPORTING
          text   = lv_export_str
        IMPORTING
          buffer = xstring.
    9. Once XString is ready, use following method to export into yur file type:
    CALL METHOD cl_wd_runtime_services=>attach_file_to_response(
           I_FILENAME = 'exporttabledata.xls'
          I_CONTENT =  lv_xstring
          I_MIME_TYPE = 'EXCEL' ).

  • Question for Shane about Excel file

    Hi Shane,
    I was reading one of your blogs, and you mentioned that larry jordan has an excel file for timecode? Can you please give me the link where I can find that? I couldn't find it on his site.
    Thanks...

    Don't worry, I found it on his site, under Goodies...
    Thanks though !

  • How to freeze the columns in excel exported from SSRS report??

    We have created a report for our client. The client wants the report in excel format. As there are nearly about 30,000 rows in the excel. Client wants us to freeze the column header names in the excel so that even after scrolling down they
    will be able to see the column names.
    can anybody have idea how to achieve this in SSRS?

    Hi Shard,
    Thanks for your post, You can achive your requiremets by using the below logic. hope this will help you.
    Steps to achieve it
    1. Select the tabix and click on Tablix properties.
    2. In the General tab under Column Headers section you can see "Keep header visible while scrolling" checkbox, check it.
    3. Now the header row will be remain fixed in the report.
    OR
    1.    In the grouping pane, make sure to turn on advanced mode (click on the small black down arrow on the far right of the grouping pane) 
    2.  Select the corresponding (Static) item in the row group hierarchy
    3.  In the properties grid, set RepeatOnNewPage to true
    4. KeepwithGroup to After
    OR
    1)Freeze the header of all columns[ Freezing table header ] : To do select static member of table header row from  row groups [ Advanced Mode ] and set  FixedData to true
    2) Freeze the initial 2 columns : To do select static member of columns in column group and set fixedData to true .
    How do you freeze the tablix header row in an Excel export file in SSRS 2008
    Suhas Kudekar
    Mark as Answer if this resolves your problem or "Vote as Helpful" if you find it helpful.
    My Blog
    Follow @SuhasKudekar

  • Crystal Reports 2008 Excel Export Compatibility Patch - second attempt :)

    Hello, I actually have a question related to the following thread, so I posted there and was recommended to start a new thread:
    Crystal Reports 2008 Excel Export Compatibility Patch?
    Question is related to the following doc, specifically, is this patch still available for CR 2008 or not?:
    http://help.sap.com/businessobject/product_guides/cr2008V1/en/xi3_cr2008eecp_readme_en.pdf
    A response from Don suggested this wasnt available for CR 2008 although this is confusing since the doc refers to CR 2008. My response was as follows and is essentially the question I still have (more so because we have another PeopleSoft/Oracle customer whos come across this doc and wants to know how to apply the fix for CR 2008). Thanks very much in advance!
    Hi Don, I know this is an old thread, but Im also running into the same issue and am confused by your statement since the referenced PDF doc says this patch is available for CR 2008. Did you mean that the patch is no longer available or supported for CR 2008 for some reason? If so, any idea why?
    Im a developer for Oracle/PeopleSoft and our PeopleSoft suite includes OEM Crystal. We recently upgraded to CR 2008 for our latest release and we are getting the same complaint from a few customers about not being able to output the XLS in Excel 8.0 compatiibility mode like before (In Crystal 9, we used the \Export\Excel\CompatVersion=80 registry key to enable this). So if this patch is available, it would be a huge benefit for us to be able to point our customers to it. If not, please still let me know eitherway.
    Thanks very much!
    Andrew

    Hi Andrew,
    So the story is the Rubik's patch has been available from CR 9 up until CR XI R1 as a simple download. In R2 and above to get it you have to log a case, work with a Report Rep to try to design your reports so they use the new export dll. To get you by until you have time to do so, and after filling out a query for the PM to get info on how to possibly improve the updated export dll to meet your needs, he will then send you the patch on the agreement that this is the LAST time you ask for it.
    Support no longer has access to the patch so all requests must go through the Program Manager who keeps tract of who received it.
    Bottom line is you need to update the reports to use the new export model.
    That old legacy dll was bugging and impossible to maintain.
    You can [purchase a support case here|http://store.businessobjects.com/store/bobjamer/DisplayProductByTypePage&parentCategoryID=&categoryID=54722300].
    This is not a bug and has been this way for 10 years now, time to update your export model and Excel Macro's....
    Thank you for your understanding
    Don

  • Web Template 3.x - Excel Export

    Hello experts,
    how can I add some kind of "Excel-Export-Button" in a Web Template 3.x ?
    In WAD 7.0 there is this function, but what about WAD 3.x?
    Thanks in advance.

    Hi,
    Create a new web template with reference of 0ANALYZER or 0WEBANALYZER. In this you will find the option for export to excel.
    Else you can copy the HTML code from the template for Export excel option.
    Hope this helps...
    Rgs,
    Ravikanth.Indurthi

  • OBI 11g excel export issue

    Hi,
    I have a report where on taking an excel export, the last column header appears without border and cell color.
    Could someone suggest which system files to look into to resolve this??
    Regards.

    i'm using 11.1.1.5 and i have been reading about a lot of bug in this version, specially with excel exports and formats. So i suppose we need to apply a consolidated patch to get over this. Any idea whats the patch id ? is it going to be a good idea to convince the client for an upgrade to 11.1.1.6 ?? what are the pros and cons in this action stated?
    Regards.

Maybe you are looking for