XML Messages export to Excel
Hi,
In NW2004s PI7, under oracle 10g, windows 2003server...
I would like to export XML messages in excel automatically everyday... do I need some ABAP program or scripts to do that ...
I know how to do manualy..
SXMB_MONI
Monitor for processed XML messages
Execute
spreadsheet
and export to file...
The same above procedure i like to do automatically....
Regards
Thank in Advance
Thanks you so much your reply... sound like very easy basically is not
Very strange, when I go SXMB_MONI all messages are displayed, but when I check SE16 Table: SXMSPMAST2 none of message there... also I treid SE38 to run program... I got ABAP dump error...
I check in SQL to display that table still no entries...
(here is that info. I found out)
Table:XI_AF_MSG has more then 25 fields match with moni records
Table: SXMSPEMAS has more then 3 fields
Table: SXMSPMAST has more then 5 fields
I am not sure I am right track or not
any ohter idea
Similar Messages
-
How to XML Messages Export to Excel
Hi,
In NW2004s PI7, under oracle 10g, windows 2003server...
TR: SXMB_MONI (Integration Engine XML Messsages) how to export these xml messages to in Microsoft Excel - Automatically ?
Do I have to writedown any ABAP program... or is that posible from SQL ?
Is that, XML messages only one table XI_AF_MSG or combine of tables?
Regards
Thank in AdvanceThanks you so much your reply... sound like very easy basically is not
Very strange, when I go SXMB_MONI all messages are displayed, but when I check SE16 Table: SXMSPMAST2 none of message there... also I treid SE38 to run program... I got ABAP dump error...
I check in SQL to display that table still no entries...
(here is that info. I found out)
Table:XI_AF_MSG has more then 25 fields match with moni records
Table: SXMSPEMAS has more then 3 fields
Table: SXMSPMAST has more then 5 fields
I am not sure I am right track or not
any ohter idea -
Why we need to conver Context Node data into XML file----Export to Excel
Hi All,
Let me clarify my dought........today i have gone through the concept of "Exporting Context Data Using the Webdynpro Binary cache" in SAP Online Help.
From the SAP Online Help pdf document, i have found that, the context node data has been converted first in to XML file,after that file had been stored in the web dynpor binary cache...bla....bla.........
Here my qtn is why they had converted context node data into XML file. With out doing that can not we export context node data to excel file..?
Regards
Seshu
Edited by: Sesshanna D on Dec 19, 2007 7:25 AMHi Sesshanna,
it is not neccessary to do that but xml has the advantage, that it can be easily transformed into every output format that might occur in later project stages.
If it's simply about blowing out some Excel, I suggest using an OSS library such as jexcelAPI or Jakarta POI and building the Excel how you need it.
regards,
Christian -
JMS Message Export/Import XML on command line
I need a command line (JAVA or WLST) to reproduce the Weblogic consol JMS message export and import to migrate manually message from a queue to another (online without filestore).
There is an entry on the Weblogic console that export one or all message to an XML format file and the import command to reload this XML file.
any idea of a java code used by the console or a jython fonction ?The following might be enough to get you started:
For scripting and tracing examples, see the July 29th and August 10th 2009 newsgroup post with subject "Example using of getMessage(s) with JMS error queues?" [ here | http://forums.oracle.com/forums/thread.jspa?messageID=3657916] and the June 10th 2009 newsgroup post with subject "JMSDestinationRuntimeMBean - possible STATE values " [ here | http://forums.oracle.com/forums/thread.jspa?messageID=3531603 ]. Also take a look at the +Sept 23 2009 newsgroup posts with subject "Enable JMS - Queue/Topic Trace on console"+ [ here | http://forums.oracle.com/forums/thread.jspa?messageID=3782486].
+WARNING: Exporting too many messages at a time can cause out-of-memory errors.+
Tom -
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 Error in SQL Server 2014 Report Builder/Viewer
Hi,
I am using the 2014 version of ReportViewer in a WinForm to display an RDL report.
The report was originally created in Report Builder 2.0 (SQL 2008 R2), but has since been edited in Report Builder 3.0 (SQL 2014).
The report loads and displays OK, and even exports to Word and PDF. But when exporting to Excel and then opening the Excel document, the following error occurs:
"We found a problem with some content in <filename>. Do you want us to try and recover as much as we can? If you trust the source of this workbook, click Yes."
If you click Yes, then a second message appears:
"Removed Part: /xl/styles.xml part. (Styles)
Repaired Records: Cell information from /xl/worksheets/sheet1.xml part"
The Excel document then opens, and the data is there, but there is no formatting (no border columns, colours, bolds etc.)
The three interesting things are:
- When exported from SQL 2008 R2 Report Builder 3.0, which exports to .xsl instead of .xslx, it works
- A brand new report created in 2014 Report Builder 3.0 exports to .xslx great
- In Report Builder 2014, I stripped everything back and removed all rows and columns so the original table in the report only has one empty row and column it the export still errors - it is only by removing the original table and creating a brand new table
that export works OK
It appears to be a problem with the tablix, but ideally we don't want to have to recreate our reports from scratch to fix this issue.
Has anyone come across an issue like this before, and know of any potential resolutions to it?
Thank you.Hello,
Based on your description, you render a report originally created in Report Builder 2.0 (SQL 2008 R2) and export the report to excel with format of Excel 2007-2010.
Edit the report in Report Builder will not upgrader the report. In that case the report still with SSRS 2008 R2 RDL schema. Please try to upgrade the report by open the report in Report Designer in SQL Server Data Tools (SSDT) and then try again.
If you don’t want to upgrade the report, please try to export the report
with Excel 2003 rendering extension and check if the issue persists.
The SQL Server 2014 and SQL Server 2012 Reporting Services Excel rendering extension renders a report to the native format of Microsoft Excel 2007-2010 with .xlsx as file extension. Only the Excel rendering extension is available by default.
You must update the Reporting Services configuration files to make the Excel 2003 rendering extension available.
For example, changing the value of Visible to
true in the following line in the RSReportServer.config:
<Extension Name="EXCEL" Type="Microsoft.ReportingServices.Rendering.ExcelRenderer.ExcelRenderer,Microsoft.ReportingServices.ExcelRendering"
Visible="true"/>
Reference:Upgrade Reports
Exporting to Microsoft Excel (Report Builder and SSRS)
Regards,
Fanny Liu
Fanny Liu
TechNet Community Support -
Export to Excel and File Upload is not working on ipad/IPhone
Hi
We have a site in ASP.Net 2008 which is running on browsers and devices. There is an option to export to excel and file uploadd, It is working in the browsers but not working in Devices like IPad and Iphone. we are creating xml file when export to excel. We have tried it on IPad1,IPad3 and iphone3.
can you please elaborate the causes of these issues? Pleas support to fix the issues.
Regards,
ManojHow does your PL/SQL for the saving of uploaded files looks like? Where does this error happen? Does your process have an error message?
Denes Kubicek
http://deneskubicek.blogspot.com/
http://www.opal-consulting.de/training
http://apex.oracle.com/pls/otn/f?p=31517:1
------------------------------------------------------------------- -
After Export to Excel File error while opening using xmlwriter in silverlight
Can one help me in fixing following issue after to export to excel had done iam getting following error message
"The file you are trying to open, 'test.xls', is in a different format than specified by the file extension. Verify that the file is not corrupted and is from a trusted source before opening the file. Do uou want to open the file now ?"
If i click Yes file opens correctly but it shows above message . Can any one suggest me how to avoid this programatically with the following code.
I tried by changing the file saving as .xls to .xlsx but it doesnt works.
Public Sub Export()
Dim ss As String = "urn:schemas-microsoft-com:office:spreadsheet"
Dim DataType As String
Dim DataValue As Object
'Dim DataView As C1.Silverlight.Data.DataView = m_DataGrid.ItemsSource
'Dim ItemsSource As C1.Silverlight.Data.DataTable = DataView.Table
Dim XmlSettings As XmlWriterSettings
Dim ColumnBinding As Binding
Dim FieldName As String
Dim DataGridColumn As C1.Silverlight.DataGrid.DataGridColumn
Dim ColumnIndex As Integer
Dim J As Integer
Dim DataGridRow As C1.Silverlight.DataGrid.DataGridRow
Dim CommonUtil As New GoldCRM.Core.Common.Util
Dim PropertyInfo As System.Reflection.PropertyInfo
Dim CellFormat As String
Try
If m_DataGrid.Rows.Count = 0 Then Exit Try
XmlSettings = New XmlWriterSettings
XmlSettings.Indent = True
XmlSettings.NewLineOnAttributes = False
Using myXML As XmlWriter = XmlWriter.Create(m_Stream, XmlSettings)
With myXML
.WriteStartDocument()
.WriteProcessingInstruction("mso-application", "progid=" & ControlChars.Quote & "Excel.Sheet" & ControlChars.Quote)
.WriteStartElement("Workbook", ss)
.WriteStartElement("DocumentProperties", "urn:schemas-microsoft-com:office:office")
.WriteElementString("Author", m_DocumentProperties.Author)
.WriteElementString("LastAuthor", String.Format("{0} {1}", Application.Current.Resources("EmpFirstName"), Application.Current.Resources("EmpLastName")))
.WriteElementString("Created", m_DocumentProperties.Created)
.WriteElementString("LastSaved", m_DocumentProperties.LastSaved)
.WriteElementString("Company", Application.Current.Resources("REPORTINGSITENAME"))
.WriteElementString("Version", m_DocumentProperties.Version)
.WriteEndElement() 'Document Properties
.WriteStartElement("ExcelWorkbook", "urn:schemas-microsoft-com:office:excel")
.WriteElementString("WindowHeight", m_WorkbookProperties.WindowHeight)
.WriteElementString("WindowWidth", m_WorkbookProperties.WindowWidth)
.WriteElementString("WindowTopX", m_WorkbookProperties.WindowTopX)
.WriteElementString("WindowTopY", m_WorkbookProperties.WindowTopY)
.WriteElementString("ProtectStructure", m_WorkbookProperties.ProtectStructure)
.WriteElementString("ProtectWindows", m_WorkbookProperties.ProtectWindows)
.WriteEndElement() 'Excel Workbook
.WriteStartElement("Styles")
For I As Integer = 0 To m_Styles.Count - 1
.WriteStartElement("Style")
.WriteAttributeString("ss", "ID", ss, m_Styles(I).ID)
If m_Styles(I).Name <> "" Then
.WriteAttributeString("ss", "Name", ss, m_Styles(I).Name)
End If
'ALIGNMENT LOGIC:
.WriteStartElement("Alignment")
If Not m_Styles(I).Alignment Is Nothing Then
If m_Styles(I).Alignment.Horizontal <> 0 Then
.WriteAttributeString("ss", "Horizontal", ss, m_Styles(I).Alignment.Horizontal.ToString)
End If
If m_Styles(I).Alignment.Vertical <> 0 Then
.WriteAttributeString("ss", "Vertical", ss, m_Styles(I).Alignment.Vertical.ToString)
End If
If m_Styles(I).Alignment.WrapText = True Then
.WriteAttributeString("ss", "WrapText", ss, "1")
End If
End If
.WriteEndElement()
'BORDER LOGIC:
.WriteStartElement("Borders")
.WriteStartElement("Border")
.WriteAttributeString("ss", "Position", ss, "Bottom")
.WriteAttributeString("ss", "LineStyle", ss, "Continuous")
.WriteAttributeString("ss", "Weight", ss, "1")
.WriteEndElement() 'Border
.WriteStartElement("Border")
.WriteAttributeString("ss", "Position", ss, "Left")
.WriteAttributeString("ss", "LineStyle", ss, "Continuous")
.WriteAttributeString("ss", "Weight", ss, "1")
.WriteEndElement() 'Border
.WriteStartElement("Border")
.WriteAttributeString("ss", "Position", ss, "Right")
.WriteAttributeString("ss", "LineStyle", ss, "Continuous")
.WriteAttributeString("ss", "Weight", ss, "1")
.WriteEndElement() 'Border
.WriteStartElement("Border")
.WriteAttributeString("ss", "Position", ss, "Top")
.WriteAttributeString("ss", "LineStyle", ss, "Continuous")
.WriteAttributeString("ss", "Weight", ss, "1")
.WriteEndElement() 'Border
.WriteEndElement() 'Borders
'FONT LOGIC:
.WriteStartElement("Font")
Dim myFont As Excel.Styles.Font = m_Styles(I).Font
.WriteAttributeString("ss", "FontName", ss, myFont.FontName.ToString)
.WriteAttributeString("ss", "Size", ss, myFont.Size)
.WriteAttributeString("ss", "Color", ss, myFont.Color.ToString.Remove(1, 2))
If myFont.Bold = True Then .WriteAttributeString("ss", "Bold", ss, "1")
If myFont.Italic = True Then .WriteAttributeString("ss", "Italic", ss, "1")
If myFont.Underline <> 0 Then .WriteAttributeString("ss", "Underline", ss, myFont.Underline.ToString)
.WriteEndElement()
Dim myInterior As Excel.Styles.Interior = m_Styles(I).Interior
.WriteStartElement("Interior")
.WriteAttributeString("ss", "Color", ss, myInterior.Color.ToString.Remove(1, 2))
.WriteAttributeString("ss", "Pattern", ss, "Solid")
.WriteEndElement()
.WriteStartElement("NumberFormat")
.WriteEndElement()
.WriteStartElement("Protection")
.WriteEndElement()
.WriteEndElement() 'Style
Next I
.WriteStartElement("Style")
.WriteAttributeString("ss", "ID", ss, "DateStyle")
.WriteStartElement("NumberFormat")
.WriteAttributeString("ss", "Format", ss, "General Date")
.WriteEndElement() 'NumberFormat
.WriteEndElement() 'Style
.WriteStartElement("Style")
.WriteAttributeString("ss", "ID", ss, "HeaderStyle")
.WriteStartElement("Font")
.WriteAttributeString("x", "Family", ss, "Swiss")
.WriteAttributeString("ss", "Bold", ss, "1")
.WriteEndElement() 'Font
.WriteEndElement() 'Style
.WriteEndElement() 'Styles
'WORKSHEETS:
.WriteStartElement("Worksheet")
.WriteAttributeString("ss", "Name", ss, "WORKSHEET")
.WriteStartElement("Table")
.WriteAttributeString("ss", "ExpandedColumnCount", ss, m_DataGrid.Columns.Count)
.WriteAttributeString("ss", "ExpandedRowCount", ss, m_DataGrid.Rows.Count + 100) 'Temporary fix: sometimes 1 row is not added.
.WriteAttributeString("ss", "FullColumns", ss, m_DataGrid.Columns.Count)
.WriteAttributeString("ss", "FullRows", ss, m_DataGrid.Rows.Count + 100) 'Temporary fix: sometimes 1 row is not added.
.WriteAttributeString("ss", "DefaultRowHeight", ss, 15)
For Each DataGridColumn In m_DataGrid.Columns
If DataGridColumn.Visibility = Visibility.Visible Then
.WriteStartElement("Column")
If TypeOf DataGridColumn Is C1.Silverlight.DataGrid.DataGridNumericColumn Then
.WriteAttributeString("ss", "AutoFitWidth", ss, 1)
ElseIf TypeOf DataGridColumn Is C1.Silverlight.DataGrid.DataGridDateTimeColumn Then
.WriteAttributeString("ss", "AutoFitWidth", ss, 1)
Else
.WriteAttributeString("ss", "AutoFitWidth", ss, 0)
End If
If DataGridColumn.Width.Value <= 100 Then
.WriteAttributeString("ss", "Width", ss, 100)
Else
.WriteAttributeString("ss", "Width", ss, DataGridColumn.Width.Value)
End If
.WriteEndElement()
End If
Next
J = 0
For Each DataGridRow In m_DataGrid.Rows
J += 1
If TypeOf DataGridRow Is GoldCRM.Controls.Filter.clsFilterRow Then
.WriteStartElement("Row")
.WriteAttributeString("ss", "Index", ss, J)
.WriteAttributeString("ss", "AutoFitHeight", ss, 0)
.WriteAttributeString("ss", "Height", ss, 15)
ColumnIndex = 0
For Each DataGridColumn In m_DataGrid.Columns
If DataGridColumn.Visibility = Visibility.Visible Then
FieldName = String.Empty
If TypeOf DataGridColumn Is DataGridBoundColumn Then
ColumnBinding = TryCast(DataGridColumn, DataGridBoundColumn).Binding
If ColumnBinding.Path IsNot Nothing Then
FieldName = ColumnBinding.Path.Path
End If
ElseIf TypeOf DataGridColumn Is DataGridTemplateColumn Then
If DataGridColumn.FilterMemberPath IsNot Nothing Then
FieldName = DataGridColumn.FilterMemberPath.Trim
End If
End If
If Not FieldName.Equals(String.Empty) Then
ColumnIndex += 1
.WriteStartElement("Cell")
.WriteAttributeString("ss", "Index", ss, ColumnIndex)
.WriteAttributeString("ss", "MergeAcross", ss, 0)
.WriteAttributeString("ss", "StyleID", ss, "HeaderStyle")
.WriteStartElement("Data")
.WriteAttributeString("ss", "Type", ss, "String")
If DataGridColumn.Header IsNot Nothing Then
.WriteValue(DataGridColumn.Header.ToString)
Else
.WriteValue("")
End If
.WriteEndElement() 'Data
.WriteEndElement() 'Cell
End If
End If
Next
.WriteEndElement() 'Row
End If
If Not (TypeOf DataGridRow Is GoldCRM.Controls.Filter.clsFilterRow) Then
.WriteStartElement("Row")
.WriteAttributeString("ss", "Index", ss, J + 1)
.WriteAttributeString("ss", "AutoFitHeight", ss, 0)
.WriteAttributeString("ss", "Height", ss, 15)
ColumnIndex = 0
For Each DataGridColumn In m_DataGrid.Columns
If DataGridColumn.Visibility = Visibility.Visible Then
FieldName = String.Empty
If TypeOf DataGridColumn Is DataGridBoundColumn Then
ColumnBinding = TryCast(DataGridColumn, DataGridBoundColumn).Binding
If ColumnBinding.Path IsNot Nothing Then
FieldName = ColumnBinding.Path.Path
End If
ElseIf TypeOf DataGridColumn Is DataGridTemplateColumn Then
If DataGridColumn.FilterMemberPath IsNot Nothing Then
FieldName = DataGridColumn.FilterMemberPath.Trim
End If
End If
If Not FieldName.Equals(String.Empty) Then
ColumnIndex += 1
Dim DataCellValue As Object = Nothing
If Not (TypeOf DataGridRow Is GoldCRM.Controls.Filter.clsFilterRow) Then
PropertyInfo = CommonUtil.GetProperty(DataGridRow.DataItem, FieldName)
If PropertyInfo IsNot Nothing Then
DataCellValue = PropertyInfo.GetValue(DataGridRow.DataItem, Nothing)
End If
End If
CellFormat = String.Empty
If DataCellValue IsNot Nothing Then
Select Case DataCellValue.GetType.Name.ToUpper
Case "BitmapImage".ToUpper
DataValue = "Image"
DataType = "String"
Case "Hyperlink".ToUpper
DataType = "String"
DataValue = "Hyperlink"
Case "Decimal".ToUpper
DataType = "Number"
DataValue = DataCellValue
Case "DateTime".ToUpper
If CType(DataCellValue, Date).Year > 1900 Then
DataType = "DateTime"
DataValue = DataCellValue
CellFormat = "DateStyle"
Else
DataType = "String"
DataValue = DataCellValue
End If
Case Else
DataType = "String"
DataValue = DataCellValue
End Select
Else
DataType = "String"
DataValue = String.Empty
End If
.WriteStartElement("Cell")
.WriteAttributeString("ss", "Index", ss, ColumnIndex)
.WriteAttributeString("ss", "MergeAcross", ss, 0)
If Not CellFormat.Equals(String.Empty) Then
.WriteAttributeString("ss", "StyleID", ss, CellFormat)
End If
.WriteStartElement("Data")
.WriteAttributeString("ss", "Type", ss, DataType)
.WriteValue(DataValue)
.WriteEndElement() 'Data
.WriteEndElement() 'Cell
End If
End If
Next
.WriteEndElement() 'Row
End If
Next
.WriteEndElement() 'Table
.WriteEndElement() 'Worksheet
.WriteEndElement() 'Workbook
.WriteEndDocument()
.Close()
End With
End Using
Catch ex As Exception
Throw New Exception(ex.Message, ex)
Finally
If m_Stream IsNot Nothing Then
m_Stream.Close()
m_Stream.Dispose()
End If
m_Stream = Nothing
m_DataGrid.IsLoading = False
DataValue = Nothing
'DataView = Nothing
'ItemsSource = Nothing
XmlSettings = Nothing
ColumnBinding = Nothing
DataGridColumn = Nothing
End Try
End Sub
KrishnaHi,
i have the same issue now where i need to populate the xport file name as report name. can you send me your solution please. -
Export to Excel – XLS file formatting
Hi,
I have created process that exports report to XLS file. I write XLS file using XML tags, supported by Excel, which allow me to format each cell (especially look and data type). Unfortunately I can’t force Excel to see cell as date-cell.
I’m getting from database date in YYYY-MM-DD format and I want the same in Excel. I can export it as string value, but I want Excel to see it as date – not string.
This code works fine:
<ss:Cell><ss:Data ss:Type="String">'||x.begin_date||'</ss:Data></ss:Cell>
but Excel see the cell as a string.
I want something like that:
<ss:Cell><ss:Data ss:Type="Date">'||x.prnm_short_name||'</ss:Data></ss:Cell>
but this one doesn’t work, as well as “DateTime” type.
Do you know how to solve this problem?
Regards,
Przemek
Edited by: Przemek on 2008-11-14 13:11Here is a sample of how you can create a procedure from an EXCEL file.
1. create, format and save Excel file as an XML file
2. edit file to add" htp.p(' " tags to begining of each line and "')';" tags to the end of the lines
3. add standard header tags at start of file (see code below)
4. add standard end tags at end of file (see code below)
5. grant excute privileges as required
6. test procedure: from browser (http://.../apex/owner.excel_rpt in this case; you do not need to use apex to do this
- you might want to secure the procedure once you got it running by limiting it to run only from your app
CREATE OR REPLACE PROCEDURE excel_rpt (fname VARCHAR2 DEFAULT 'excel_rpt.xls')
IS
-- query to get data; can be used in CURSOR LOOOP to fill in report
CURSOR rpt_cur IS
SELECT PROGNAME, user_name, priv, dept
FROM test_data;
BEGIN
-- standard header to open file in EXCEL application -- REQUIRED
owa_util.mime_header( nvl(NULL,'application/octet'), FALSE );
htp.p('Content-Disposition: attachment; filename="' || fname || '"');
owa_util.http_header_close;
-- to get this, save your Excel file as XML, open in editor (I used Notepad++),
-- prepend "htp.p(' to all the line", postpend "');" to all lines
htp.p('<?xml version="1.0" encoding="UTF-8" standalone="yes"?>');
htp.p('<?mso-application progid="Word.Document"?> ');
htp.p('<w:wordDocument
xmlns:w="http://schemas.microsoft.com/office/word/2003/wordml"
xmlns:v="urn:schemas-microsoft-com:vml"
xmlns:w10="urn:schemas-microsoft-com:office:word"
xmlns:sl="http://schemas.microsoft.com/schemaLibrary/2003/core"
xmlns:aml="http://schemas.microsoft.com/aml/2001/core"
xmlns:wx="http://schemas.microsoft.com/office/word/2003/auxHint"
xmlns:o="urn:schemas-microsoft-com:office:office"
xmlns:dt="uuid:C2F41010-65B3-11d1-A29F-00AA00C14882"
xmlns:wsp="http://schemas.microsoft.com/office/word/2003/wordml/sp2"
xmlns:st1="urn:schemas-microsoft-com:office:smarttags"
w:macrosPresent="no"
w:embeddedObjPresent="no"
w:ocxPresent="no"
xml:space="preserve">');
htp.p('<w:ignoreElements w:val="http://schemas.microsoft.com/office/word/2003/wordml/sp2"/>');
htp.p('<o:SmartTagType o:namespaceuri="urn:schemas-microsoft-com:office:smarttags" o:name="PlaceType"/>');
-- : deleted FOR brevity
htp.p('</wx:sect>');
htp.p('</w:body>');
htp.p('</w:wordDocument>');
-- standard closing tags -- REQUIRED
HTMLDB_APPLICATION.g_unrecoverable_error := TRUE;
END excel_rpt;
GRANT EXECUTE ON excel_rpt TO PUBLIC; -
Export to excel/word/ppt failed at Web Analysis studio
Hi,
I open a document and right click to select export data and select Microsoft excel or word or ppt, and after input the file name, it will prompt an error message saying "can not export to file".
Is there any prerequisite to use the Export to Excel/Word/PPT functionalities at Web analysis studio of EPM 11.1.2? Do I need to install office at the server side?
Or I need specific version of office at client?
ThanksFrom memory: you need to have MSOffice installed on the report/print server and also the corresponding mimetypes added to workspace.
-
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 -
Crystal Reports for Eclipse ver. 2 fails on export to excel
I have downloaded crystal reports for eclipse version 2 (full eclipse setup) and created the sample project.
The new version of JRC looks awesome on the browser. Finally the visual appeal is as good as the .NET version.
However I am having a problem with the export to excel feature. When I select export to excel, I get the following exception
Update: I just realized this problem exists for all the export options
SEVERE: Servlet.service() for servlet CrystalReportViewerServlet threw exception
com.businessobjects.report.web.shared.WebReportingException: getOutputStream() has already been called for this response----
(Full Exception pasted below the message)
I have not made any changes to the sample crystal reports project so I am not really sure what i am missing.
I have Microsoft Vista Ultimate with Crystal Reports 2008 trial version installed.
I have configured eclipse with Tomcat 6.0 and JDK/JRE 1.6
Any help would be appreciated.
Thanks
SEVERE: Servlet.service() for servlet CrystalReportViewerServlet threw exception
com.businessobjects.report.web.shared.WebReportingException: getOutputStream() has already been called for this response---- Error code:0
+ at com.businessobjects.report.web.e.if(Unknown Source)+
+ at com.businessobjects.report.web.e.a(Unknown Source)+
+ at com.crystaldecisions.report.web.ServerControl.a(Unknown Source)+
+ at com.crystaldecisions.report.web.ServerControl.processHttpRequest(Unknown Source)+
+ at com.crystaldecisions.report.web.viewer.CrystalReportViewerServlet.a(Unknown Source)+
+ at com.crystaldecisions.report.web.viewer.CrystalReportViewerServlet.doPost(Unknown Source)+
+ at javax.servlet.http.HttpServlet.service(HttpServlet.java:710)+
+ at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)+
+ at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)+
+ at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)+
+ at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)+
+ at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)+
+ at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)+
+ at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)+
+ at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)+
+ at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:263)+
+ at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)+
+ at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:584)+
+ at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)+
+ at java.lang.Thread.run(Unknown Source)+
Edited by: Avinash Tauro on Feb 5, 2009 7:43 AMI searched on scn and got the listing you mentioned.
The jsp code I am using is as follows.
<%@ page contentType="text/html; charset=UTF-8" pageEncoding="ISO-8859-1" %><%@ taglib uri="/crystal-tags-reportviewer.tld" prefix="crviewer" %><crviewer:viewer reportSourceType="reportingComponent" viewerName="CrystalReport1-viewer" reportSourceVar="CrystalReport1" isOwnPage="true"><crviewer:report reportName="CrystalReport1.rpt" /></crviewer:viewer>
And I get the following exception on selecting any export.
WebReportingException: getOutputStream() has already been called...
So I think maybe this problem is not the same as listed under SAP Note 1199025.
Also the strange thing is I just download the full ganymede version with crystal report for eclipse version 2, and created a default crystal reports website.
The samples were provided automatically, and I have not written any code myself.
Any help would be appreciated.
Regards
Avinash Tauro -
Error when exporting to Excel for SharePoint 2010 List
We have few users who are getting the following error message when they try to export to Excel from the SharePoint list:
"An operation that uses the database driver could not be completed. If the driver is a Microsoft driver, make sure the driver file isn’t damaged, and if it is, reinstall the driver by reinstalling Microsoft Query. For other drivers, contact
your database administrator or driver vendor.‘
The export option works for me on my machine and also tested it out on other users' machines without issues. The list is currently holds 29763 items.
1. Created a view that filter the list to show few items, and the user was able to export without issues.
2. Followed the steps in the following Blog:
http://www.sharepointserverrecovery.com/blog/troubleshooting-problems-when-exporting-sharepoint-list-data-to-excel-spreadsheet-and-fixing-database-corruption/ and the user was able to export the original list.
3. My colleagues and I don't have any issues exporting to Excel. (Note: even my test account, that does not have any special permissions or members of any SharePoint group(s)).
4. Some Blog/Forums suggest to increase Threshold limit in Central Admin, which we don't want to do, since the issue only affect certain users.
Any idea on how to troubleshoot/resolve the issue?
Thanks,
YassarDo they have to export all the information or is a subset of it ok?
Creating an index on the columns that your users interact with the most and then creating views that limit the returned results will be useful. This will then allow an export. -
Reading the XML message from Xi stored in XML format from a abap program.
Hi Gurus,
My requirement here is to read the data that will be coming from Xi from my custom abap program and updating 2 data base tables. The method is after the data mapping is done a class is generated in abap proxy in which a method is available. Inside the method i am writing the code for getting the Xi data stored as a payload message which can be seen in the transaction SXMB_MONI. My code is given below.
***begin code***
method ZII_PAYROLL_HEADER_IN~PAYROLL_HEADER_IN.
**** INSERT IMPLEMENTATION HERE **** ***
data: ln type i.
DATA: i_items TYPE TABLE OF ZPAYLOAD_WRAPPER_EMPLOYEE_REC3.
*DATA: wa_items type ZPAYLOAD_WRAPPER_EMPLOYEE_TAB5.
data: wa_items type ZPAYLOAD_WRAPPER_EMPLOYEE_REC3.
DATA:PERNR TYPE STRING.
*data: it_ZPAYLOAD_WRAPPER16 TYPE ZPAYLOAD_WRAPPER16.
I_ITEMS[] = INPUT-PAYLOAD_WRAPPER-BODY-XMLDOC-PAYROLL_PERIOD_OVERVIEW-EMPLOYEE_RECORD[].
*I_ITEMS = INPUT-payloadWrapper-Body-XMLDOC-PayrollPeriodOverview-EmployeeRecord.
describe table i_items[] lines ln.
endmethod.
**End code***
As per the logic the data stored in the XML message should be avaialble in INPUT-payloadWrapper-Body-XMLDOC-PayrollPeriodOverview-EmployeeRecord which i am assigning to a local internal table in the class.
But in my case there is no data coming in
INPUT-payloadWrapper-Body-XMLDOC-PayrollPeriodOverview-EmployeeRecord.
But i can see the data transffered from XI in the transaction SXMB_MONI->XML message->inbound message->payload.
Is there any way to read the data stored in the XML message in the transaction SXMB_MONI.
Also why the data is not coming in
INPUT-payloadWrapper-Body-XMLDOC-PayrollPeriodOverview-EmployeeRecord inside the class.
If there is any solution for this problem please post it.You can use function module SXMB_GET_MESSAGE_PAYLOAD.
Code snippet:
DATA: ls_mast TYPE sxmspmast,
ls_msgkey TYPE sxmsmkey,
lv_bin_xml TYPE xstring,
lv_str_xml TYPE string.
* select sxmspmast into ls_mast
ls_msgkey-msgid = ls_mast-msgguid.
ls_msgkey-pid = 'RECEIVER'.
CALL FUNCTION 'SXMB_GET_MESSAGE_PAYLOAD'
EXPORTING
im_msgkey = ls_msgkey
im_archive = ' '
im_version = ls_mast-vers
IMPORTING
ex_msg_bytes = lv_bin_xml
EXCEPTIONS
not_authorized = 1
no_message = 2
internal_error = 3
no_payload = 4
OTHERS = 5.
IF sy-subrc EQ 0.
lv_str_xml = cl_soap_moni_helper=>convert_xstring_to_string( xstring_in = lv_bin_xml ).
ENDIF. -
Export to Excel problem in Signal Express 2012
Equipment used: PXIE-8102 CELERON T3100 1.9GHZ Controller Windows 7, PXIE-1071 4 Slot Chassis, PXIE-4140 4-Channel SMU 1.7.5 version.
I am using Signal Express 2012 and the SMU to plot the I/V characteristics of FET and other active devices. I am able to obtain the anticipated curve traced results but I am not able to Export the data to Excel directly from the Data View using the Microsoft Excel option. The error message is: Data could not be sent to Microsoft Excel. Please ensure you have a properly licensed version of Microsoft Excel. See attachment.
We have checked our version of Microsoft Office, it is Professional Plus and has the correct volume license so it does not revert to a home or student version.
I have been able to use the Export to Excel function directly from the Dataview when I was using one of the waveform tutorials supplied with Signal Express so I suspect it is a function of the SMU.
In conversations with an NI support engineer he felt it may be a problem with "an active x call is just not seeing the license for some reason", his suggestion is to drag the data into Excel rather than use the Data view tab. Because the SMU is being used in a production environment it is not really appropriate to have the operator work at this level so I would rather figure a way to have the data exported using the Data View tab.
Anyway please can you let me know if there are any known work around for this issue.
Thank youCalvin1957,
I am not seeing any attachments in the first post or this latest post. The images should be added using the attachments section when creating the post. You should also be able to insert an image using the insert image button in the toolbar. Let me know if you have any questions. Thanks!
Robert B
Applications Engineer
National Instruments
Maybe you are looking for
-
Can two people w/ diff music tastes use iTunes on one computer
Probably a dumb question but forgive me in advance -- I have my iTunes on my computer to fill my iPod Shuffle. A friend is staying with me this summer and wants to fill her iPod Shuffle with some new music, using my computer. And we do NOT like the s
-
I've been getting errors completely randomly.. I've yet to DL Itunes until recently and as I tried to start it up (with a seemingly perfectly fine installation I get this fat *** error.. error is as follows below. An error occoured during the install
-
Printing from MacBook Pro to Appletalk printer
Computer: MacBook Pro OS X 10.4.8 network: wireless via Apple Airport printer: NEC SilentWriter 1097 connected to Ethernet via a Appletalk-to-Ethernet adaptor Here is the situation: When I run the Printer Setup Utility, select "Add Printer," then pre
-
Can parport be used in a applet?
I have been trying to get parport to read and write in an applet but have had no success. It works fine at the command line but when used in the applet it stops my applet program when it comes to executing the read function. My first idea was keep th
-
How to install only iMovie from oringinal install discs?
Hi.I recently got a new Mac running 10.6 and Rosetta. Since I have lots of 3rd party plug-ins that I used with iMovie 5........I would like to install just iMovie 5. I have the original install discs for 10.2 as well as upgrade install discs for 10.4