Exporting to Excel causes compounded field to be divided
I have a report with compounded fields of plant and manager (ex. 3350/200). When I attempt to export to Excel, it is treated as a division and it displays 16.75 instead. I've changed a couple of settings under Tools/Options and Query Properties in both Excel and BEx query designer, but it does not change it. I also tried to export as CSV. This works, but not without doing a lot of manual manipulations to the file and I'm trying to come up with a clean process for my users. I have not found any info in the OSS Notes. Has anyone seen this issue, or has any suggestions of what else I can try? Thanks!
Hi Paul,
Try to download as CSV and open again in excel, i think it will work. Or
Format the perticular field as TEXT and try to down load.
Or in report try to replace the perticular charachter"/" with "_" and download.
Hope it Helps
Srini
Similar Messages
-
Web Intelligence export to Excel misses some fields
Hi,
Our system is running BusinessObjects Enterprise XI 3.1 with SP3 (no fix packs). The behavior I'm seeing is when exporting a particular Webi doc to Excel.
Here is some background info for the document I am attempting to export to Excel. The doc contains a section and the section has a crosstab including description header cells. I have added an additional cell at the top of the section with section specific information in it- nothing that strange yet. If my InfoView (Web Intelligence) preferences is set so that 'Select a priority for saving to MS Excel' is set to 'Prioritize easy data processing in Excel' then the exported document is missing the additional cell at the top of the section (all other data is fine). If the setting is set to 'Prioritize the formatting of the documents' then the Excel export works perfectly.
My question is why would this be? The cell is just a simple dimension (string). My only fear about changing this Excel setting is that there is a warning in the 'Business Objects XI 3.1 Release Notes' guide. It states
Large Web Intelligence documents should be saved to Excel format using the "Prioritize data processing" option". The generated Excel might not open if the document is large and saved with the "prioritize formatting" option.
Thanks,
SteveWe are experiencing similar issue using BO 4 SP2 Patch 10 when exporting to Excel with setting 'Prioritize easy data processing in Excel'. Exporting data worked after changing WEBI settings to 'Prioritize the formatting of the documents'
Documentation regarding this option states following:
"Under "Select a priority for saving to MS Excel", select the option that best fits your needs:
u2022 If you want to display the data in a format that is similar to working in Web Intelligence, then
choose Prioritize the formatting of the documents.
u2022 If you want to display the data in a text format, then choose Prioritize easy data processing in
Excel."
If I understand this explanation correctly then both options should have extracted the same content to Excel. Difference should have been how the contents were formatted and should not have caused loss of information.
I logged support ticket for this issue. -
Export to EXCEL truncates character field to 255?
Exporting a report to excel containing fairly long memo text, the text is truncated to apparently 255 characters. Is this a hard limitation or are there settings that will allow more?
InfoView 6.1.021.2263
WebIntelligence Reporter 6.1b
WebIntelligence Explorer 6.1b
WebIntelligence OLAP 6.1b
Excel (on desktop) 2003 SP3Hi Susan,
This is a known issue in Infoview 6.1 and has been fixed in E6.5.1 Infoview.
Hope this helps you!
Regards,
Anindita -
ALV truncates last digit of field when exported to Excel.
Hello SAPients!
I have an ALV grid that truncates the last digit of one of the fields (VBELN) when it is exported to Excel. The field is defined with reference to the standard field VBRK-VBELN.
I'm working on SAP 4.6C.
Any idea?
Thank you for your helpThat's funny. Make sure the the outputlen is big enough.
REgards,
RIch Heilman -
Hi,
I am filtering SharePoint list view web part based on Query string parameter and I am doing Export to Excel by using following code.
<a href="#" onclick="javascript:window.location='../_vti_bin/owssvr.dll?CS=109&Using=_layouts/query.iqy&List=0DC67399-BE11-48F3-ADFC-E911FB8B5845&View=54671412-3EFE-4281-835A-9EF747AE774E&CacheControl=1'"><img
alt="Excel" src="/_layouts/images/icxlsx.gif" border="0"/> Export to Excel</a>
Issue: Able to do Export to Excel when there are no filters applied on list view web part but if applied filters on web part and do export to excel , only header fields are displaying in the excel sheet.
I don't know why owssvr.dll is behaving like that .
Please share your ideas.
Thanks in Advance.Hi,
According to your post, my understanding is that you wanted to create hyperlink to export to excel.
The URL to execute the export is as follows:
{Site URL}/_vti_bin/owssvr.dll?CS=109&Using=_layouts/query.iqy&List={List GUID}&View={View GUID}&CacheControl=1
After getting the GUID, you need to “decode” the list GUID.
Replace %7B with {
Replace %2D with –
Replace %7D with }
More information:
Create Link to Export Library Contents to Excel
SharePoint - Create a link to export to Excel
Best Regards,
Linda Li
Linda Li
TechNet Community Support -
VbCrLf in expressions cause loss of data on export to Excel
I have a report where it is necessary to embed 3 text boxes in a rectangle, which then lives in a Tablix cell:
Within the highlighted cell lives an expression. It was necessary in this case to use commas to separate the values and then manipulate these in Excel to put them on new lines. VbCrLf, VbLf, VbCr were all tried to no avail. There can be
4 of these but only the first 2 would display. The point of the post is to engage discussion really. This is the work around in this case.
What's funny is all other instances of using rectangles to house text boxes works. And of course, it's not string length because there are other parts of the report that work.
Was not able to rapidly find this on Google so got with a consultant here where I work. It has something to do with the ASCII values returned by VbCrLf, VbCr or VbLf that cause truncation to happen in some cases.
It was hard for me to find so I'm passing the knowledge along. Having a handy consultant saved a lot of spinning wheels on dead-end google searches.
"Fed Phase(s): "
+ IIF(Microsoft.VisualBasic.Strings.Trim(Fields!ENV.Value) =
"", Fields!ENV.Value +
+ IIF(Microsoft.VisualBasic.Strings.Trim(Fields!DTL.Value) =
"", Fields!DTL.Value +
+ IIF(Microsoft.VisualBasic.Strings.Trim(Fields!ACQ.Value) =
"", Fields!ACQ.Value +
+ IIF(Microsoft.VisualBasic.Strings.Trim(Fields!CO.Value) =
"", Fields!CO.Value)
Michael DurthalerHi SACSgtMike,
According to your description, you have add VbCrLf in an expression to make four values display on different lines within a textbox. But when exporting the report to Excel, only first two values can display, right?
As we tested in our environment, the VbCrLf can work fine both in preview results and Excel. We have specified the expression like below:
=Fields!SalesTerritoryGroup.Value + "," + vbcrlf + Fields!SalesTerritoryCountry.Value + "," + vbcrlf + Fields!SalesTerritoryCountry.Value + "," + vbcrlf + Fields!SalesTerritoryCountry.Value
The report both in preview mode and Excel work fine. In your scenario, since you mentioned the VbCrLf doesn’t work fine after exporting to Excel, would you please provide some screenshots about results both in preview and Excel for our analysis. Also please
share some sample data and report design.
If you have any question, please feel free to ask.
Best regards,
Qiuyun Yu
Qiuyun Yu
TechNet Community Support -
Export PDF form to MS Excel. Losing field contents
Hi there,
I'm using Adobe Acrobat X Pro.
I'm trying to export a PDF form into MS excel for further manipulation, but it seems that Acrobat is unable to export everything into Excel.
Here what I have done:
"File"> "Save as">"spreadsheet">"MS excel workbook". then I will save onto desktop.
when I open it up in MS excel, i only see the form fields but not the content.
Can anyone help? Is this a acrobat issue or excel issue?
ThanksTry flattening the form before exporting to Excel. You can do this via PDF Optimizer, Preflight, the following JavaScript that you execute in the interactive JavaScript console (Ctrl+J):
flattenPages();
by placing the cursor on that line and pressing Ctrl+Enter, or Enter on the numberic keypad, or by using this free JavaScript-based tool: http://www.uvsar.com/projects/acrobat/flattener/ -
SharePoint 2007 Export to Excel 2010 or Excel 2013 Fails to Export All Fields in All Items View
Hi All,
When I am trying to export the SharePoint View from SharePoint site to Spreadsheet (Excel 2013), I am able not able to export the the whole data, I'm missing some numerical columns from being displayed in Excel
I have Infopath form (2007) published on SharePoint Site and I am using MOSS 2007 and Excel 2013. My form has only 20 or so fields and the rest are fields I generated in the form library to do several other calculations. I have already 73 columns
displayed which should be exported to Excel, need helpHi,
As per your post, I understand “Excel cannot connect to the SharePoint list” is thrown out in Excel 2010 when exporting the external list in SharePoint 2013. We are able to export the external list to Excel 2013.
This issue does not occur on the standard lists.
I am able to reproduce the issue and it could be a potential issue in SharePoint 2013.
We will log this issue to our suggestion box. As after the submission, we may not have any time guarantee when the fix may be released, but it may come out on next cumulative update.
Appreciate your time and efforts.
Thanks.
Tracy Cai
TechNet Community Support -
Set Field as text before exporting to excel
HELLO GURUS,
i have a program which exports material numbers and other relevant data from sap tables to excel sheet.
certain material numbers contain text 'E' in between the material number (Eg. 17700E0056). When such data is exported to excel, Excel treats these as exponential numbers and converts them to scientific notation (1.77E+60).
How do I export the data as it is?
Is there a way that i can convert it to text format before exporting it to excel..?Hi,
try moving the values to a CHAR field before download to Excel
or
when building your field catalog , specify the field length same as of that fields data element.
eg. your material number is of char 10.
so set yout outputlen eq 10.
g_flcat-outputlen = '10'.
this works.
Thanks & regards.
Edited by: anusha25 on Nov 8, 2011 5:02 PM -
Jasper Export to excel: changing background color of the cell/field
Hi all,
I have designed a report containing a set of 5 different fields. All these are STRING values.
Among these are two fields named: BUDGETED and ACTUAL.
I want to show the data corresponding to ACTUAL in red color if the value of ACTUAL is greater than BUDGETED when exported in excel format.
The value itself should be displayed in red color or the excel cell should have a color red
Can someone please help me in this? How can we implement the logic to compare these two values?
Thanks in advance.You are using Jasper and you thought: hey, let me post a question in the Oracle Reports forum?
-
Problem on Export to Excel - converts Long type field to General (Unknown)
hello! i used JSP to export table data to excel.. there's nothing wrong with the data displayed.. But the problem is.. when one of the fields is computed and retrieved in the JSP, and then exported to excel, it converts the Long type field to General and therefore cannot be computed when being used in a formula. Also, when you change it's type by right clicking the cell and chose "Format Cells", it still can't change it's type to number even if you have it changed. Therefore can't be computed..
I have other number fields but they were just retrieved and not computed as they were exported to excel.. But they don't change their types like the computed ones..
please help.. thankshello! i used JSP to export table data to excel..Yuck. :p Didn't even consider it being possible. I'd use a servlet anyway, after all, it's designed to be able to stream out non-HTML.
there's nothing wrong with the data displayed.. But
the problem is.. when one of the fields is computed
and retrieved in the JSP, and then exported to excel,
it converts the Long type field to General and
therefore cannot be computed when being used in a
formula. Well, since there is no class in the standard API that handles Excel files, you migh want to ask the support of whoever provided your tool. -
ALV GRID with icon fields. When exports to Excel, icon fields are emtpy.
Hi all,
In our SAP system (6.0 ECC) we've noticed the following behaviour:
In ALV GRID with icons (color lights for example...) when we export the list to Excel format with the standard button bat, the icon column is always empty.
We think that in previous SAP version (4.7), the code corresponding to the icon appeared (For example @08@ for green light).
It's possible to have tha same functionality in this new version like in 4.7?
Regards.
Edited by: Ole ES on Nov 17, 2010 6:05 PMHi,
Check the format in which you export to Excel (MHTML, XML, ...) and try antoher one.
http://help.sap.com/saphelp_erp60_sp/helpdata/en/66/79ad48157f11d2953700a0c930328a/content.htm
I think the integrated Excel mode shows '@08@'.
Best regards,
Guillaume -
Export to excel with formatting was autowrapping text in a cell
Export to excel with formatting was autowrapping text in a cell without having to check the can grow option. When the can grow option is checked it does wrap the text however it spans multiple rows, which causes complications when trying to sort.
It worked in:
ProductVersion=10.0.0.533
ProductName=Crystal Enterprise 10 Embedded
Doesnt work in:
Crystal Reports 10.0 Service Pack 6
After the upgrade the reports did not autowrap, b/c the "can grow" option was not checked. I believe this was fixed by "ADAPT00305137 Patch ID: 36479914
Description:
When users export to Excel 97-2000 with the page-based format, text fields are wrapped, even when the "can grow" feature in the
Designer is turned off." . After we turn the option to grow on it does wrap however it spans across multiple rows. So I guess my question is there a way for it not to span multiple rows when wrapping text?
Edited by: dforde on Jan 27, 2010 11:12 PMI could be wrong, but I believe the export to excel option exports the database values, and the export to HTML exports the values seen in the sheets. If the database values are stored as seconds, the Excel will see them as seconds, and the data will have to be formatted properly in Excel.
I haven't toyed around with Excel exports that much, but it might be possible to set up a template or macro in excel that would have the proper formatting, and use it when opening the Disco export. -
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 -
Export To Excel In Visual Composer 7.0
Hi ,
i need Exprot Excel Functionality in Visual Composer7.0 EP7.0 & SP17 . we are getting the data from BI 7 Version Queries in Portal .
As We Know there is No Direct Open of Export to Excel Functionality
After Folliowing the Great Link
Using Web Design API .with Hyperlink .
When im trying click on Export To Excel Button It throws Error .
Im Using Compiler Flash Flex2 Compiler.
When i am using Flash Compiler it Throws An Error in VC .
please give me valuehble inputs
500 Internal Server Error
BEx Web Application
Failed to process request; contact your system administrator
Information for Administrator
To avoid this exception see the steps below. To help SAP better investigate this issue, you will need to provide the diagnostic information from these steps.
1. Most likely, the issue you are experiencing has already been corrected. Please make sure that the most recent patch level is deployed on your system according to notes 1033246 and 1011241. Starting with Support Package Stack 16 patch level 30, BI Java is delivered according to the synchronized delivery process described in the note 1033246.
2. Please ensure that NetWeaver Business Intelligence Diagnostics & Support Desktop Tool does not report any issues on your server according to note 937697. You can start it by clicking here (administrator permissions are required).
3. When opening any customer message on this issue, please attach:
Support Desktop Tool support info ZIP file according to note 937697,
Required information for reproduction according to note 948490.
Error Summary
Exception occured while processing the current request; this exception cannot be handled by the application or framework
If the information on this page does not help you locate and correct the cause of the problem, contact your system administrator
To facilitate analysis of the problem, keep a copy of this error page Hint: Most Web browsers allow you to select all content, and copy and paste it into an empty document (such as in an email or simple text file)
Root Cause
The initial exception that caused the request to fail was:
Parameter object with the name "BI_COMMAND_TYPE" and the index "0" still does not exist in the parameter list:
<parameterList>
<param name=" BI_COMMAND_TYPE" value="EXPORT"/>
<param name=" NULL" value=""/>
<param name=" SHOW_EXPORT_DIALOG" value="X"/>
</parameterList>
com.sap.ip.bi.base.exception.BIBaseRuntimeException: Parameter object with the name "BI_COMMAND_TYPE" and the index "0" still does not exist in the parameter list:
<parameterList>
<param name=" BI_COMMAND_TYPE" value="EXPORT"/>
<param name=" NULL" value=""/>
<param name=" SHOW_EXPORT_DIALOG" value="X"/>
</parameterList>
Log ID 001517B2186400780000039E00003F0400047C7C752D75EE
Details: Full Exception Chain
System Environment
Server
BI Java Release: 7 - Patch level: 0000000016 - Description: BI Web Applications Java - Additional info: - Production mode: true
BI ABAP Release: 700 - Patch level: 0019 - Description: SAP NetWeaver BI 7.0 (PB1CLNT451) - Additional info: - Production mode: true
Java Virtual Machine Java HotSpot(TM) 64-Bit Server VM - Sun Microsystems Inc. - 1.4.2_21-b03
Operating System SunOS - sparcv9 - 5.10
Context
ACCESSIBLE false
CACHE true
CONTENT_PADDING true
COUNTRY US
DEBUG false
DEBUG_LEVEL 0
DEBUG_MESSAGES false
DEBUG_TEXTS false
DEFAULT_FONT
DISPLAY_STACK_TRACE_IN_ERROR_PAGES true
LANGUAGE EN
Master System Alias PB1CLNT451
NAVIGATION_NODE_ACTIVE_IVIEW pcd:portal_content/com.sap.pct/platform_add_ons/com.sap.ip.bi/iViews/com.sap.ip.bi.bex
PROFILING false
Query String (Initial Browser Request) BI_COMMAND_1-BI_COMMAND_TYPE=EXPORT&BI_COMMAND_1-NULL=&BI_COMMAND_1-SHOW_EXPORT_DIALOG=X&BI_COMMAND_1-EXPORT_FORMAT=PDF&QUERY=
RTL false
Request URL http://d03pp1.saildsp.co.in:50300
SAP_BW_IVIEW_ID pcd:portal_content/com.sap.pct/platform_add_ons/com.sap.ip.bi/iViews/com.sap.ip.bi.bex
SERVER_URL_PREFIX http://d03PP1.saildsp.co.in:50300
THEME_NAME sap_tradeshow
TRACE false
TRAY_TYPE PLAIN
Time Wed Jan 06 16:01:30 IST 2010
USE_HTTPS_FOR_ADS false
USE_SAP_EXPORT_LIB false
User CEP_SIVA (USER.R3_DATASOURCE.CEP_SIVA)
VALIDATION_DATA false
Deployed SCAs
SCA Version SP Patch Compiled Deployed
ADSSAP 7.00 17 0 2008-09-17 22:26:43 IST 2009-08-29 10:51:50 IST
BASETABLES 7.00 17 0 2008-09-17 22:41:38 IST 2009-08-29 10:37:16 IST
BI-BASE-S 7.00 17 20 2008-12-04 07:47:32 IST 2009-08-29 11:55:31 IST
BI-IBC 7.00 17 0 2008-09-18 06:07:59 IST 2009-08-29 11:45:17 IST
BI-REPPLAN 7.00 17 0 2008-09-18 07:38:15 IST 2009-08-29 11:56:13 IST
BI-WDALV 7.00 17 0 2008-09-18 07:38:21 IST 2009-08-29 11:56:24 IST
BIWEBAPP 7.00 17 20 2008-12-04 07:48:29 IST 2009-08-29 11:47:27 IST
BI_MMR 7.00 17 0 2008-09-17 22:42:29 IST 2009-08-29 10:52:19 IST
BI_UDI 7.00 17 0 2008-09-17 22:42:49 IST 2009-08-29 10:53:28 IST
CAF 7.00 17 0 2008-09-18 08:09:40 IST 2009-08-29 11:30:07 IST
CAF-KM 7.00 17 0 2008-09-18 07:42:37 IST 2009-08-29 12:06:47 IST
CAF-UM 7.00 17 0 2008-09-18 08:09:46 IST 2009-08-29 10:47:54 IST
CORE-TOOLS 7.00 17 0 2008-09-17 22:45:03 IST 2009-08-29 10:37:32 IST
EP-PSERV 7.00 17 0 2008-09-18 06:14:35 IST 2009-08-29 11:57:13 IST
EP-WDC 7.00 17 0 2008-09-18 01:31:00 IST 2009-08-29 11:59:04 IST
EPBC 7.00 17 0 2008-09-18 06:13:01 IST 2009-08-29 11:09:46 IST
EPBC2 7.00 17 0 2008-09-18 06:13:12 IST 2009-08-29 11:49:55 IST
JLOGVIEW 7.00 17 0 2008-09-17 21:40:00 IST 2009-08-29 10:37:52 IST
JSPM 7.00 17 1 2008-12-10 12:16:00 IST 2009-08-28 22:07:33 IST
KM-KW_JIKS 7.00 17 0 2008-09-17 22:47:53 IST 2009-08-29 11:10:10 IST
KMC-BC 7.00 17 0 2008-09-18 06:15:00 IST 2009-08-29 11:59:39 IST
KMC-CM 7.00 17 0 2008-09-18 06:15:52 IST 2009-08-29 12:00:05 IST
KMC-COLL 7.00 17 0 2008-09-18 06:16:17 IST 2009-08-29 11:51:27 IST
LM-PORTAL 7.00 17 0 2008-09-18 07:45:59 IST 2009-08-29 11:45:18 IST
LM-TOOLS 7.00 17 0 2008-10-08 12:18:34 IST 2009-08-29 11:37:41 IST
NET-PDK 7.00 17 0 2008-09-18 06:16:25 IST 2009-08-29 11:51:29 IST
RTC 7.00 17 0 2008-09-18 06:16:39 IST 2009-08-29 11:51:31 IST
RTC-STREAM 7.00 17 0 2008-09-18 06:16:39 IST 2009-08-29 11:45:19 IST
SAP-EU 7.00 17 0 2008-09-18 07:47:22 IST 2009-08-29 12:05:04 IST
SAP-JEE 7.00 17 0 2008-09-17 22:52:28 IST 2009-08-29 10:38:17 IST
SAP-JEECOR 7.00 17 0 2008-09-17 22:53:35 IST 2009-08-29 10:38:52 IST
SAP_JTECHF 7.00 17 0 2008-09-17 22:54:39 IST 2009-08-29 10:39:08 IST
SAP_JTECHS 7.00 17 0 2008-09-17 22:57:28 IST 2009-08-29 11:24:36 IST
UMEADMIN 7.00 17 0 2008-09-18 08:19:28 IST 2009-08-29 11:38:09 IST
UWLJWF 7.00 17 0 2008-09-18 06:17:26 IST 2009-08-29 12:07:22 IST
VCBASE 7.00 17 0 2008-09-18 06:17:33 IST 2009-08-29 12:08:19 IST
VCFLEX 7.00 17 0 2008-09-18 06:18:04 IST 2009-08-29 11:52:19 IST
VCFRAMEWORK 7.00 17 0 2008-09-18 06:18:13 IST 2009-08-29 11:52:24 IST
VCKITBI 7.00 17 0 2008-09-18 06:11:41 IST 2009-08-29 11:45:20 IST
VCKITGP 7.00 17 0 2008-09-18 06:18:13 IST 2009-08-29 11:45:21 IST
VCKITXX 7.00 17 0 2008-09-18 06:18:13 IST 2009-08-29 11:45:22 IST
WDEXTENSIONS 7.00 17 0 2008-09-18 07:49:02 IST 2009-08-29 12:08:46 IST
Full Exception Chain
Log ID 001517B2186400780000039E00003F0400047C7C752D75EE
com.sap.ip.bi.base.exception.BIBaseRuntimeException: Parameter object with the name "BI_COMMAND_TYPE" and the index "0" still does not exist in the parameter list: <parameterList> <param name=" BI_COMMAND_TYPE" value="EXPORT"/> <param name=" NULL" value=""/> <param name=" SHOW_EXPORT_DIALOG" value="X"/></parameterList> at com.sap.ip.bi.base.parameter.impl.ParameterList.getParameterWithUpperCaseName(ParameterList.java:682) at com.sap.ip.bi.base.parameter.impl.ParameterList.getValueWithUpperCaseName(ParameterList.java:748) at com.sap.ip.bi.base.parameter.impl.ParameterList.getValue(ParameterList.java:742) at com.sap.ip.bi.base.parameter.impl.ParameterList.getValue(ParameterList.java:732) at com.sap.ip.bi.webapplications.runtime.impl.Page.resolvePageCommandDialogs(Page.java:4471) at com.sap.ip.bi.webapplications.runtime.impl.Page.normalizeCommands(Page.java:4422) at com.sap.ip.bi.webapplications.runtime.impl.Page.doProcessRequest(Page.java:3974) at com.sap.ip.bi.webapplications.runtime.impl.Page._processRequest(Page.java:3021) at com.sap.ip.bi.webapplications.runtime.impl.Page.processRequest(Page.java:2864) at com.sap.ip.bi.webapplications.runtime.controller.impl.Controller.doProcessRequest(Controller.java:994) at com.sap.ip.bi.webapplications.runtime.controller.impl.Controller._processRequest(Controller.java:883) at com.sap.ip.bi.webapplications.runtime.controller.impl.Controller.processRequest(Controller.java:860) at com.sap.ip.bi.webapplications.runtime.jsp.portal.services.BIRuntimeService._handleRequest(BIRuntimeService.java:362) at com.sap.ip.bi.webapplications.runtime.jsp.portal.services.BIRuntimeService.handleRequest(BIRuntimeService.java:279) at com.sap.ip.bi.webapplications.runtime.jsp.portal.components.LauncherComponent.doContent(LauncherComponent.java:24) at com.sapportals.portal.prt.component.AbstractPortalComponent.serviceDeprecated(AbstractPortalComponent.java:209) at com.sapportals.portal.prt.component.AbstractPortalComponent.service(AbstractPortalComponent.java:114) at com.sapportals.portal.prt.core.PortalRequestManager.callPortalComponent(PortalRequestManager.java:328) at com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:136) at com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:189) at com.sapportals.portal.prt.component.PortalComponentResponse.include(PortalComponentResponse.java:215) at com.sapportals.portal.prt.pom.PortalNode.service(PortalNode.java:645) at com.sapportals.portal.prt.core.PortalRequestManager.callPortalComponent(PortalRequestManager.java:328) at com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:136) at com.sapportals.portal.prt.core.PortalRequestManager.dispatchRequest(PortalRequestManager.java:189) at com.sapportals.portal.prt.core.PortalRequestManager.runRequestCycle(PortalRequestManager.java:753) at com.sapportals.portal.prt.connection.ServletConnection.handleRequest(ServletConnection.java:240) at com.sapportals.portal.prt.dispatcher.Dispatcher$doService.run(Dispatcher.java:524) at java.security.AccessController.doPrivileged(Native Method) at com.sapportals.portal.prt.dispatcher.Dispatcher.service(Dispatcher.java:407) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at com.sap.engine.services.servlets_jsp.server.servlet.InvokerServlet.service(InvokerServlet.java:156) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.runServlet(HttpHandlerImpl.java:401) at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.handleRequest(HttpHandlerImpl.java:266) at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:386) at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:364) at com.sap.engine.services.httpserver.server.RequestAnalizer.invokeWebContainer(RequestAnalizer.java:1039) at com.sap.engine.services.httpserver.server.RequestAnalizer.handle(RequestAnalizer.java:265) at com.sap.engine.services.httpserver.server.Client.handle(Client.java:95) at com.sap.engine.services.httpserver.server.Processor.request(Processor.java:175) at com.sap.engine.core.service630.context.cluster.session.ApplicationSessionMessageListener.process(ApplicationSessionMessageListener.java:33) at com.sap.engine.core.cluster.impl6.session.MessageRunner.run(MessageRunner.java:41) at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37) at java.security.AccessController.doPrivileged(Native Method) at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:102) at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:172)
Regards ,
venkat pHi Apurva ,
Now I got Variable Id and Varibale Value i have give From Data Fields of VC .
When i click on Button Export To Excel it gives
SET_VARIABLES_STATE is Correctly placed For
VARIABLE_VALUES VARIABLE_VALUE
if give
VARIABLE_VALUES VARIABLE_VALUE instead of SET_VARIABLES_STATE it is giving No MetaData is available for VARIABLE_VALUES VARIABLE_VALUE
it throws like .
please help in this regard.
I Have given The Formuls AS Below
"pcd!3aportal_content!2fcom.sap.pct!2fplatform_add_ons!2fcom.sap.ip.bi!2fiViews!2fcom.sap.ip.bi.bex?QUERY=zmp_prodn_mtef_ccp_1&BI_COMMAND_1-BI_COMMAND_TYPE=VARIABLE_VALUES VARIABLE_VALUE&BI_COMMAND_1-VARIABLE_VALUES VARIABLE_VALUE_1-VARIABLE_TYPE=VARIABLE_INPUT_STRING&BI_COMMAND_1-VARIABLE_VALUES-VARIABLE_VALUE_1-VARIABLE_TYPE-VARIABLE_INPUT_STRING="&2009&"&BI_COMMAND_1-VARIABLE_VALUES-VARIABLE_VALUE_1-VARIABLE=0P_FYEAR&BI_COMMAND_3-BI_COMMAND_TYPE=EXPORT&BI_COMMAND_3-EXPORT_FORMAT=XLS&BI_COMMAND_3-null="
Regards ,
venkat p
Maybe you are looking for
-
How to implement secure help in SharePoint 2010?
Hi, We are having a sharepoint site running over HTTPS. When I click on help link given on top right side, I get a security warning saying that only secure content content can be displayed. This is probably due to the non secure content(http) used by
-
Library filters: can I add to the list of metadata fields that I can search by?
Is it possible to add to the list of metadata fields that lightroom can search for images by? I know about the 'Any searchable ... ' but that does now allow me to search for specific conditions - I am using some of the IPTC fields as a way to classif
-
PIRWBUSR - Locked due to incorrect logons
Hello, after installation of XI 7.0 the user PIRWBUSR is locked due to incorrect logons. After unlock the user an set the password new in the XI (su01), SLD and in the Exchange Profile (com.sap.aii.rwb.serviceuser.pwd) the user is locked in the next
-
Personal hotspot option not showing in IOS 8.1.2
I was using personal Hotspot on cellular data "Mobilink" on my 4s , i recently updated to IOS 8.12 and since then this option is gone . Please help
-
Can the DB2 UDB Journaling be considered similar to redo logging in Oracle database?