Issue in Export to Excel on Prod Environment

Hello friends,
I am facing a strange issue while doing an export to excel from WD table only in a production environment. The code works fine in dev and qa systems. the only difference is the lanscape where the production server is clustered wheras the other servers are of single node. The code i use to do the export is as below.
..get byte data
Resource= WDResourceFactory.createResource(new ByteArrayInputStream(tabledata_byte),fileName,WDWebResourceType.XLS,true);
wdContext.currentContextElement().setTableResource(Resource);
IWDWindow window = wdComponentAPI.getWindowManager().createNonModalExternalWindow(Resource.toString(),"Excel Window");
window.show();
Kindly let me know if there is anything to be done in a clustered environment to make it work.
Regards,
Karthikeyan R

Dear Karthikeyan,
I was also facing the same issue, and the reason was the diifferrence in the protocol of the J2EE WAS and that of Diapatcher.
check whether J2EE WAS and that of Diapatcher are both on http or on https. If they both are not same, that's the issue.
Hope it helps!!
Warm Regards,
Upendra Agrawal

Similar Messages

  • Issue with export in Excel in WAD

    Hi
    I have an issue with export to excel in WAD. I have a web template with two or more tabs.
    On the webtemplate I have two buttons to export to excel. One to export the content from the active tab and one button to export content in all tabs.
    My problem is that when I export to excel it always add the current/active content twice. I've tried with both buttons and they work as expected except that they export one table to much (the active).
    can anyone help / give a clue what to look for.
    br,
    John
    Edited by: John Dolph on Apr 15, 2010 10:50 AM

    Hi
    Sorry I has been a while but the problem still occurs,
    I've defined my export button group like this in a seperate template and I expected that it would only return the resultset from TAB_A and TAB_B but it also export the resultset from the tab I'm currently on.
    <bi:TEMPLATE_PARAMETERS name="TEMPLATE_PARAMETERS" />
                <bi:BUTTON_GROUP_ITEM name="TAB_BUTTONs" designheight="23" designwidth="300" >
                    <bi:BUTTON_LIST type="ORDEREDLIST" >
                        <bi:BUTTON type="COMPOSITE" index="2" >
                            <bi:CAPTION value="EXCEL" />
                            <bi:TOOLTIP value="Table, Graph and/or Table/Graph download to PDF" />
                            <bi:ACTION type="CHOICE" value="INSTRUCTION" >
                                <bi:INSTRUCTION >
                                    <bi:EXPORT >
                                        <bi:ITEM_REF_LIST type="UNORDEREDLIST" >
                                            <bi:ITEM_REF index="1" value="TAB_A_ANALYSIS" />
                                            <bi:ITEM_REF index="2" value="TAB_A_CHART" />
                                            <bi:ITEM_REF index="3" value="TAB_B_ANALYSIS" />
                                            <bi:ITEM_REF index="4" value="TAB_B_CHART" />
                                        </bi:ITEM_REF_LIST>
                                        <bi:EXPORT_FORMAT value="XLS" />
                                    </bi:EXPORT>
                                </bi:INSTRUCTION>
                            </bi:ACTION>
                        </bi:BUTTON>

  • SSRS 2012 Conditional Formatting Color Issues When Exporting to Excel

    Hi all,
    We recently upgraded to SQL 2012 from SQL2008 R2. I'm having a strange issue with SSRS2012.
    One of the report has conditional formattings on cell background colors. Everything works fine when render the report in browser or preview mode. However, the conditional formatting stop working when export the report to Excel (no issues if
    export to pdf). All cells are high-lightened with pre-defined color although it should only high-lighten those cells that fulfil the condition.
    Has someone encountered this issue before ? Thanks for any help.

    Hi ZZ02,
    I have test the scenario in my testing environment, however, everything goes well when exporting to Excel format. The issue might be related to the expression for the conditional background color. To make further analysis, please post the expression as well
    as the report design structure.
    Additionally, in SQL Server 2012 Reporting Services, the Excel rendering extension renders a report to the native format of Microsoft Excel 2007-2010, the format of which is ExcelOpenXML. By default, the previous version of the Excel rendering extension,
    compatible with Microsoft Excel 2003, is disabled. At this time, I suggest that you enable the Excel 2003 rendering extension by modifying the RSReportServer.config file. After that, the Excel 2003 rendering format will be available on report manager (not
    available in Report Designer). So, please export the report from report manager and check the result again.
    For more information about enable the Excel 2003 rendering extension, please see:
    http://social.msdn.microsoft.com/Forums/en/sqlreportingservices/thread/0713de27-dcc0-4e51-81ac-5272647d171f
    Regards,
    Mike Yin
    TechNet Subscriber Support
    If you are
    TechNet Subscription user and have any feedback on our support quality, please send your feedback
    here. 
    Mike Yin
    TechNet Community Support

  • SSRS 2012 background color format by expression issue when exporting to Excel.

    We are using SSRS 2012. We have a report that conditionally formats a background color for some cells. The report renders properly in a browser and in Excel 2003 format. In Excel format all cells after the first one that meets the condition are highlighted,
    even if only one cell should.
    The sample expression that triggers this condition looks like this:
    =IIF(Fields!VIOL_NOTE.Value="Internal","Green","No Color")
    All cells after the first one that meets the condition Fields!VIOL_NOTE.Value="Internal" have a green background.
    Excel 2003 (proper) results:
    Excel (improper) results:
    Zenon

    Hi Zenon,
    Based on your description, I try to reproduce the issue in my test environment, however it is work well. After export the report to Excel and Excel 2003, I can get exact same result when open the Excel file in Excel 2010.
    Did you open the repot in Excel 2003 or Excel 2007-2010? Please post more deatils, so we can help to work out this issue.
    Regards,
    Fanny Liu
    If you have any feedback on our support, please click
    here.
    Fanny Liu
    TechNet Community Support

  • Issue with Export To Excel Feature

    Hi,
    I have a OAFramework Page, which is having a table region. Have also created an 'Export Button' as table action for this table, to export the data to csv file. The View Instance that is associated with this table has a query already set/defined in the VO definition, in my code based on certain conditions I am changing the view object's query using setQuery() Method.
    The data displayed in table changes as per the query modifications, however the data that I get in the Excel/csv file is the same (i.e. the same data i get with the query already defined while creating the view object).
    Any idea, what changes i need to make inorder to make this work? Guess the query changes are not getting reflected for the export button click?
    Thanks
    Puja

    Yes, whenever this VO is accessed, you will face the performance issue. As VOs' are maintained through AM pool, until the AM is released, the corrsponding VO's memory foot print will be there in the middle tier.
    And if you have less resourse at middle time, it surely will affect other users because someone else is hogging the resource.
    --Saroj                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

  • Crystal Report Viewer | Issue Default Exporting to Excel

    hi,
            if any 1 of the column is empty in the report then when exported to the excel the null valued column value is printed by the next column.
    For example if i have  columns such as A,B,C and B has null values, then B is replaced by c.
    Is this a bug?
    Thanks and regards,
    Dhinesh B

    Editable RTF, because of the static nature of header and footer information, has restrictions on field display mapping Crystal page numbering to Word page numbering.
    RTF export does not, since header and footer information is not placed in header and footer, but in the body itself as static text.
    Sincerely,
    Ted Ueda

  • C#/SharePoint -View State related issue while exporting data to excel

    We have web application based on SharePoint. We have a list view to display data based on Search Criteria. We have total of around 16000 data. When we try to export all data to excel it gives an error. The cause of the issue is:
    View State is used to save the state of page i.e. the previous state. When the export to excel link is clicked, the data present in the grid is actually saved in view state so that the overhead of again generating
    the data(as per the selection criteria) can be avoided. Now, this View state has a limitation of storage of these records. When we put in some selection criteria, the no. of records is less hence no problem in actually storing the view state. But when there
    is no selection criteria, 16306 records are too much to be stored in view state. Hence the error occurs.
    We tried to solve this issue by creating a compressor class and overriding two methods:
     LoadPageStateFromPersistenceMedium
    SavePageStateToPersistenceMedium
    This has resolved the issue with Export to Excel. However, there is now some issue in the paging of the list view. The list view has a column with hyperlink which opens related data in a form. While we click on the link in 2<sup>nd</sup>
    page of the list view, it displays data for the link in the 1<sup>st</sup> page at same row.
    Please suggest how to resolve this issue or any workaround for this

    We have web application based on SharePoint. We have a list view to display data based on Search Criteria. We have total of around 16000 data. When we try to export all data to excel it gives an error. The cause of the issue is:
    View State is used to save the state of page i.e. the previous state. When the export to excel link is clicked, the data present in the grid is actually saved in view state so that the overhead of again generating
    the data(as per the selection criteria) can be avoided. Now, this View state has a limitation of storage of these records. When we put in some selection criteria, the no. of records is less hence no problem in actually storing the view state. But when there
    is no selection criteria, 16306 records are too much to be stored in view state. Hence the error occurs.
    We tried to solve this issue by creating a compressor class and overriding two methods:
     LoadPageStateFromPersistenceMedium
    SavePageStateToPersistenceMedium
    This has resolved the issue with Export to Excel. However, there is now some issue in the paging of the list view. The list view has a column with hyperlink which opens related data in a form. While we click on the link in 2<sup>nd</sup>
    page of the list view, it displays data for the link in the 1<sup>st</sup> page at same row.
    Please suggest how to resolve this issue or any workaround for this

  • Export to excel sizing issue

    Hi there,
    we are facing a weired issue when using export to excel from the query output, we have notice that while we save the excel it is getting saved as a HUGE file irrespective of the data volume.
    For ex:our report has 1100 records, but when we export to excel it got saved as a 7MB file..
    However when we save the file as CSV, it work okay.. wondering why are we facing an issue while export to excel ?? Is there any way that we can set the Excel format options in query output??
    I've tried searching in forums, couldn't find the solutions, Please could any one throw some light on this??
    Regards,
    J

    Hello,
    The reason for the increase in size is discussed in SAP Note 1178857.
    "The export to Excel function is supported as of Excel 2003. It generates an XHTML file in the Multi Mime format. This means that
    Mimes (for example, icons and screens) are stored in the file. Therefore, as opposed to the BW 3.X function, you do not need to
    logon to Excel again to download, for example, icons for hierarchy nodes. If you want to save the report after the export, Excel proposes the file format MHT or MHTML. This corresponds with the Multi Mime format of the generated file."
    So, I think you already know this....
    Possible solutions are:
    1) Use open hub instead.
    2) Design BI Workbooks individually for your queries and distribute them to Portal using a precalculated server. This will
    help in reducing the file size and distribute the precalculated results in simpler way. You can refer to following documentation in this regard.
    http://help.sap.com/saphelp_nw70/helpdata/en/05/0e044017355c0ce10000000a1550b0/frameset.htm
    Regards,
    Michael

  • Issue with exporting line to excel on Crystal Report 2013

    Hi all,
    I got the issue when exporting to Excel
    I would like to export to excel with line border in cells. But it seems there is limitation when using "line" object. If I use line, in excel file, there is nothing. Then I changed to use border cells. It's exported fine to excel, but I got another issue.
    Because data is so long, so I use "can growth" function. But if I use "can growth" function. I got issue when export to excel file like the picture I attach here.
    There are a lot of empty cells when wrapping text, how can we remove empty cells? And the line was drawn incorrectly.
    Thanks so much.

    I need a report with border cell and do not merge cell or blank row/cell after exporting to Excel. Most of them are fine (using border cell instead of line object). But I got issue when using "CanGrow" option to extend height of text object automatically.
    Below is detail.
    1. If the "CanGrow" option is false
    - In preview report, the field does not extend the height to show all data if it is over
    - Then, export to Excel by "Microsoft Excel (97-2003)"=> it shows exactly what I saw in previewing (data has been truncated automatically).
    - If export to Excel by "Microsoft Excel (97-2003) Data only" => it shows all data but the formatting of cell (border, width) is missing
    2. If the "CanGrow" option is true
    - In preview report, the field extends automatically if the field is too long but other fields still remain
    - Then, export to Excel
    I expect I can see all data with the correct border cell and do not merge cell in the preview and Excel (the cell may be wrap text or not if it is over the size but the data need to be kept instead of truncating)
    Is there any solution to meet it?
    Many thanks.

  • Output from Web Analysis Related Content will not Export to Excel

    I have Web Analysis reports, data in which is sourced from an EIS database. I have drill thru reports that are accessible from "Related Content". The resulting report is created fine, but cannot be exported into Excel. Specifically, I'm prompted for the location of Excel on my pc. Once I browse to it, it will open in Excel.
    I have upgraded from Office 10 to Office 12, although I cannot say for certain that is when this problem started occurring.
    Secondly, there are no other BI+ issues with export to Excel. For example, FR and WA export fine. The ExcelPath in the webanalysis.properties file takes care of that. I'm hoping there is something similar to update for this problem.
    Thanks for reading, hopefully someone else has encountered this and successfully resolved. BI+ version is 9.3.1.

    Have you tried the print button in the web analyzer it does export the input filter parameters as part of the exported PDF document.
    You can include any additional text elements and use a custom export template if required.

  • 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                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

  • Reports exported to Excel - Formatting issues

    We have two Business Objects Enterprise servers (boxi r2 and boxi r3.1 sp3) running side by side.  We find that reports created using boxi r2 and exported to Excel format look fine.  When we run the same report and export to excel using boxi r3.1 sp3, we encounter the following formatting issues:
    <ol>
    <li>All columns do not fit on pages.  The last 2 to 3 columns spill over onto extra pages.</li>
    <li>There are some columns where most of the values are blank, but when a row is exported that has a value in that column, all subsequent column positions for that row shift.</li>
    <li>All rows do not fit on page.  The last two rows flow onto a new page, then there seems to be a page break.</li>
    <li>On some reports dates are displayed as ######.</li>
    <li>On some reports column headings are  not centered.</li>
    <li>I would appreciate any input that would help us determine a fix for the formatting issues we are encountering.</li>
    </ol>
    The report is executed using CrystalDecisions.CrystalReports.Engine.
    Here is the code from the application that does the export:
                                ExportOptions exportOptions = new ExportOptions();
                                exportOptions.ExportFormatType = ExportFormatType.Excel;
                                exportOptions.ExportDestinationType = ExportDestinationType.DiskFile;
                                DiskFileDestinationOptions diskOptions = new DiskFileDestinationOptions();
                                diskOptions.DiskFileName = filename + ".xls";;
                                exportOptions.ExportDestinationOptions = diskOptions;
                                ExcelFormatOptions XLOptions = new ExcelFormatOptions();
                                XLOptions.ExportPageBreaksForEachPage = true;
                                XLOptions.ExportPageHeadersAndFooters = ExportPageAreaKind.OnEachPage;                           
                                exportOptions.ExportFormatOptions = XLOptions;
                                rptDoc.Export(exportOptions);
    Please note the following details about our environment:
    <h5>Report Designers:</h5>CR Designer version:  xi Rel 2
    <h5>Developer environment</h5>Has the following installed:
    - Business Objects Enterprise XI Release 2
    - VS .Net  2008
    - Crystal reports Basic for Visual Studio 2008
    - Crystal Report 2008 Runtime SP3
    - Boxi .Net SDK
    - SAP BusinessObjects Enterprise XI 3.1 Client Tools sp3
    - .Net Version:  2.0
    <h5>Crystal Server environment:</h5>Two clustered  Business Objects Enterprise servers with the following installed & configured
    - Business Objects Enterprise XI Release 2
    - Crystal Reports XI Release 2
    - SAP BusinessObjects Enterprise XI 3.1 SP3
    - .Net Version:  2.0
    <h5>Web Servers:</h5>Two load balanced web servers with the following installed and configured
    - Business Objects Enterprise XI Release 2
    - Crystal Report 2008 Runtime SP3
    - Crystal Reports XI Release 2 .Net 2005 Server
    - SAP BusinessObjects Enterprise XI 3.1 SP3
    - .Net Version:  2.0

    Umm, the code you provided has nothing to do with Business Objects Enterprise...(?). So, I'm a bit confused by the mention of BOE and "The report is executed using CrystalDecisions.CrystalReports.Engine" in essentially one paragraph.
    Can you pls explain?
    - Ludek

  • Export to excel - Formatting issue - OBIEE 11.1.1.5

    Hi All,
    When an analysis is exported to Excel, some of the values are showing some strange behaviour i.e. some values are multiplied by some huge number as you can see in the excel screenshot below.
    BI Analysis Screenshot:
    http://i44.tinypic.com/331eopf.jpg
    Excel Screenshot:
    http://i44.tinypic.com/34snqko.jpg
    Is this BI issue or an Excel setup issue? And how to fix it?
    Thanks in advance.

    Hi,
    We too faced the similar issue.
    We tried ROUND function and it was coming with proper formatting.
    Try and let me know further.
    Regards,
    MuRam
    NOTE: Please mention if this resolved your problem/still facing and close the thread to assist others with similar problems.

  • Export to excel issue

    Hi All,
    Kindly help me in solving this issue.
    Portals report layouts can be customized. When the user chooses to export
    the customized reports to Excel, only the standard layout (hard coded
    layout for each report) is exported to Excel and all the customized columns
    are not exported.
    C&RM is planning to use the portals aging report for performance metrics,
    collection and identifying the over 90 items for collection rep. The
    standard layout for the portals aging report is missing the BP# and
    Collection rep name.
    Choosing right click, select all and copying to Excel, the format of the
    report is lost.
    Herewith I am attaching the code which needs modification.
    // This file has been generated partially by the Web Dynpro Code Generator.
    // MODIFY CODE ONLY IN SECTIONS ENCLOSED BY @@begin AND @@end.
    // ALL OTHER CHANGES WILL BE LOST IF THE FILE IS REGENERATED.
    package com.zurich.fscd;
    // IMPORTANT NOTE:
    // ALL IMPORT STATEMENTS MUST BE PLACED IN THE FOLLOWING SECTION ENCLOSED // BY @@begin imports AND @@end. FURTHERMORE, THIS SECTION MUST ALWAYS CONTAIN // AT LEAST ONE IMPORT STATEMENT (E.G. THAT FOR IPrivateExportexView).
    // OTHERWISE, USING THE ECLIPSE FUNCTION "Organize Imports" FOLLOWED BY // A WEB DYNPRO CODE GENERATION (E.G. PROJECT BUILD) WILL RESULT IN THE LOSS // OF IMPORT STATEMENTS.
    //@@begin imports
    import java.util.HashMap;
    import java.util.Iterator;
    import java.util.LinkedHashMap;
    import java.util.Map;
    import java.util.StringTokenizer;
    import com.sap.tc.webdynpro.modelimpl.dynamicrfc.WDDynamicRFCExecuteException;
    import com.sap.tc.webdynpro.progmodel.api.IWDAttributeInfo;
    import com.sap.tc.webdynpro.progmodel.api.IWDMessageManager;
    import com.sap.tc.webdynpro.progmodel.api.IWDNode;
    import com.sap.tc.webdynpro.progmodel.api.IWDNodeElement;
    import com.sap.tc.webdynpro.services.sal.adapter.api.WDWebContextAdapter;
    import com.sap.tc.webdynpro.services.sal.url.api.IWDCachedWebResource;
    import com.sap.tc.webdynpro.services.sal.url.api.WDURLException;
    import com.sap.tc.webdynpro.services.sal.url.api.WDWebResource;
    import com.sap.tc.webdynpro.services.sal.url.api.WDWebResourceType;
    import com.zurich.fscd.wdp.IPrivateExportexView;
    //@@end
    //@@begin documentation
    //@@end
    public class ExportexView
    Logging location.
      private static final com.sap.tc.logging.Location logger =
        com.sap.tc.logging.Location.getLocation(ExportexView.class);
      static
        //@@begin id
        String id = "$Id$";
        //@@end
        com.sap.tc.logging.Location.getLocation("ID.com.sap.tc.webdynpro").infoT(id);
    Private access to the generated Web Dynpro counterpart
    for this controller class.  </p>
    Use <code>wdThis</code> to gain typed access to the context,
    to trigger navigation via outbound plugs, to get and enable/disable
    actions, fire declared events, and access used controllers and/or
    component usages.
    @see com.zurich.fscd.wdp.IPrivateExportexView for more details
      private final IPrivateExportexView wdThis;
    Root node of this controller's context. </p>
    Provides typed access not only to the elements of the root node
    but also to all nodes in the context (methods node<i>XYZ</i>())
    and their currently selected element (methods current<i>XYZ</i>Element()).
    It also facilitates the creation of new elements for all nodes
    (methods create<i>XYZ</i>Element()). </p>
    @see com.zurich.fscd.wdp.IPrivateExportexView.IContextNode for more details.
      private final IPrivateExportexView.IContextNode wdContext;
    A shortcut for <code>wdThis.wdGetAPI()</code>. </p>
    Represents the generic API of the generic Web Dynpro counterpart
    for this controller. </p>
      private final com.sap.tc.webdynpro.progmodel.api.IWDViewController wdControllerAPI;
    A shortcut for <code>wdThis.wdGetAPI().getComponent()</code>. </p>
    Represents the generic API of the Web Dynpro component this controller
    belongs to. Can be used to access the message manager, the window manager,
    to add/remove event handlers and so on. </p>
      private final com.sap.tc.webdynpro.progmodel.api.IWDComponent wdComponentAPI;
      public ExportexView(IPrivateExportexView wdThis)
        this.wdThis = wdThis;
        this.wdContext = wdThis.wdGetContext();
        this.wdControllerAPI = wdThis.wdGetAPI();
        this.wdComponentAPI = wdThis.wdGetAPI().getComponent();
      //@@begin javadoc:wdDoInit()
      /** Hook method called to initialize controller. */
      //@@end
      public void wdDoInit()
        //@@begin wdDoInit()
         IWDCachedWebResource cachedExcelResource = null;
         String fileName = "Items.xls";
         byte[] bytes ;
         IWDAttributeInfo attInfo = wdContext.getNodeInfo().getAttribute("ExcelDownload");   
         IWDMessageManager manager = wdComponentAPI.getMessageManager();
         try{
              String reporttype = WDWebContextAdapter.getWebContextAdapter().getRequestParameter("reporttype" ) ;
              if (reporttype == null) {
                   reporttype = GC_REPORTTYPE_BPACCTSTAT_CARM;
              Object level = WDWebContextAdapter.getWebContextAdapter().getRequestParameter("level" ) ;
              if (level == null){
                   level = "";
              Object paramname = WDWebContextAdapter.getWebContextAdapter().getRequestParameter("app.paramname" ) ;
              Object paramvalue = WDWebContextAdapter.getWebContextAdapter().getRequestParameter("app.paramvalue" ) ;
              if (paramname == null){
                   paramname = "";
              if (paramvalue == null){
                   paramvalue = "";
              if (reporttype.equals(GC_REPORTTYPE_OPENITEMS_SUMM)) {
                   wdContext.currentZ_Rm_Get_Open_Items_ResultsElement().setI_Reporttype("S");
                   wdContext.currentZ_Rm_Get_Open_Items_ResultsElement().modelObject().execute();
                   wdContext.nodeOutputOI().invalidate();
                   bytes = toExcel(wdContext.nodeEt_Mas(),getColumnInfosAOISUMM()).getBytes();
                   cachedExcelResource = this.getCachedWebResource(bytes, fileName, WDWebResourceType.XLS);
              } else if (reporttype.equals(GC_REPORTTYPE_OPENITEMS_DET)) {
                   wdContext.currentZ_Rm_Get_Open_Items_ResultsElement().setI_Reporttype("A");
                   wdContext.currentZ_Rm_Get_Open_Items_ResultsElement().modelObject().execute();
                   wdContext.nodeOutputOI().invalidate();               
                   bytes = toExcel(wdContext.nodeEt_Detail(),getColumnInfosAOIDet()).getBytes();
                   cachedExcelResource = this.getCachedWebResource(bytes, fileName, WDWebResourceType.XLS);
              } else if (reporttype.equals(GC_REPORTTYPE_BPACCTSTAT_BU)) {
                   wdContext.currentZ_Rm_Bpacctstat_Bu_Get_ResultsElement().setI_Level(level.toString());
                   wdContext.currentZ_Rm_Bpacctstat_Bu_Get_ResultsElement().setI_Paramname(paramname.toString());
                   wdContext.currentZ_Rm_Bpacctstat_Bu_Get_ResultsElement().setI_Paramvalue(paramvalue.toString());
                   wdContext.currentZ_Rm_Bpacctstat_Bu_Get_ResultsElement().modelObject().execute();
                   wdContext.nodeOutput().invalidate();
                   bytes = toExcel(wdContext.nodeEt_Bu1(),getColumnInfosBU()).getBytes();
                   cachedExcelResource = this.getCachedWebResource(bytes, fileName, WDWebResourceType.XLS);
              } else if (reporttype.equals(GC_REPORTTYPE_BPACCTSTAT_CARM)) {
                   wdContext.currentZ_Rm_Bpaccstat_Ca_Get_ResultsElement().setI_Level(level.toString());
                   wdContext.currentZ_Rm_Bpaccstat_Ca_Get_ResultsElement().setI_Paramname(paramname.toString());
                   wdContext.currentZ_Rm_Bpaccstat_Ca_Get_ResultsElement().setI_Paramvalue(paramvalue.toString());
                   wdContext.currentZ_Rm_Bpaccstat_Ca_Get_ResultsElement().modelObject().execute();
                   wdContext.nodeOutputCRM().invalidate();
                   bytes = toExcel(wdContext.nodeEt_Carm1(),getColumnInfosCARM()).getBytes();
                   cachedExcelResource = this.getCachedWebResource(bytes, fileName, WDWebResourceType.XLS);
              } else if (reporttype.equalsIgnoreCase(GC_REPORTTYPE_RMETRICS_EFDBID)) {
                   //wdContext.currentZ_Rm_Rmetrics_Get_ResultsElement().setI_Reportlevel("1");
                   wdContext.currentZ_Rm_Rmetrics_Get_ResultsElement().setI_Reporttype("1");
                   wdContext.currentZ_Rm_Rmetrics_Get_ResultsElement().modelObject().execute();
                   wdContext.nodeOutputRmetr().invalidate();
                   bytes = toExcel(wdContext.nodeEt_Efdbid(),getColumnInfosRMETRICS1()).getBytes();
                   cachedExcelResource = this.getCachedWebResource(bytes, fileName, WDWebResourceType.XLS);
              } else if (reporttype.equalsIgnoreCase(GC_REPORTTYPE_RMETRICS_EFDBOD)) {
                   //wdContext.currentZ_Rm_Rmetrics_Get_ResultsElement().setI_Reportlevel("1");
                   wdContext.currentZ_Rm_Rmetrics_Get_ResultsElement().setI_Reporttype("2");
                   wdContext.currentZ_Rm_Rmetrics_Get_ResultsElement().modelObject().execute();
                   wdContext.nodeOutputRmetr().invalidate();
                   bytes = toExcel(wdContext.nodeEt_Efdbod(),getColumnInfosRMETRICS2()).getBytes();
                   cachedExcelResource = this.getCachedWebResource(bytes, fileName, WDWebResourceType.XLS);
              } else if (reporttype.equalsIgnoreCase(GC_REPORTTYPE_RMETRICS_PADDUD)) {
                   //wdContext.currentZ_Rm_Rmetrics_Get_ResultsElement().setI_Reportlevel("1");
                   wdContext.currentZ_Rm_Rmetrics_Get_ResultsElement().setI_Reporttype("3");
                   wdContext.currentZ_Rm_Rmetrics_Get_ResultsElement().modelObject().execute();
                   wdContext.nodeOutputRmetr().invalidate();
                   bytes = toExcel(wdContext.nodeEt_Paddud(),getColumnInfosRMETRICS3()).getBytes();
                   cachedExcelResource = this.getCachedWebResource(bytes, fileName, WDWebResourceType.XLS);
              } else if (reporttype.equalsIgnoreCase(GC_REPORTTYPE_RMETRICS_BIDBOD)) {
                   //wdContext.currentZ_Rm_Rmetrics_Get_ResultsElement().setI_Reportlevel("1");
                   wdContext.currentZ_Rm_Rmetrics_Get_ResultsElement().setI_Reporttype("4");
                   wdContext.currentZ_Rm_Rmetrics_Get_ResultsElement().modelObject().execute();
                   wdContext.nodeOutputRmetr().invalidate();
                   bytes = toExcel(wdContext.nodeEt_Bidbod(),getColumnInfosRMETRICS4()).getBytes();
                   cachedExcelResource = this.getCachedWebResource(bytes, fileName, WDWebResourceType.XLS);
              } else if (reporttype.equalsIgnoreCase(GC_REPORTTYPE_RMETRICS_DETAIL)) {
                   //wdContext.currentZ_Rm_Rmetrics_Get_ResultsElement().setI_Reportlevel("2");
                   //wdContext.currentZ_Rm_Rmetrics_Get_ResultsElement().setI_Reporttype("1");
                   wdContext.currentZ_Rm_Rmetrics_Get_ResultsElement().modelObject().execute();
                   wdContext.nodeOutputRmetr().invalidate();
                   bytes = toExcel(wdContext.nodeEt_Metdet(),getColumnInfosRMETRICSD()).getBytes();
                   cachedExcelResource = this.getCachedWebResource(bytes, fileName, WDWebResourceType.XLS);
              } else if (reporttype.equalsIgnoreCase(GC_REPORTTYPE_WRITEOFF)) {
                   wdContext.currentZ_Rm_Writeoff_Get_ResultsElement().setI_Reportlevel("1");
                   wdContext.currentZ_Rm_Writeoff_Get_ResultsElement().setI_Reporttype("4");
                   wdContext.currentZ_Rm_Writeoff_Get_ResultsElement().modelObject().execute();
                   wdContext.nodeOutputWoff().invalidate();
                   bytes = toExcel(wdContext.nodeEt_Writeoff1(),getColumnInfosWRITEOFF()).getBytes();
                   cachedExcelResource = this.getCachedWebResource(bytes, fileName, WDWebResourceType.XLS);
              if (cachedExcelResource != null) {
                wdContext.currentContextElement().setExcelDownload(cachedExcelResource.getURL());
         } catch(WDDynamicRFCExecuteException ce) {
              manager.reportException(ce.getMessage(), false);
         } catch (WDURLException ce) {
              manager.reportException(ce.getMessage(), false);
         } catch (Exception ce) {
              manager.reportException(ce.getMessage(), false);
        //@@end
      //@@begin javadoc:wdDoExit()
      /** Hook method called to clean up controller. */
      //@@end
      public void wdDoExit()
        //@@begin wdDoExit()
        //@@end
      //@@begin javadoc:wdDoModifyView
    Hook method called to modify a view just before rendering.
    This method conceptually belongs to the view itself, not to the
    controller (cf. MVC pattern).
    It is made static to discourage a way of programming that
    routinely stores references to UI elements in instance fields
    for access by the view controller's event handlers, and so on.
    The Web Dynpro programming model recommends that UI elements can
    only be accessed by code executed within the call to this hook method.
    @param wdThis Generated private interface of the view's controller, as
           provided by Web Dynpro. Provides access to the view controller's
           outgoing controller usages, etc.
    @param wdContext Generated interface of the view's context, as provided
           by Web Dynpro. Provides access to the view's data.
    @param view The view's generic API, as provided by Web Dynpro.
           Provides access to UI elements.
    @param firstTime Indicates whether the hook is called for the first time
           during the lifetime of the view.
      //@@end
      public static void wdDoModifyView(IPrivateExportexView wdThis, IPrivateExportexView.IContextNode wdContext, com.sap.tc.webdynpro.progmodel.api.IWDView view, boolean firstTime)
        //@@begin wdDoModifyView
        //@@end
    The following code section can be used for any Java code that is
    not to be visible to other controllers/views or that contains constructs
    currently not supported directly by Web Dynpro (such as inner classes or
    member variables etc.). </p>
    Note: The content of this section is in no way managed/controlled
    by the Web Dynpro Designtime or the Web Dynpro Runtime.
      //@@begin others
      private String trimHeaderText(String headerText) {
         StringBuffer newHeaderText = new StringBuffer();
         String token;
         StringTokenizer tokenizer = new StringTokenizer(headerText.trim());
         while (tokenizer.hasMoreTokens()) {
           token = tokenizer.nextToken();
           newHeaderText.append(token.substring(0, 1).toUpperCase());
           newHeaderText.append(token.substring(1).toLowerCase());
         return newHeaderText.toString();
      private void trimHeaderTexts(Map columnInfos) {
         String attributeName, trimmedHeaderText;
         for (Iterator iter = columnInfos.keySet().iterator(); iter.hasNext();) {
           attributeName = (String) iter.next();
           String attributeValue = (String) columnInfos.get(attributeName);
           attributeValue.replace('&','-');
           attributeValue.replace('/','-');
           trimmedHeaderText = trimHeaderText(attributeValue);
           columnInfos.put(attributeName, trimmedHeaderText);
      private String toExcel(IWDNode dataNode, Map columnInfos) {
         StringBuffer x = new StringBuffer();
         String attributeName, headerName;
         String entriesName = "I"; //dataNode.getNodeInfo().getName();
         String entryName = entriesName + "";
         // trim given header texts, so that XML element names adhere to the rule 'no spaces contained'.    
         trimHeaderTexts(columnInfos);
         x.append("<?xml version='1.0' encoding='UTF-8' standalone='no'?>\n");
         x.append("<").append(entriesName).append(">\n");
         for (int i = 0; i < dataNode.size(); ++i) {
           IWDNodeElement dataNodeElement = dataNode.getElementAt(i);
           x.append("<").append(entryName).append(">\n");
           for (Iterator iter = columnInfos.keySet().iterator(); iter.hasNext();) {
              attributeName = (String) iter.next();
              headerName = (String) columnInfos.get(attributeName);
              String colVal = (String)dataNodeElement.getAttributeAsText(attributeName);
              //colVal = colVal.replace(' ','');
              colVal = colVal.replace('&','-');
              colVal = colVal.replace('<','L');
              colVal = colVal.replace('>','G');
              colVal = colVal.replace('/','-');
              x
                .append("<")
                .append(headerName)
                .append(">")
                .append(""+colVal)
                .append("</")
                .append(headerName)
                .append(">\n");
           x.append("</").append(entryName).append(">\n");
         x.append("</").append(entriesName).append(">\n");
         return x.toString();
      private String replaceSpecialChars(String inputString){
         String outputString = inputString;
         outputString.replace('A','B');
         inputString.replace('A','B');
         return outputString;
      private Map getColumnInfosAOISUMM() {
         LinkedHashMap columnInfosMap = new LinkedHashMap(); 
         columnInfosMap.put(IPrivateExportexView.IEt_MasElement.ZZBUS__UNIT__D, "BusinessUnit");
         columnInfosMap.put(IPrivateExportexView.IEt_MasElement.ZZPRODCATEG__D, "ProfitCenter");
         columnInfosMap.put(IPrivateExportexView.IEt_MasElement.ZZ1_TO30__FKKOPRU, "One Month OverDue");
         columnInfosMap.put(IPrivateExportexView.IEt_MasElement.ZZ31_TO60__FKKOPRU, "Two Months OverDue");
         columnInfosMap.put(IPrivateExportexView.IEt_MasElement.ZZ61_TO90__FKKOPRU, "Three Months OverDue");
         columnInfosMap.put(IPrivateExportexView.IEt_MasElement.ZZ91_TO18__FKKOPRU, "Three to Six Months OverDue");
         columnInfosMap.put(IPrivateExportexView.IEt_MasElement.ZZGT180__FKKOPRU, "Greater Than Six Months");
         columnInfosMap.put(IPrivateExportexView.IEt_MasElement.ZZCURREN__FKKOPRU,"Current");
         columnInfosMap.put(IPrivateExportexView.IEt_MasElement.ZZFUTURE__FKKOPRU, "Future");
         columnInfosMap.put(IPrivateExportexView.IEt_MasElement.TOTAL, "Total");
         return columnInfosMap;
      private Map getColumnInfosBU() {
         LinkedHashMap columnInfosMap = new LinkedHashMap(); 
         columnInfosMap.put(IPrivateExportexView.IEt_Bu1Element.ZZBUSUNIT__D, "BusinessUnit");
         columnInfosMap.put(IPrivateExportexView.IEt_Bu1Element.ZZSUBBUSUNIT__D, "SubBusinessUnit");
         columnInfosMap.put(IPrivateExportexView.IEt_Bu1Element.ZZPRCTR__D, "ProfitCenter");
         columnInfosMap.put(IPrivateExportexView.IEt_Bu1Element.ZZREGION__D, "Region");
         columnInfosMap.put(IPrivateExportexView.IEt_Bu1Element.ZZUWRITER__D, "Underwriter");
         columnInfosMap.put(IPrivateExportexView.IEt_Bu1Element.ZZBROKER__D, "Broker");
         columnInfosMap.put(IPrivateExportexView.IEt_Bu1Element.GPART__D, "Insured");
         columnInfosMap.put(IPrivateExportexView.IEt_Bu1Element.VTREF, "Policy");
         columnInfosMap.put(IPrivateExportexView.IEt_Bu1Element.AMNT__ADJ, "Adjustment");
         columnInfosMap.put(IPrivateExportexView.IEt_Bu1Element.AMNT__COMM, "Commission");
         columnInfosMap.put(IPrivateExportexView.IEt_Bu1Element.AMNT__DUE, "Due");
         columnInfosMap.put(IPrivateExportexView.IEt_Bu1Element.AMNT__GROSS, "Gross");
         columnInfosMap.put(IPrivateExportexView.IEt_Bu1Element.AMNT__PAID, "Paid");
         columnInfosMap.put(IPrivateExportexView.IEt_Bu1Element.AMNT__NET, "Net");
         columnInfosMap.put(IPrivateExportexView.IEt_Bu1Element.FAEDN, "DueDate");
         //columnInfosMap.put(IPrivateExportexView.IEt_Bu1Element.HVORG__D, "Main");
         //columnInfosMap.put(IPrivateExportexView.IEt_Bu1Element.TVORG__D, "Sub");
         return columnInfosMap;
      private Map getColumnInfosCARM() {
         LinkedHashMap columnInfosMap = new LinkedHashMap(); 
         columnInfosMap.put(IPrivateExportexView.IEt_Carm1Element.ZZBUSUNIT__D, "BusinessUnit");
         columnInfosMap.put(IPrivateExportexView.IEt_Carm1Element.ZZSUBBUSUNIT__D, "SubBusinessUnit");
         columnInfosMap.put(IPrivateExportexView.IEt_Carm1Element.ZZPRCTR__D, "ProfitCenter");
         columnInfosMap.put(IPrivateExportexView.IEt_Carm1Element.ZZREGION__D, "Region");
         columnInfosMap.put(IPrivateExportexView.IEt_Carm1Element.ZZMANAGER__D, "TeamManager");
         columnInfosMap.put(IPrivateExportexView.IEt_Carm1Element.ZZACCREP__D, "AccountRepresentative");
         columnInfosMap.put(IPrivateExportexView.IEt_Carm1Element.ZZBROKER__D, "Broker");
         columnInfosMap.put(IPrivateExportexView.IEt_Carm1Element.GPART__D, "Insured");
         columnInfosMap.put(IPrivateExportexView.IEt_Carm1Element.VKONT, "Contract");
         columnInfosMap.put(IPrivateExportexView.IEt_Carm1Element.VTREF, "Policy");
         columnInfosMap.put(IPrivateExportexView.IEt_Carm1Element.AMNT__ADJ, "Adjustment");
         columnInfosMap.put(IPrivateExportexView.IEt_Carm1Element.AMNT__COMM, "Commission");
         columnInfosMap.put(IPrivateExportexView.IEt_Carm1Element.AMNT__DUE, "Due");
         columnInfosMap.put(IPrivateExportexView.IEt_Carm1Element.AMNT__GROSS, "Gross");
         columnInfosMap.put(IPrivateExportexView.IEt_Carm1Element.AMNT__PAID, "Paid");
         columnInfosMap.put(IPrivateExportexView.IEt_Carm1Element.AMNT__NET, "Net");
         columnInfosMap.put(IPrivateExportexView.IEt_Carm1Element.FAEDN, "DueDate");
         //columnInfosMap.put(IPrivateExportexView.IEt_Carm1Element.HVORG__D, "Main");
         //columnInfosMap.put(IPrivateExportexView.IEt_Carm1Element.TVORG__D, "Sub");
         return columnInfosMap;
      private Map getColumnInfosAOIDet() {
         LinkedHashMap columnInfosMap = new LinkedHashMap(); 
         columnInfosMap.put(IPrivateExportexView.IEt_DetailElement.ZZBUS__UNIT__D, "BusinessUnit");
         columnInfosMap.put(IPrivateExportexView.IEt_DetailElement.ZZPRODCATEG__D , "ProfitCenter");
         columnInfosMap.put(IPrivateExportexView.IEt_DetailElement.ZZNAME1__FKKOPRU, "BusinessPartner");
         columnInfosMap.put(IPrivateExportexView.IEt_DetailElement.ZZNAME__B__FKKOPRU, "Broker");
         columnInfosMap.put(IPrivateExportexView.IEt_DetailElement.BUKRS, "Company Code");
         columnInfosMap.put(IPrivateExportexView.IEt_DetailElement.VTREF, "Policy");
         columnInfosMap.put(IPrivateExportexView.IEt_DetailElement.ZZHVORGT, "Main");
         columnInfosMap.put(IPrivateExportexView.IEt_DetailElement.ZZTVORGT, "Sub");
         columnInfosMap.put(IPrivateExportexView.IEt_DetailElement.ZZ1_TO30__FKKOPRU, "One Month OverDue");
         columnInfosMap.put(IPrivateExportexView.IEt_DetailElement.ZZ31_TO60__FKKOPRU, "Two Months OverDue");
         columnInfosMap.put(IPrivateExportexView.IEt_DetailElement.ZZ61_TO90__FKKOPRU, "Three Months OverDue");
         columnInfosMap.put(IPrivateExportexView.IEt_DetailElement.ZZ91_TO18__FKKOPRU, "Three to Six Months OverDue");
         columnInfosMap.put(IPrivateExportexView.IEt_DetailElement.ZZGT180__FKKOPRU, "Greater Than Six Months");
         columnInfosMap.put(IPrivateExportexView.IEt_DetailElement.TOTAL, "Total");
         columnInfosMap.put(IPrivateExportexView.IEt_DetailElement.ZZCURREN__FKKOPRU,"Current");
         columnInfosMap.put(IPrivateExportexView.IEt_DetailElement.OPBEL, "Document No");
         //columnInfosMap.put(IPrivateExportexView.IEt_Detail1Element.VKONT, "Contract Account");
         columnInfosMap.put(IPrivateExportexView.IEt_DetailElement.BUDAT, "Posting Date");
         columnInfosMap.put(IPrivateExportexView.IEt_DetailElement.FAEDN, "Due Date");
         columnInfosMap.put(IPrivateExportexView.IEt_DetailElement.WAERS, "Currency");
         return columnInfosMap;
      private Map getColumnInfosRMETRICS1() {
         LinkedHashMap columnInfosMap = new LinkedHashMap(); 
         columnInfosMap.put(IPrivateExportexView.IEt_EfdbidElement.ZZBUSUNIT__D, "BusinessUnit");
         columnInfosMap.put(IPrivateExportexView.IEt_EfdbidElement.ZZSUBBUSUNIT__D, "SubBusinessUnit");
         columnInfosMap.put(IPrivateExportexView.IEt_EfdbidElement.ZZPRODCATEG__D, "Profit Center");
         columnInfosMap.put(IPrivateExportexView.IEt_EfdbidElement.ZZREGION__D, "Region");
         columnInfosMap.put(IPrivateExportexView.IEt_EfdbidElement.ZZOFFICE__D, "Office");
         columnInfosMap.put(IPrivateExportexView.IEt_EfdbidElement.NAME__AR, "Collection Rep");
         columnInfosMap.put(IPrivateExportexView.IEt_EfdbidElement.NAME__BR, "Broker");
         columnInfosMap.put(IPrivateExportexView.IEt_EfdbidElement.NAME__IN, "Insured");
         columnInfosMap.put(IPrivateExportexView.IEt_EfdbidElement.Z0_TO3__AMT, "ZeroToThreeDaysBilledAmt");
         columnInfosMap.put(IPrivateExportexView.IEt_EfdbidElement.Z0_TO3__POL, "ZeroToThreeDaysNoOfPol");
         columnInfosMap.put(IPrivateExportexView.IEt_EfdbidElement.Z4_TO5__AMT, "FourToFiveDaysBilledAmt");
         columnInfosMap.put(IPrivateExportexView.IEt_EfdbidElement.Z4_TO5__POL, "FourToFiveDaysNoOfPol");
         columnInfosMap.put(IPrivateExportexView.IEt_EfdbidElement.Z6_TO10__AMT, "SixToTenDaysBilledAmt");
         columnInfosMap.put(IPrivateExportexView.IEt_EfdbidElement.Z6_TO10__POL, "SixToTenDaysNoOfPol");
         columnInfosMap.put(IPrivateExportexView.IEt_EfdbidElement.Z11_TO15__AMT, "ElevenToFifteenDaysBilledAmt");
         columnInfosMap.put(IPrivateExportexView.IEt_EfdbidElement.Z11_TO15__POL, "ElevenToFifteenDaysNoOfPol");
         columnInfosMap.put(IPrivateExportexView.IEt_EfdbidElement.Z16_TO30__AMT, "SixteenToThirtyDaysBilledAmt");
         columnInfosMap.put(IPrivateExportexView.IEt_EfdbidElement.Z16_TO30__POL, "SixteenToThirtyDaysNoOfPol");
         columnInfosMap.put(IPrivateExportexView.IEt_EfdbidElement.ZOVER30__AMT, "OverThirtyDaysBilledAmt");
         columnInfosMap.put(IPrivateExportexView.IEt_EfdbidElement.ZOVER30__AMT, "OverThirtyNoOfPol");
         return columnInfosMap;
      private Map getColumnInfosRMETRICS2() {
         LinkedHashMap columnInfosMap = new LinkedHashMap(); 
         columnInfosMap.put(IPrivateExportexView.IEt_EfdbodElement.ZZBUSUNIT__D, "BusinessUnit");
         columnInfosMap.put(IPrivateExportexView.IEt_EfdbodElement.ZZSUBBUSUNIT__D, "SubBusinessUnit");
         columnInfosMap.put(IPrivateExportexView.IEt_EfdbodElement.ZZPRODCATEG__D, "Profit Center");
         columnInfosMap.put(IPrivateExportexView.IEt_EfdbodElement.ZZREGION__D, "Region");
         columnInfosMap.put(IPrivateExportexView.IEt_EfdbodElement.ZZOFFICE__D, "Office");
         columnInfosMap.put(IPrivateExportexView.IEt_EfdbodElement.NAME__AR, "Collection Rep");
         columnInfosMap.put(IPrivateExportexView.IEt_EfdbodElement.NAME__BR, "Broker");
         columnInfosMap.put(IPrivateExportexView.IEt_EfdbodElement.NAME__IN, "Insured");
         columnInfosMap.put(IPrivateExportexView.IEt_EfdbodElement.Z0_TO30__AMT, "ZeroToThirtyDaysBookedAmt");
         columnInfosMap.put(IPrivateExportexView.IEt_EfdbodElement.Z0_TO30__POL, "ZeroToThirtyDaysNoOfPol");
         columnInfosMap.put(IPrivateExportexView.IEt_EfdbodElement.Z31_TO90__AMT, "ThirtytoNinetyDaysBookedAmt");
         columnInfosMap.put(IPrivateExportexView.IEt_EfdbodElement.Z31_TO90__POL, "ThirtytoNinetyDaysNoOfPol");
         columnInfosMap.put(IPrivateExportexView.IEt_EfdbodElement.Z91_TO120__AMT, "NinetytoOneTwentyDaysBookedAmt");
         columnInfosMap.put(IPrivateExportexView.IEt_EfdbodElement.Z91_TO120__POL, "NinetytoOneTwentyDaysNoOfPol");
         columnInfosMap.put(IPrivateExportexView.IEt_EfdbodElement.ZOVER120__AMT, "OVEROneTwentyDaysBookedAmt");
         columnInfosMap.put(IPrivateExportexView.IEt_EfdbodElement.ZOVER120__POL, "OVEROneTwentyDaysNoOfPol");
         return columnInfosMap;
      private Map getColumnInfosWRITEOFF() {
         LinkedHashMap columnInfosMap = new LinkedHashMap(); 
         columnInfosMap.put(IPrivateExportexView.IEt_Writeoff1Element.ZZBUSUNIT__D, "BusinessUnit");
         columnInfosMap.put(IPrivateExportexView.IEt_Writeoff1Element.ZZPRCTR__D, "ProfitCenter");
         columnInfosMap.put(IPrivateExportexView.IEt_Writeoff1Element.ZZOFFICE__D, "Office");
         columnInfosMap.put(IPrivateExportexView.IEt_Writeoff1Element.INSU__NAME, "Insured");
         columnInfosMap.put(IPrivateExportexView.IEt_Writeoff1Element.INSOBJECT, "InsuranceObject");
         columnInfosMap.put(IPrivateExportexView.IEt_Writeoff1Element.TVORG__TXT, "SubTransaction");
         columnInfosMap.put(IPrivateExportexView.IEt_Writeoff1Element.HVORG__TXT, "MainTransaction");
         columnInfosMap.put(IPrivateExportexView.IEt_Writeoff1Element.ABGRD__D, "WriteOffReason");
         columnInfosMap.put(IPrivateExportexView.IEt_Writeoff1Element.ZZCOLLREP__D, "CollectionRepresentative");
         columnInfosMap.put(IPrivateExportexView.IEt_Writeoff1Element.AUTH__NAME, "AuthName");
         columnInfosMap.put(IPrivateExportexView.IEt_Writeoff1Element.AUTH__DATE, "AuthDate");
         columnInfosMap.put(IPrivateExportexView.IEt_Writeoff1Element.WRITE__AMT, "WriteOffAmount");
         columnInfosMap.put(IPrivateExportexView.IEt_Writeoff1Element.COMM, "Commission");
         columnInfosMap.put(IPrivateExportexView.IEt_Writeoff1Element.GROSS, "Gross");
         columnInfosMap.put(IPrivateExportexView.IEt_Writeoff1Element.NET, "Net");
         columnInfosMap.put(IPrivateExportexView.IEt_Writeoff1Element.REVERSED, "Reversed");
         columnInfosMap.put(IPrivateExportexView.IEt_Writeoff1Element.ABDAT, "WriteOffDate");
         return columnInfosMap;
      private Map getColumnInfosRMETRICS3() {
         LinkedHashMap columnInfosMap = new LinkedHashMap(); 
         columnInfosMap.put(IPrivateExportexView.IEt_PaddudElement.ZZBUSUNIT__D, "BusinessUnit");
         columnInfosMap.put(IPrivateExportexView.IEt_PaddudElement.ZZSUBBUSUNIT__D, "SubBusinessUnit");
         columnInfosMap.put(IPrivateExportexView.IEt_PaddudElement.ZZPRODCATEG__D, "Profit Center");
         columnInfosMap.put(IPrivateExportexView.IEt_PaddudElement.ZZREGION__D, "Region");
         columnInfosMap.put(IPrivateExportexView.IEt_PaddudElement.ZZOFFICE__D, "Office");
         columnInfosMap.put(IPrivateExportexView.IEt_PaddudElement.NAME__AR, "CollectionRep");
         columnInfosMap.put(IPrivateExportexView.IEt_PaddudElement.NAME__BR, "Broker");
         columnInfosMap.put(IPrivateExportexView.IEt_PaddudElement.NAME__IN, "Insured");
         columnInfosMap.put(IPrivateExportexView.IEt_PaddudElement.NAME__BR, "Broker");
         columnInfosMap.put(IPrivateExportexView.IEt_PaddudElement.Z0_TO30__AMT__I, "ZeroToThirtyDaysBookedAmt");
         columnInfosMap.put(IPrivateExportexView.IEt_PaddudElement.Z0_TO30__AMT__P, "ZeroToThirtyDaysNoOfPol");
         columnInfosMap.put(IPrivateExportexView.IEt_PaddudElement.Z31_TO90__AMT__I, "ThirtytoNinetyDaysBookedAmt");
         columnInfosMap.put(IPrivateExportexView.IEt_PaddudElement.Z31_TO90__AMT__P, "ThirtytoNinetyDaysNoOfPol");
         columnInfosMap.put(IPrivateExportexView.IEt_PaddudElement.Z91_TO120__AMT__I, "NinetytoOneTwentyDaysBookedAmt");
         columnInfosMap.put(IPrivateExportexView.IEt_PaddudElement.Z91_TO120__AMT__P, "NinetytoOneTwentyDaysNoOfPol");
         columnInfosMap.put(IPrivateExportexView.IEt_PaddudElement.ZOVER120__AMT__I, "OVEROneTwentyDaysBookedAmt");
         columnInfosMap.put(IPrivateExportexView.IEt_PaddudElement.ZOVER120__AMT__P, "OVEROneTwentyDaysNoOfPol");
         return columnInfosMap;
      private Map getColumnInfosRMETRICS4() {
         LinkedHashMap columnInfosMap = new LinkedHashMap(); 
         columnInfosMap.put(IPrivateExportexView.IEt_BidbodElement.ZZBUSUNIT__D, "BusinessUnit");
         columnInfosMap.put(IPrivateExportexView.IEt_BidbodElement.ZZSUBBUSUNIT__D, "SubBusinessUnit");
         columnInfosMap.put(IPrivateExportexView.IEt_BidbodElement.ZZPRODCATEG__D, "Profit Center");
         columnInfosMap.put(IPrivateExportexView.IEt_BidbodElement.ZZREGION__D, "Region");
         columnInfosMap.put(IPrivateExportexView.IEt_BidbodElement.ZZOFFICE__D, "Office");
         columnInfosMap.put(IPrivateExportexView.IEt_BidbodElement.NAME__AR, "CollectionRep");
         columnInfosMap.put(IPrivateExportexView.IEt_BidbodElement.NAME__BR, "Broker");
         columnInfosMap.put(IPrivateExportexView.IEt_BidbodElement.NAME__IN, "Insured");
         columnInfosMap.put(IPrivateExportexView.IEt_BidbodElement.NAME__BR, "Broker");
         columnInfosMap.put(IPrivateExportexView.IEt_BidbodElement.Z0_TO30__AMT__I, "ZeroToThirtyDaysBookedAmt");
         columnInfosMap.put(IPrivateExportexView.IEt_BidbodElement.Z0_TO30__AMT__P, "ZeroToThirtyDaysNoOfPol");
         columnInfosMap.put(IPrivateExportexView.IEt_BidbodElement.Z31_TO90__AMT__I, "ThirtytoNinetyDaysBookedAmt");
         columnInfosMap.put(IPrivateExportexView.IEt_BidbodElement.Z31_TO90__AMT__P, "ThirtytoNinetyDaysNoOfPol");
         columnInfosMap.put(IPrivateExportexView.IEt_BidbodElement.Z91_TO120__AMT__I, "NinetytoOneTwentyDaysBookedAmt");
         columnInfosMap.put(IPrivateExportexView.IEt_BidbodElement.Z91_TO120__AMT__P, "NinetytoOneTwentyDaysNoOfPol");
         columnInfosMap.put(IPrivateExportexView.IEt_BidbodElement.ZOVER120__AMT__I, "OVEROneTwentyDaysBookedAmt");
         columnInfosMap.put(IPrivateExportexView.IEt_BidbodElement.ZOVER120__AMT__P, "OVEROneTwentyDaysNoOfPol");
         return columnInfosMap;
      private Map getColumnInfosRMETRICSD() {
         LinkedHashMap columnInfosMap = new LinkedHashMap(); 
         columnInfosMap.put(IPrivateExportexView.IEt_MetdetElement.ZZBUSUNIT__D, "BusinessUnit");
         columnInfosMap.put(IPrivateExportexView.IEt_MetdetElement.ZZSUBBUSUNIT__D, "SubBusinessUnit");
         columnInfosMap.put(IPrivateExportexView.IEt_MetdetElement.ZZPRODCATEG__D, "Profit Center");
         columnInfosMap.put(IPrivateExportexView.IEt_MetdetElement.ZZREGION__D, "Region");
         columnInfosMap.put(IPrivateExportexView.IEt_MetdetElement.ZZOFFICE__D, "Office");
         columnInfosMap.put(IPrivateExportexView.IEt_MetdetElement.NAME__AR, "CollectionRep");
         columnInfosMap.put(IPrivateExportexView.IEt_MetdetElement.NAME__BR, "Broker");
         columnInfosMap.put(IPrivateExportexView.IEt_MetdetElement.NAME__IN, "Insured");
         columnInfosMap.put(IPrivateExportexView.IEt_MetdetElement.NAME__BR, "Broker");
         columnInfosMap.put(IPrivateExportexView.IEt_MetdetElement.BILL__DT, "BillDate");
         columnInfosMap.put(IPrivateExportexView.IEt_MetdetElement.BOOK__DT, "BookDate");
         columnInfosMap.put(IPrivateExportexView.IEt_MetdetElement.CREATE__DT, "CreateDate");
         columnInfosMap.put(IPrivateExportexView.IEt_MetdetElement.FANR, "InvoiceNumber");
         columnInfosMap.put(IPrivateExportexView.IEt_MetdetElement.HVORG__D, "Main");
         columnInfosMap.put(IPrivateExportexView.IEt_MetdetElement.TVORG__D, "Sub");
         columnInfosMap.put(IPrivateExportexView.IEt_MetdetElement.GROSS, "GrossInvoiced");
         columnInfosMap.put(IPrivateExportexView.IEt_MetdetElement.NET, "NetInvoiced");
         columnInfosMap.put(IPrivateExportexView.IEt_MetdetElement.COMM, "CommissionInvoiced");
         columnInfosMap.put(IPrivateExportexView.IEt_MetdetElement.TAX, "TaxInvoiced");
         columnInfosMap.put(IPrivateExportexView.IEt_MetdetElement.GROSS__PAID, "GrossPaid");
         columnInfosMap.put(IPrivateExportexView.IEt_MetdetElement.TAX__PAID, "TaxPaid");
         columnInfosMap.put(IPrivateExportexView.IEt_MetdetElement.NET__PAID, "NetPaid");
         columnInfosMap.put(IPrivateExportexView.IEt_MetdetElement.COMM__PAID, "CommissionPaid");
         columnInfosMap.put(IPrivateExportexView.IEt_MetdetElement.AUGDT, "ClearingDate");
         columnInfosMap.put(IPrivateExportexView.IEt_MetdetElement.AUGBT, "ClearingAmount");
         return columnInfosMap;
      private IWDCachedWebResource getCachedWebResource(byte[] file, String name, WDWebResourceType type) {
         IWDCachedWebResource cachedWebResource = null;
         if (file != null) {
           cachedWebResource = WDWebResource.getWebResource(file, type);
           cachedWebResource.setResourceName(name);
         return cachedWebResource;
      private static String GC_REPORTTYPE_OPENITEMS_SUMM = "AOISUMM";
      private static String GC_REPORTTYPE_OPENITEMS_DET = "AOIDET";
      private static String GC_REPORTTYPE_BPACCTSTAT_BU = "BPBU";
      private static String GC_REPORTTYPE_BPACCTSTAT_CARM = "BPCARM";
      private static String GC_REPORTTYPE_RMETRICS_EFDBID = "RMETRICS1";
      private static String GC_REPORTTYPE_RMETRICS_EFDBOD = "RMETRICS2";
      private static String GC_REPORTTYPE_RMETRICS_PADDUD = "RMETRICS3";
      private static String GC_REPORTTYPE_RMETRICS_BIDBOD = "RMETRICS4";
      private static String GC_REPORTTYPE_RMETRICS_DETAIL = "RMETRICSDETAIL";
      private static String GC_REPORTTYPE_WRITEOFF = "WRITEOFF";
      //@@end
    Marks will be rewarded for sure.
    Regards,
    Pranathi.

    Hi, I finally found the issue which was causing the numbers stored in text format issue. While exporting data to Excel programatically if any of the cells precede with a special character like -. = etc.. the data which is exported after that starts behaving in a peculiar way. So removal of any such special characters resolves the issue.
    Hope this helps..
    Regards,
    Macho

  • Web App Designer Export to Excel - Issue

    Hi Gurus,
    I was able to sucessfully configure export to excel feature in WAD. However the issue we are encountering is, we have a button which runs a script function, this manupulates data in some columns of the report. So when I perform export to excel after the script function is excuted, the export gets the old state of data and not the data after the script function is run. Is there are way to fix this issue. Please advise.
    Thanks Again!

    Dear Customer,
    WYSIWYG (What You See Is What You Get) is not supported on Export to Excel.
    If you are using some script AFTER data comes to screen, you will NOT see the effects on Excel.
    This is documented in the note:
    1178857 - Additional information: Export to Excel functions
    " Layout
         o  Currently WYSIWYG export is not supported.
    Sorry to not provide a better solution.
    Best regards,
    Edward John

Maybe you are looking for