Exporting data to XML
hi this is naveen...
i had newly started programming in it..
there are some controls on my designer form and i want to submit those filled data to new XML file...
please describe me in detail how could i achieve this....
Didn't you ask this yesterday as well?
You might haven't got answers because, possibly, the XML experts didn't see your post. This is a user-to-user forum, it's not like there is a staff waiting for questions to pop up and immediately answer.
It's also possible your question was too vague. I'm not one of the XML experts so I might be wrong, but I have no idea of what the issue is. What 'controls'? What is a 'designer form'? I've never seen one in InDesign (it might be you are using an unusual name for a perfectly logical subject).
Similar Messages
-
Export data to XML from JSP possible?
I have a small JSP to retrieve data in a Browse form. Is there information on how to save information retrieved in a Browse (or Edit) form to XML output in order for a spreadsheet application (e.g. Excel) to pull up the data? I have not noticed this in the help files. Are there sample codes examples that illustrate this?
Is exporting data to XML even possible using JDeveloper 9.0.3?You can call write XML on your ViewObject to get an XML representation.
If you are using IE you can change the content type for a page to :
<%@ page contentType="application/vnd.ms-excel" %>
This will open excel within your browser. It seems to deal nicely with any data in the page that is formatted in HTML <table> elements.
Matt -
Pdf file not exporting data as xml
Hi
I have created a pdf form in adode livecycle version 8, I have saved it as a adobe acrobat 7 dynamic xml form.
when a user has completed the form I need to export the data as an xml file however there is no data from the form in the xml file.
does anyone know what the problem is?
RegardsHave you saved the PDF as Reader Extended PDF, Enable Additional Features to be able to save data's form?
You must do this is Adobe Acrobat Pro -
XML question export data to XML
I need to export XML in a certain format. This is the first time i need to export XML. What i can do is:
select xmlelement("IDpart",
xmlelement("ID", XMLAttributes( e.ID_SUBID AS "ID_SUBID"),
xmlelement("timeperiod", XMLAttributes( e.start_date AS "startdate"))))
AS "result"
from example e
<IDpart><ID ID_SUBID="2:2_O_2"><timeperiod startdate="2008-01-22"></timeperiod></ID></IDpart>
Create table script
-- DDL for Table EXAMPLE
CREATE TABLE "HR"."EXAMPLE"
( "ID_SUBID" VARCHAR2(20),
"END_DATE" DATE,
"START_DATE" DATE,
"VALUE" NUMBER,
"STATUS" VARCHAR2(5)
-- DATA FOR TABLE EXAMPLE
-- FILTER = none used
-- INSERTING into EXAMPLE
Insert into EXAMPLE (ID_SUBID,END_DATE,START_DATE,VALUE,STATUS) values ('2:2_O_2',to_date('22-JAN-08','DD-MON-RR'),to_date('22-JAN-08','DD-MON-RR'),0.2,'A');
Insert into EXAMPLE (ID_SUBID,END_DATE,START_DATE,VALUE,STATUS) values ('2:2_O_2',to_date('22-JAN-08','DD-MON-RR'),to_date('22-JAN-08','DD-MON-RR'),0.2,'B');
-- END DATA FOR TABLE EXAMPLE
Can you help me to get my output like this?
<IDpart><ID ID_SUBID= "2:2_O_2"/><timeperiod startdate="22-JAN-08"/> <Readings><Reading Value="0.2"> <statuscodes><code>A</code><code>B</code>
</Reading></Readings></IDpart>
---------------------------------------------------My xml does summarize some data but i want it in another format/ range. Can you help me?
My code:-->
SELECT XMLElement("MeterReadingDocument",
XMLAttributes('http://www.w3.org/2001/XMLSchema' AS "xmlns:xsd",
'http://www.w3.org/2001/XMLSchema-instance' AS "xmlns:xsi"),
XMLElement("Channels", XMLElement("Channel",
Xmlelement("ChannelID",xmlattributes(d.CHANNELID_SPCID "IntervalChannelID")),
Xmlelement("ContigiousIntervalSets",xmlelement("ContigiousIntervalSet",
xmlattributes(d.REC_AANTAL "NumberOfReadings"),
Xmlelement("TimePeriod",
xmlattributes(to_char(d.START_TIME, 'dd-mm-yyyy"T"hh24:mi:ss"Z"') “StartTime", to_char(d.END_TIME, 'dd-mm-yyyy"T"hh24:mi:ss"Z"') "EndTime")),
Xmlelement("Readings", xmlelement("Reading",xmlattributes(d.WAARDE "Value"),
Xmlelement("Readingstatus",xmlelement("Unencodedstatus", xmlattributes(d.SOURCE "SourceValidation"),
Xmlelement("StatusCodes", xmlagg(xmlelement("Code", d.DESCRIPTION))))))))))))
.extract('*').getstringval() xml FROM DM_IEE d
where to_char(d.END_TIME, 'dd-mm-yyyy"T"hh24:mi:ss"Z"')= '03-04-2007T09:55:00Z'
Or to_char(d.END_TIME, 'dd-mm-yyyy"T"hh24:mi:ss"Z"')= '03-04-2007T10:00:00Z'
group by d.CHANNELID_SPCID, d.REC_AANTAL, d.START_TIME, d.END_TIME, d.WAARDE, d.SOURCE
My output-->
<MeterReadingDocument xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<Channels>
<Channel>
<ChannelID IntervalChannelID="68979_OP_98189091:10111"/>
<ContigiousIntervalSets>
<ContigiousIntervalSet>
<TimePeriod StartTime="03-04-2007T09:55:00Z" EndTime="03-04-2007T10:00:00Z"/>
<Readings>
<Reading Value="-54.5">
<Readingstatus>
<Unencodedstatus SourceValidation="Passed">
<StatusCodes>
<Code>MANACCEPTED</Code>
<Code>MISSING</Code>
</StatusCodes>
</Unencodedstatus>
</Readingstatus>
</Reading>
</Readings>
</ContigiousIntervalSet>
</ContigiousIntervalSets>
</Channel>
</Channels>
</MeterReadingDocument>
<MeterReadingDocument xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<Channels>
<Channel>
<ChannelID IntervalChannelID="68979_OP_98189091:10111"/>
<ContigiousIntervalSets>
<ContigiousIntervalSet NumberOfReadings="2">
<TimePeriod StartTime="03-04-2007T09:50:00Z" EndTime="03-04-2007T09:55:00Z"/>
<Readings>
<Reading Value="87">
<Readingstatus>
<Unencodedstatus SourceValidation="Passed">
<StatusCodes>
<Code>MANACCEPTED</Code>
<Code>MISSING</Code>
</StatusCodes>
</Unencodedstatus>
</Readingstatus>
</Reading>
<Reading Value="-54.5">
<Readingstatus>
<Unencodedstatus SourceValidation="Passed">
<StatusCodes>
<Code>MANACCEPTED</Code>
<Code>MISSING</Code>
</StatusCodes>
</Unencodedstatus>
</Readingstatus>
</Reading>
</Readings>
</ContigiousIntervalSet>
</ContigiousIntervalSets>
</Channel>
</Channels>
</MeterReadingDocument>
2 rows selected
The output i want:-->
start_time is the start time of the first record and end_date the end_date of the last record. Can you help me?
<MeterReadingDocument xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<Channels>
<Channel>
<ChannelID IntervalChannelID="68979_OP_98189091:10111"/>
<ContigiousIntervalSets>
<ContigiousIntervalSet NumberOfReadings="2">
<TimePeriod StartTime="03-04-2007T09:50:00Z" EndTime="03-04-2007T10:00:00Z"/>
<Readings>
<Reading Value="87">
<Readingstatus>
<Unencodedstatus SourceValidation="Passed">
<StatusCodes>
<Code>MANACCEPTED</Code>
<Code>MISSING</Code>
</StatusCodes>
</Unencodedstatus>
</Readingstatus>
</Reading>
</Readings>
</ContigiousIntervalSet>
</ContigiousIntervalSets>
</Channel>
</Channels>
</MeterReadingDocument> -
Need help in exporting data in to Excel by integrating XML publisher in OAF
Hi All,
I am facing issue while exporting data into Excel by integrating XML publisher in OAF. Everything is working fine except that the report is not uploaded in the Excel sheet. Excel sheet is opening empty.
In OC4J server log an getting the below Exception while exporting the data:
13/06/21 14:31:17 in try b4 creating DT
[062113_023118734][][STATEMENT] debug_mode=on
[062113_023118750][][STATEMENT] xml_tag_case=upper
[062113_023118750][][STATEMENT] Inside parameterParser...
[062113_023118750][][STATEMENT] Parameter:p_last_rev Default value:
[062113_023118750][][STATEMENT] Inside dataQueryParser...
[062113_023118750][][STATEMENT] Inside dataStructureParser...
[062113_023118765][][STATEMENT] Group ...report
[062113_023118765][][STATEMENT] Group ...G_DISPUTE
[062113_023118765][][STATEMENT] Template parsing completed...
[062113_023118765][][STATEMENT] Setting Data Template
[062113_023118765][][STATEMENT] Setting JDBC Connection
13/06/21 14:31:18 after datatemplate
[062113_023118765][][STATEMENT] ***Paramter :p_last_rev Value :419947
[062113_023118765][][STATEMENT] Setting Parameters
[062113_023118765][][STATEMENT] Setting Parameters
13/06/21 14:31:18 after set params
13/06/21 14:31:18 after setOutput
[062113_023118781][][STATEMENT] Start process Data
[062113_023118781][][STATEMENT] Process Data ...
[062113_023118781][][STATEMENT] p_last_rev
[062113_023118812][][STATEMENT] Writing Data ...
[062113_023118843][][STATEMENT] Sql Query :Q_DISPUTE: select f.description "Current_Reviewer",
p.trx_date "Original_Transaction_Date",
h.discr_dt "Create_Date",
h.custid "Customer_Number",
h.cusname "Customer_Name",
h.discr_no "Dispute_Number",
p.amount_due_remaining "Remaining_Amount",
h.last_rev,
a.name
from seacds.ar_payment_schedules_all_sv p,
seaar.seaar_ddt_header h,
seacds.fnd_user_nv f,
seacds.ar_collectors_nv a
where p.trx_number = h.discr_no
and f.user_name = h.last_rev
and nvl(a.employee_id, -999) = nvl(f.employee_id, -987)
and a.attribute1 = 'AR'
and p.class != 'PMT'
and h.clsd_flag = 'N'
and p.org_id = 22
and p.amount_due_remaining > 0
and h.last_rev = decode(:p_last_rev,'ALL',last_rev,:p_last_rev)
order by f.description,h.last_rev
[062113_023118843][][STATEMENT] 1: p_last_rev:419947
[062113_023118843][][STATEMENT] 2: p_last_rev:419947
[062113_023119546][][EVENT] Data Generation Completed...
[062113_023119546][][EVENT] Total Data Generation Time 1.0 seconds
13/06/21 14:31:19 after processData
13/06/21 14:31:19 blobDomain Value :<?xml version="1.0" encoding="UTF-8"?>
<IDIS_OPENEDBYUSER_RPT>
<p_last_rev>419947</p_last_rev>
<LIST_G_DISPUTE>
<G_DISPUTE>
<CURRENT_REVIEWER>NUMFON KIMWANGTAGO</CURRENT_REVIEWER>
<ORIGINAL_TRANSACTION_DATE>2010-10-02T00:00:00.000+05:30</ORIGINAL_TRANSACTION_DATE>
<CREATE_DATE>2011-04-20T00:00:00.000+05:30</CREATE_DATE>
<CUSTOMER_NUMBER>45356000</CUSTOMER_NUMBER>
<CUSTOMER_NAME>HEWLETT PACKARD GMBH</CUSTOMER_NAME>
<DISPUTE_NUMBER>1CZ155358</DISPUTE_NUMBER>
<REMAINING_AMOUNT>945</REMAINING_AMOUNT>
</G_DISPUTE>
</LIST_G_DISPUTE>
</IDIS_OPENEDBYUSER_RPT>
[062113_023120390][oracle.apps.xdo.oa.schema.server.TemplateInputStream][STATEMENT] initStream(): oa-date-validation: null
[062113_023120390][oracle.apps.xdo.oa.schema.server.TemplateInputStream][STATEMENT] initStream(): xdo.TemplateValidation: null
[062113_023120390][oracle.apps.xdo.oa.schema.server.TemplateInputStream][STATEMENT] initStream(): template validation is on
[062113_023121046][][STATEMENT] TemplateHelper.runProcessTemplate() called
[062113_023121062][][EXCEPTION] [DEBUG] ------- Preferences defined PreferenceStore -------
[062113_023121062][][EXCEPTION] [DEBUG] ------- Environment variables stored in EnvironmentStore -------
[062113_023121062][][EXCEPTION] [DEBUG] [ICX_COOKIE_NAME]:[dcap1]
[062113_023121062][][EXCEPTION] [DEBUG] [JDBC:processEscapes]:[true]
[062113_023121062][][EXCEPTION] [DEBUG] [FND_JDBC_IDLE_THRESHOLD.LOW]:[-1]
[062113_023121062][][EXCEPTION] [DEBUG] [APPL_SERVER_ID]:[C1ACC302F183004AE0430A0990B773BA35529272341851546077251405344914]
[062113_023121062][][EXCEPTION] [DEBUG] [FND_JDBC_STMT_CACHE_SIZE]:[100]
[062113_023121062][][EXCEPTION] [DEBUG] [NLS_DATE_LANGUAGE]:[AMERICAN]
[062113_023121062][][EXCEPTION] [DEBUG] [ICX_SESSION_COOKIE_VALUE]:[v1CUM5yeRe9st6ePp4QEmgJhEW]
[062113_023121062][][EXCEPTION] [DEBUG] [ICX_TRANSACTION_ID]:[-1]
[062113_023121062][][EXCEPTION] [DEBUG] [NLS_DATE_FORMAT]:[DD-MON-RRRR]
[062113_023121062][][EXCEPTION] [DEBUG] [RESP_APPL_ID]:[20084]
[062113_023121062][][EXCEPTION] [DEBUG] [LOGIN_ID]:[4444238]
[062113_023121062][][EXCEPTION] [DEBUG] [DB_PORT]:[1533]
[062113_023121062][][EXCEPTION] [DEBUG] [USER_ID]:[2318]
[062113_023121062][][EXCEPTION] [DEBUG] [DISPLAY_LANGUAGE]:[US]
[062113_023121062][][EXCEPTION] [DEBUG] [APPLICATION_ID]:[seagate.oracle.apps.seaar.idispute.report.server.iDisputeOpenedByUserAM]
[062113_023121062][][EXCEPTION] [DEBUG] [NLS_NUMERIC_CHARACTERS]:[.,]
[062113_023121062][][EXCEPTION] [DEBUG] [NLS_LANGUAGE]:[AMERICAN]
[062113_023121062][][EXCEPTION] [DEBUG] [FND_JDBC_BUFFER_MIN]:[1]
[062113_023121062][][EXCEPTION] [DEBUG] [GUEST_USER_PWD]:[GUEST/ORACLE]
[062113_023121062][][EXCEPTION] [DEBUG] [RESP_ID]:[53350]
[062113_023121062][][EXCEPTION] [DEBUG] [NLS_SORT]:[BINARY]
[062113_023121062][][EXCEPTION] [DEBUG] [FND_JDBC_PLSQL_RESET]:[false]
[062113_023121062][][EXCEPTION] [DEBUG] [FND_PROFILE_VALIDATION_ENABLED]:[null]
[062113_023121062][][EXCEPTION] [DEBUG] [FUNCTION_ID]:[-1]
[062113_023121062][][EXCEPTION] [DEBUG] [FND_JDBC_BUFFER_DECAY_SIZE]:[5]
[062113_023121062][][EXCEPTION] [DEBUG] [ICX_PV_SESSION_MODE]:[115J]
[062113_023121062][][EXCEPTION] [DEBUG] [FND_JDBC_CONTEXT_CHECK]:[true]
[062113_023121062][][EXCEPTION] [DEBUG] [FND_JDBC_USABLE_CHECK]:[false]
[062113_023121062][][EXCEPTION] [DEBUG] [APPS_JDBC_URL]:[jdbc:oracle:thin:@(DESCRIPTION=(ADDRESS_LIST=(LOAD_BALANCE=YES)(FAILOVER=YES)(ADDRESS=(PROTOCOL=tcp)(HOST=okdevcl1012b.okla.seagate.com)(PORT=1533))(ADDRESS=(PROTOCOL=tcp)(HOST=okdevcl1012a.okla.seagate.com)(PORT=1533)))(CONNECT_DATA=(SERVICE_NAME=dcap1)))]
[062113_023121062][][EXCEPTION] [DEBUG] [FNDNAM]:[APPS]
[062113_023121062][][EXCEPTION] [DEBUG] [FND_PROXY_USER]:[null]
[062113_023121062][][EXCEPTION] [DEBUG] [TWO_TASK]:[dcap1_balance]
[062113_023121062][][EXCEPTION] [DEBUG] [APPS_JDBC_DRIVER_TYPE]:[THIN]
[062113_023121062][][EXCEPTION] [DEBUG] [DB_HOST]:[okdevcl1012a.okla.seagate.com]
[062113_023121062][][EXCEPTION] [DEBUG] [DBC_FILE_PATH]:[C:\JDEV\jdevhome\jdev\dbc_files\secure\dcap1.dbc]
[062113_023121062][][EXCEPTION] [DEBUG] [FND_JDBC_IDLE_THRESHOLD.HIGH]:[-1]
[062113_023121062][][EXCEPTION] [DEBUG] [SECURITY_GROUP_ID]:[0]
[062113_023121062][][EXCEPTION] [DEBUG] [LANG_CODE]:[US]
[062113_023121062][][EXCEPTION] [DEBUG] [FND_MAX_JDBC_CONNECTIONS]:[500]
[062113_023121062][][EXCEPTION] [DEBUG] [FND_JDBC_BUFFER_DECAY_INTERVAL]:[300]
[062113_023121062][][EXCEPTION] [DEBUG] [USER_NAME]:[505543]
[062113_023121062][][EXCEPTION] [DEBUG] [FND_JDBC_BUFFER_MAX]:[5]
[062113_023121062][][EXCEPTION] [DEBUG] [DB_NAME]:[null]
[062113_023121062][][EXCEPTION] [DEBUG] [NLS_CHARACTERSET]:[AL32UTF8]
[062113_023121062][][EXCEPTION] [DEBUG] [ORG_ID]:[22]
[062113_023121062][][EXCEPTION] [DEBUG] [DB_ID]:[dcap1]
[062113_023121062][][EXCEPTION] [DEBUG] [GWYUID]:[APPLSYSPUB/PUB]
[062113_023121062][][EXCEPTION] [DEBUG] [NLS_TERRITORY]:[AMERICA]
[062113_023121062][][EXCEPTION] [DEBUG] [ICX_SESSION_ID]:[1231277285]
[062113_023121062][][EXCEPTION] [DEBUG] [JDBC:oracle.jdbc.maxCachedBufferSize]:[358400]
[062113_023121062][][EXCEPTION] [DEBUG] ------- Properties stored in Java System Properties -------
[062113_023121062][][EXCEPTION] [DEBUG] [java.vendor]:[Sun Microsystems Inc.]
[062113_023121062][][EXCEPTION] [DEBUG] [ajp.connection.listener.state]:[down]
[062113_023121062][][EXCEPTION] [DEBUG] [sun.management.compiler]:[HotSpot Client Compiler]
[062113_023121062][][EXCEPTION] [DEBUG] [oracle.j2ee.container.version]:[10.1.3.3.0]
[062113_023121062][][EXCEPTION] [DEBUG] [os.name]:[Windows XP]
[062113_023121062][][EXCEPTION] [DEBUG] [sun.boot.class.path]:[C:\JDEV\jdevbin\jdk\jre\lib\rt.jar;C:\JDEV\jdevbin\jdk\jre\lib\i18n.jar;C:\JDEV\jdevbin\jdk\jre\lib\sunrsasign.jar;C:\JDEV\jdevbin\jdk\jre\lib\jsse.jar;C:\JDEV\jdevbin\jdk\jre\lib\jce.jar;C:\JDEV\jdevbin\jdk\jre\lib\charsets.jar;C:\JDEV\jdevbin\jdk\jre\classes]
[062113_023121062][][EXCEPTION] [DEBUG] [sun.desktop]:[windows]
[062113_023121062][][EXCEPTION] [DEBUG] [java.vm.specification.vendor]:[Sun Microsystems Inc.]
[062113_023121062][][EXCEPTION] [DEBUG] [java.runtime.version]:[1.5.0_05-b05]
[062113_023121062][][EXCEPTION] [DEBUG] [com.oracle.corba.ee.security.trusted.clients]:[*]
[062113_023121062][][EXCEPTION] [DEBUG] [oracle.security.jazn.config]:[C:\JDEV\jdevhome\jdev\system\oracle.j2ee.10.1.3.41.57\embedded-oc4j\config\jazn.xml]
[062113_023121062][][EXCEPTION] [DEBUG] [user.name]:[mysub]
[062113_023121062][][EXCEPTION] [DEBUG] [user.language]:[en]
[062113_023121062][][EXCEPTION] [DEBUG] [java.naming.factory.initial]:[com.evermind.server.ApplicationInitialContextFactory]
[062113_023121062][][EXCEPTION] [DEBUG] [sun.boot.library.path]:[C:\JDEV\jdevbin\jdk\jre\bin]
[062113_023121062][][EXCEPTION] [DEBUG] [oc4j.jms.usePersistenceLockFiles]:[false]
[062113_023121062][][EXCEPTION] [DEBUG] [java.version]:[1.5.0_05]
[062113_023121062][][EXCEPTION] [DEBUG] [java.util.logging.manager]:[oracle.classloader.util.ApplicationLogManager]
[062113_023121062][][EXCEPTION] [DEBUG] [user.timezone]:[Asia/Calcutta]
[062113_023121062][][EXCEPTION] [DEBUG] [java.net.preferIPv4Stack]:[true]
[062113_023121062][][EXCEPTION] [DEBUG] [sun.arch.data.model]:[32]
[062113_023121062][][EXCEPTION] [DEBUG] [javax.rmi.CORBA.UtilClass]:[com.sun.corba.ee.impl.javax.rmi.CORBA.Util]
[062113_023121062][][EXCEPTION] [DEBUG] [java.endorsed.dirs]:[C:\JDEV\jdevbin\jdk\jre\lib\endorsed]
[062113_023121062][][EXCEPTION] [DEBUG] [sun.cpu.isalist]:[]
[062113_023121062][][EXCEPTION] [DEBUG] [sun.jnu.encoding]:[Cp1252]
[062113_023121062][][EXCEPTION] [DEBUG] [file.encoding.pkg]:[sun.io]
[062113_023121062][][EXCEPTION] [DEBUG] [DBCFILE]:[C:\JDEV\jdevhome\jdev\dbc_files\secure\dcap1.dbc]
[062113_023121062][][EXCEPTION] [DEBUG] [file.separator]:[\]
[062113_023121062][][EXCEPTION] [DEBUG] [java.specification.name]:[Java Platform API Specification]
[062113_023121062][][EXCEPTION] [DEBUG] [java.class.version]:[49.0]
[062113_023121062][][EXCEPTION] [DEBUG] [user.country]:[US]
[062113_023121062][][EXCEPTION] [DEBUG] [java.home]:[C:\JDEV\jdevbin\jdk\jre]
[062113_023121062][][EXCEPTION] [DEBUG] [java.vm.info]:[mixed mode]
[062113_023121062][][EXCEPTION] [DEBUG] [os.version]:[5.1]
[062113_023121062][][EXCEPTION] [DEBUG] [org.omg.CORBA.ORBSingletonClass]:[com.sun.corba.ee.impl.orb.ORBImpl]
[062113_023121062][][EXCEPTION] [DEBUG] [path.separator]:[;]
[062113_023121062][][EXCEPTION] [DEBUG] [java.vm.version]:[1.5.0_05-b05]
[062113_023121062][][EXCEPTION] [DEBUG] [user.variant]:[]
[062113_023121062][][EXCEPTION] [DEBUG] [java.protocol.handler.pkgs]:[com.evermind.protocol]
[062113_023121062][][EXCEPTION] [DEBUG] [checkForUpdates]:[adminClientOnly]
[062113_023121062][][EXCEPTION] [DEBUG] [java.awt.printerjob]:[sun.awt.windows.WPrinterJob]
[062113_023121062][][EXCEPTION] [DEBUG] [RUN_FROM_JDEV]:[true]
[062113_023121062][][EXCEPTION] [DEBUG] [sun.io.unicode.encoding]:[UnicodeLittle]
[062113_023121062][][EXCEPTION] [DEBUG] [com.sun.jts.pi.INTEROP_MODE]:[false]
[062113_023121062][][EXCEPTION] [DEBUG] [awt.toolkit]:[sun.awt.windows.WToolkit]
[062113_023121062][][EXCEPTION] [DEBUG] [MetaObjectContext]:[oracle.adf.mds.jbo.JBODefManager]
[062113_023121062][][EXCEPTION] [DEBUG] [FND_TOP]:[C:\JDEV\jdevhome\jdev\dbc_files\]
[062113_023121062][][EXCEPTION] [DEBUG] [oracle.j2ee.http.socket.timeout]:[500]
[062113_023121062][][EXCEPTION] [DEBUG] [com.oracle.corba.ee.security.ssl.port]:[5659]
[062113_023121062][][EXCEPTION] [DEBUG] [JRAD_ELEMENT_LIST_PATH]:[C:\JDEV\jdevhome\jdev\myhtml\OA_HTML\jrad\]
[062113_023121062][][EXCEPTION] [DEBUG] [JTFDBCFILE]:[C:\JDEV\jdevhome\jdev\dbc_files\secure\dcap1.dbc]
[062113_023121062][][EXCEPTION] [DEBUG] [com.sun.CORBA.POA.ORBServerId]:[1000000]
[062113_023121062][][EXCEPTION] [DEBUG] [java.naming.factory.url.pkgs]:[oracle.oc4j.naming.url]
[062113_023121078][][EXCEPTION] [DEBUG] [user.home]:[C:\Documents and Settings\mysub]
[062113_023121078][][EXCEPTION] [DEBUG] [java.specification.vendor]:[Sun Microsystems Inc.]
[062113_023121078][][EXCEPTION] [DEBUG] [oracle.home]:[C:\JDEV\jdevbin]
[062113_023121078][][EXCEPTION] [DEBUG] [oracle.dms.sensors]:[5]
[062113_023121078][][EXCEPTION] [DEBUG] [java.library.path]:[C:\JDEV\jdevbin\jdk\bin;.;C:\WINNT\system32;C:\WINNT;D:\oracle\product\10.1.0\Db_1\bin;D:\oracle\product\10.1.0\Db_1\jre\1.4.2\bin\client;D:\oracle\product\10.1.0\Db_1\jre\1.4.2\bin;C:\WINNT\system32;C:\WINNT;C:\WINNT\System32\Wbem;C:\Program Files\Windows Imaging\;D:\oracle\product\10.1.0\Db_1\jdk\jre\bin;D:\oracle\product\10.1.0\Db_1\jdk\jre\bin\client;D:\oracle\product\10.1.0\Db_1\jlib;]
[062113_023121078][][EXCEPTION] [DEBUG] [java.vendor.url]:[http://java.sun.com/]
[062113_023121078][][EXCEPTION] [DEBUG] [javax.rmi.CORBA.StubClass]:[com.sun.corba.ee.impl.javax.rmi.CORBA.StubDelegateImpl]
[062113_023121078][][EXCEPTION] [DEBUG] [oracle.j2ee.dont.use.memory.archive]:[true]
[062113_023121078][][EXCEPTION] [DEBUG] [java.vm.vendor]:[Sun Microsystems Inc.]
[062113_023121078][][EXCEPTION] [DEBUG] [java.runtime.name]:[Java(TM) 2 Runtime Environment, Standard Edition]
[062113_023121078][][EXCEPTION] [DEBUG] [java.class.path]:[C:\JDEV\jdevbin\jdk\jre\lib\rt.jar;C:\JDEV\jdevbin\jdk\jre\lib\jsse.jar;C:\JDEV\jdevbin\jdk\jre\lib\jce.jar;C:\JDEV\jdevbin\jdk\jre\lib\charsets.jar;C:\JDEV\jdevbin\jdk\jre\lib\ext\dnsns.jar;C:\JDEV\jdevbin\jdk\jre\lib\ext\localedata.jar;C:\JDEV\jdevbin\jdk\jre\lib\ext\sunjce_provider.jar;C:\JDEV\jdevbin\jdk\jre\lib\ext\sunpkcs11.jar;C:\JDEV\jdevbin\j2ee\home\oc4j-api.jar;C:\JDEV\jdevbin\j2ee\home\lib\oc4j-unsupported-api.jar;C:\JDEV\jdevbin\j2ee\home\lib\activation.jar;C:\JDEV\jdevbin\j2ee\home\lib\mail.jar;C:\JDEV\jdevbin\j2ee\home\lib\persistence.jar;C:\JDEV\jdevbin\j2ee\home\lib\ejb30.jar;C:\JDEV\jdevbin\j2ee\home\lib\ejb.jar;C:\JDEV\jdevbin\j2ee\home\lib\javax77.jar;C:\JDEV\jdevbin\j2ee\home\lib\javax88.jar;C:\JDEV\jdevbin\j2ee\home\lib\servlet.jar;C:\JDEV\jdevbin\j2ee\home\lib\jms.jar;C:\JDEV\jdevbin\j2ee\home\lib\jta.jar;C:\JDEV\jdevbin\j2ee\home\lib\jacc-api.jar;C:\JDEV\jdevbin\j2ee\home\lib\connector.jar;C:\JDEV\jdevbin\j2ee\home\lib\jmx_remote_api.jar;C:\JDEV\jdevbin\j2ee\home\lib\jax-qname-namespace.jar;C:\JDEV\jdevbin\webservices\lib\jaxr-api.jar;C:\JDEV\jdevbin\webservices\lib\jaxrpc-api.jar;C:\JDEV\jdevbin\webservices\lib\saaj-api.jar;C:\JDEV\jdevbin\webservices\lib\jws-api.jar;C:\JDEV\jdevbin\j2ee\home\lib\oc4j-internal.jar;C:\JDEV\jdevbin\j2ee\home\lib\oems-jms-oc4j.jar;C:\JDEV\jdevbin\j2ee\home\lib\oems-jms-client.jar;C:\JDEV\jdevbin\j2ee\home\lib\oems-jms-server.jar;C:\JDEV\jdevbin\j2ee\home\lib\oc4j-schemas.jar;C:\JDEV\jdevbin\j2ee\home\lib\ojsp.jar;C:\JDEV\jdevbin\j2ee\home\lib\oc4j_orb.jar;C:\JDEV\jdevbin\j2ee\home\lib\iiop_support.jar;C:\JDEV\jdevbin\j2ee\home\lib\orbbase.jar;C:\JDEV\jdevbin\j2ee\home\iiop_gen_bin.jar;C:\JDEV\jdevbin\j2ee\home\lib\jmxcluster.jar;C:\JDEV\jdevbin\j2ee\home\jaccprovider.jar;C:\JDEV\jdevbin\javavm\lib\jasper.zip;C:\JDEV\jdevbin\j2ee\home\lib\adminclient.jar;C:\JDEV\jdevbin\opmn\lib\optic.jar;C:\JDEV\jdevbin\j2ee\home\jacc-spi.jar;C:\JDEV\jdevbin\j2ee\home\jazncore.jar;C:\JDEV\jdevbin\j2ee\home\jazn.jar;C:\JDEV\jdevbin\jlib\ospnego.jar;C:\JDEV\jdevbin\jlib\ldapjclnt10.jar;C:\JDEV\jdevbin\webservices\lib\wsserver.jar;C:\JDEV\jdevbin\webservices\lib\wsif.jar;C:\JDEV\jdevbin\webservices\lib\orawsmetadata.jar;C:\JDEV\jdevbin\webservices\lib\orajaxr.jar;C:\JDEV\jdevbin\jlib\jssl-1_1.jar;C:\JDEV\jdevbin\jlib\ojmisc.jar;C:\JDEV\jdevbin\toplink\jlib\toplink-oc4j.jar;C:\JDEV\jdevbin\diagnostics\lib\ojdl2.jar;C:\JDEV\jdevbin\xqs\lib\xqs-api.jar;C:\JDEV\jdevbin\xqs\lib\xds.jar;C:\JDEV\jdevbin\jdev\lib\jdev-oc4j-embedded.jar;C:\JDEV\jdevbin\j2ee\home\lib\pcl.jar;C:\JDEV\jdevbin\j2ee\home\lib\ext;C:\JDEV\jdevbin\lib\dmsapp.jar;C:\JDEV\jdevhome\jdev\system\oracle.j2ee.10.1.3.41.57\embedded-oc4j\applications\admin_ejb.jar;C:\JDEV\jdevbin\BC4J\lib\bc4jdomorcl.jar;C:\JDEV\jdevbin\jlib\jsp-el-api.jar;C:\JDEV\jdevbin\jlib\commons-el.jar;C:\JDEV\jdevbin\jlib\oracle-el.jar;C:\JDEV\jdevbin\jlib\jewt4.jar;C:\JDEV\jdevbin\jdev\appslibrt\regexp.jar;C:\JDEV\jdevbin\jdev\appslibrt\share.jar;C:\JDEV\jdevbin\jdev\appslibrt\uix2.jar;C:\JDEV\jdevbin\oaext\mds\lib\mdsrt.jar;C:\JDEV\jdevbin\oaext\lib\mdsdt.jar;C:\JDEV\jdevbin\oaext\lib\oamdsdt.jar;C:\JDEV\jdevbin\javacache\lib\cache.jar;C:\JDEV\jdevbin\lib\xschema.jar;C:\JDEV\jdevbin\BC4J\lib;C:\JDEV\jdevbin\BC4J\lib\adfbinding.jar;C:\JDEV\jdevbin\BC4J\lib\adfcm.jar;C:\JDEV\jdevbin\BC4J\lib\adfm.jar;C:\JDEV\jdevbin\BC4J\lib\adfmweb.jar;C:\JDEV\jdevbin\BC4J\lib\adfs-jazn.jar;C:\JDEV\jdevbin\BC4J\lib\adfs.jar;C:\JDEV\jdevbin\BC4J\lib\adfshare.jar;C:\JDEV\jdevbin\BC4J\lib\bc4jct.jar;C:\JDEV\jdevbin\BC4J\lib\bc4jctejb.jar;C:\JDEV\jdevbin\BC4J\lib\bc4jimdomains.jar;C:\JDEV\jdevbin\BC4J\lib\bc4jmt.jar;C:\JDEV\jdevbin\BC4J\lib\bc4jmtejb.jar;C:\JDEV\jdevbin\BC4J\lib\bc4jsyscat.jar;C:\JDEV\jdevbin\BC4J\lib\collections.jar;C:\JDEV\jdevbin\jdev\appslibrt\fwkjbo.zip;C:\JDEV\jdevbin\jdev\appslibrt\fwk.zip;C:\JDEV\jdevbin\jdev\appslibrt\atg.zip;C:\JDEV\jdevbin\jdev\appslibrt\collections.zip;C:\JDEV\jdevbin\jdev\appslibrt\iasjoc.zip;C:\JDEV\jdevbin\jdev\appslibrt\rosettaRt.zip;C:\JDEV\jdevbin\jdev\appslibrt\portalFlexComps.jar;C:\JDEV\jdevbin\jdev\appslibrt\svc.zip;C:\JDEV\jdevbin\jdev\appslibrt\pat.zip;C:\JDEV\jdevbin\jdev\appslibrt\concurrent.zip;C:\JDEV\jdevbin\jdev\appslibrt\oamMaintMode.zip;C:\JDEV\jdevbin\jdev\appslibrt\fwkCabo.zip;C:\JDEV\jdevbin\jdev\appslibrt\wsrp-container.jar;C:\JDEV\jdevbin\jdev\appslibrt\pdkjava.jar;C:\JDEV\jdevbin\jdev\appslibrt\ptlshare.jar;C:\JDEV\jdevbin\jdev\appslibrt\xml.jar;C:\JDEV\jdevbin\jdev\appslibrt\wsrp-container-types.jar;C:\JDEV\jdevbin\jdev\appslibrt\jaxb-impl.jar;C:\JDEV\jdevbin\jdev\appslibrt\jaxb-libs.jar;C:\JDEV\jdevbin\jdev\appslibrt\jazn.jar;C:\JDEV\jdevbin\jdev\appslibrt\jazncore.jar;C:\JDEV\jdevbin\bibeans\lib\biamlocal.jar;C:\JDEV\jdevbin\bibeans\lib\bipres.jar;C:\JDEV\jdevbin\bibeans\lib\bicmn.jar;C:\JDEV\jdevbin\bibeans\lib\bidatasvr.jar;C:\JDEV\jdevbin\bibeans\lib\bidataclt.jar;C:\JDEV\jdevbin\bibeans\lib\bidatacmn.jar;C:\JDEV\jdevbin\bibeans\lib\biext.jar;C:\JDEV\jdevbin\bibeans\lib\bicmn-nls.zip;C:\JDEV\jdevbin\bibeans\lib\bipres-nls.zip;C:\JDEV\jdevbin\bibeans\lib\bidata-nls.zip;C:\JDEV\jdevbin\oaext\config\oac\oacfilter.jar;C:\JDEV\jdevbin\j2ee\home\lib\scheduler.jar;C:\JDEV\jdevbin\jdev\lib\jdev-rt.jar;C:\JDEV\jdevbin\jdev\lib\ojc.jar;C:\JDEV\jdevhome\jdev\system\oracle.j2ee.10.1.3.41.57\embedded-oc4j\connectors\datasources\datasources\datasources.jar;C:\JDEV\jdevbin\diagnostics\lib\ojdl.jar;C:\JDEV\jdevbin\lib\dms.jar;C:\JDEV\jdevbin\jdbc\lib\ojdbc14dms.jar;C:\JDEV\jdevbin\opmn\lib\ons.jar;C:\JDEV\jdevbin\jdbc\lib\ocrs12.jar;C:\JDEV\jdevbin\rdbms\jlib\aqapi.jar;C:\JDEV\jdevbin\j2ee\home\lib\ojms-provider.jar;C:\JDEV\jdevbin\jdbc\lib\orai18n.jar;C:\JDEV\jdevbin\lib\xmlparserv2.jar;C:\JDEV\jdevbin\lib\xml.jar;C:\JDEV\jdevbin\lib\xmlmesg.jar;C:\JDEV\jdevbin\lib\xsu12.jar;C:\JDEV\jdevbin\lib\xquery.jar;C:\JDEV\jdevbin\jlib\osdt_core.jar;C:\JDEV\jdevbin\jlib\osdt_cert.jar;C:\JDEV\jdevbin\jlib\osdt_xmlsec.jar;C:\JDEV\jdevbin\jlib\osdt_wss.jar;C:\JDEV\jdevbin\jlib\osdt_saml.jar;C:\JDEV\jdevbin\jlib\ojpse.jar;C:\JDEV\jdevbin\jlib\oraclepki.jar;C:\JDEV\jdevbin\toplink\jlib\toplink.jar;C:\JDEV\jdevbin\toplink\jlib\antlr.jar;C:\JDEV\jdevbin\toplink\jlib\toplink-essentials.jar;C:\JDEV\jdevbin\webservices\lib\wsclient.jar;C:\JDEV\jdevbin\webservices\lib\orasaaj.jar;C:\JDEV\jdevbin\webservices\lib\xsdlib.jar;C:\JDEV\jdevbin\webservices\lib\mdds.jar;C:\JDEV\jdevbin\webservices\lib\relaxngDatatype.jar;C:\JDEV\jdevbin\webservices\lib\soap.jar;C:\JDEV\jdevbin\sqlj\lib\runtime12.jar;C:\JDEV\jdevbin\sqlj\lib\translator.jar;C:\JDEV\jdevbin\webservices\lib\orawsdl.jar;C:\JDEV\jdevbin\j2ee\home\applib;C:\JDEV\jdevbin\j2ee\home\jsp\lib\taglib;C:\JDEV\jdevbin\j2ee\home\jsp\lib\taglib\ojsputil.jar;C:\JDEV\jdevbin\lib\dsv2.jar;C:\JDEV\jdevbin\j2ee\home\lib\http_client.jar;C:\JDEV\jdevbin\j2ee\home\lib\jgroups-core.jar;C:\JDEV\jdevhome\jdev\myhtml\OA_HTML;C:\JDEV\jdevhome\jdev\myclasses;C:\JDEV\jdevbin\jlib\jdev-cm.jar;C:\JDEV\jdevbin\BC4J\jlib\bc4jhtml.jar;C:\JDEV\jdevbin\BC4J\jlib\datatags.jar;C:\JDEV\jdevbin\BC4J\jlib\bc4juixtags.jar;C:\JDEV\jdevbin\BC4J\jlib\graphtags.jar;C:\JDEV\jdevbin\jdev\appslibrt\wsp.zip;C:\JDEV\jdevbin\jdev\appslibrt\diagnostics.jar;C:\JDEV\jdevbin\jdev\appslibrt\svctester.jar]
[062113_023121078][][EXCEPTION] [DEBUG] [oracle.j2ee.home]:[C:\JDEV\jdevhome\jdev\system\oracle.j2ee.10.1.3.41.57\embedded-oc4j]
[062113_023121078][][EXCEPTION] [DEBUG] [oracle.application.environment]:[development]
[062113_023121078][][EXCEPTION] [DEBUG] [java.vm.specification.name]:[Java Virtual Machine Specification]
[062113_023121078][][EXCEPTION] [DEBUG] [JRAD_XML_PATH]:[C:\JDEV\jdevhome\jdev\myclasses\JRADXML;C:\JDEV\jdevhome\jdev\myprojects;C:\JDEV\jdevbin\jdev\oamdsxml\fwk]
[062113_023121078][][EXCEPTION] [DEBUG] [javax.rmi.CORBA.PortableRemoteObjectClass]:[com.sun.corba.ee.impl.javax.rmi.PortableRemoteObject]
[062113_023121078][][EXCEPTION] [DEBUG] [org.omg.PortableInterceptor.ORBInitializerClass.oracle.oc4j.corba.iiop.server.IIOPInitializer]:[NO_VALUE]
[062113_023121078][][EXCEPTION] [DEBUG] [java.vm.specification.version]:[1.0]
[062113_023121078][][EXCEPTION] [DEBUG] [sun.cpu.endian]:[little]
[062113_023121078][][EXCEPTION] [DEBUG] [oracle.j2ee.container.name]:[Oracle Containers for J2EE 10g (10.1.3.3.0) ]
[062113_023121078][][EXCEPTION] [DEBUG] [sun.os.patch.level]:[Service Pack 3]
[062113_023121078][][EXCEPTION] [DEBUG] [java.io.tmpdir]:[C:\DOCUME~1\mysub\Local Settings\Temp\]
[062113_023121078][][EXCEPTION] [DEBUG] [com.sun.jts.pi.CLIENT_POLICY_CHECKING]:[false]
[062113_023121078][][EXCEPTION] [DEBUG] [java.vendor.url.bug]:[http://java.sun.com/cgi-bin/bugreport.cgi]
[062113_023121078][][EXCEPTION] [DEBUG] [com.oracle.corba.ee.security.ssl.mutual.auth.port]:[5657]
[062113_023121078][][EXCEPTION] [DEBUG] [FND_JDBC_STMT_CACHE_SIZE]:[200]
[062113_023121078][][EXCEPTION] [DEBUG] [os.arch]:[x86]
[062113_023121078][][EXCEPTION] [DEBUG] [java.awt.graphicsenv]:[sun.awt.Win32GraphicsEnvironment]
[062113_023121078][][EXCEPTION] [DEBUG] [java.ext.dirs]:[C:\JDEV\jdevbin\jdk\jre\lib\ext]
[062113_023121078][][EXCEPTION] [DEBUG] [user.dir]:[C:\JDEV\jdevhome\jdev\system\oracle.j2ee.10.1.3.41.57\embedded-oc4j\config]
[062113_023121078][][EXCEPTION] [DEBUG] [CACHENODBINIT]:[true]
[062113_023121078][][EXCEPTION] [DEBUG] [line.separator]:[
[062113_023121078][][EXCEPTION] [DEBUG] [java.vm.name]:[Java HotSpot(TM) Client VM]
[062113_023121078][][EXCEPTION] [DEBUG] [com.sun.CORBA.connection.ORBSocketFactoryClass]:[oracle.oc4j.corba.iiop.IIOPSSLSocketFactory]
[062113_023121078][][EXCEPTION] [DEBUG] [javax.management.builder.initial]:[oracle.oc4j.admin.jmx.server.Oc4jMBeanServerBuilder]
[062113_023121078][][EXCEPTION] [DEBUG] [com.oracle.corba.ee.security.use.ssl]:[false]
[062113_023121078][][EXCEPTION] [DEBUG] [org.omg.CORBA.ORBClass]:[com.sun.corba.ee.impl.orb.ORBImpl]
[062113_023121078][][EXCEPTION] [DEBUG] [file.encoding]:[Cp1252]
[062113_023121078][][EXCEPTION] [DEBUG] [java.specification.version]:[1.5]
13/06/21 14:31:33 After exporting into excel sheet
Here is my code which i have used to integrate the XML publisher:
Code in AMImpl:
public BlobDomain getXMLData(String user) {
System.out.println("*** in getXMLData *** ");
this.getOADBTransaction().writeDiagnostics(this, "*** in getXMLData ***",1);
BlobDomain blobDomain = new BlobDomain();
String dataDefCode = null;
dataDefCode ="IDIS_OPENEDBYUSER_RPT";
String dataDefApp = "SEAAR";
try {
System.out.println("in try b4 creating DT");
this.getOADBTransaction().writeDiagnostics(this, "*** in try b4 creating DT ***",1);
DataTemplate datatemplate = new DataTemplate(((OADBTransactionImpl)getOADBTransaction()).getAppsContext(),
dataDefApp,
dataDefCode);
this.getOADBTransaction().writeDiagnostics(this, "*** after datatemplate ***",1);
System.out.println("after datatemplate");
Hashtable parameters = new Hashtable();
parameters.put("p_last_rev", user);
datatemplate.setParameters(parameters);
System.out.println("after set params");
this.getOADBTransaction().writeDiagnostics(this, "*** after set params ***",1);
datatemplate.setOutput(blobDomain.getOutputStream());
System.out.println("after setOutput");
this.getOADBTransaction().writeDiagnostics(this, "*** after setOutput***",1);
datatemplate.processData();
System.out.println("after processData" );
this.getOADBTransaction().writeDiagnostics(this, "*** after processData***",1);
System.out.println("blobDomain Value :"+blobDomain);
this.getOADBTransaction().writeDiagnostics(this,"blobDomain :: "+blobDomain,1 );
return blobDomain;
} catch (XDOException xdoe) {
System.out.println("Exception in XDO :");
throw new OAException("Exception in XDO : "+xdoe.getMessage());
catch (SQLException sqle) {
System.out.println("Exception in SQL :");
throw new OAException("SQL Exception : "+sqle.getMessage());
catch (OAException e) {
System.out.println("Exception in OA :");
throw new OAException("Unexpected Error :: " +e.getMessage());
Code in Controller file:
if (pageContext.getParameter("Export") != null)
BlobDomain amBlobDomain ;
String user = (String)pageContext.getTransientSessionValue("userName");
System.out.println("User name before passing parameter to report"+user);
Serializable[] param = { user};
amBlobDomain = (BlobDomain)am.invokeMethod("getXMLData", param);
Properties pdfproperties = new Properties();
try
DocumentHelper.exportDocument(pageContext,
"SEAAR",
"IDISPUTE_OPENEDBYUSER_RPT_TP",
"en",
"US",
amBlobDomain.getInputStream(),
"EXCEL",
pdfproperties);
catch(Exception e) {
System.out.println("Exception found in Document Helper");
throw new OAException("Exception" + e.getMessage(),OAException.ERROR);
System.out.println("After exporting into excel sheet");
Thanks and Regards,
MyvizhiHi Peddi,
I gave TRUNC to both of the dates. But still the same issue. I think the problem is in returning the BolbDomain.
return blobDomain;
} catch (XDOException xdoe) {
System.out.println("Exception in XDO :");
throw new OAException("Exception in XDO : "+xdoe.getMessage());
catch (SQLException sqle) {
System.out.println("Exception in SQL :");
throw new OAException("SQL Exception : "+sqle.getMessage());
catch (OAException e) {
System.out.println("Exception in OA :");
throw new OAException("Unexpected Error :: " +e.getMessage());
Thanks and Regards,
Myvizhi -
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 -
Exporting xmltype table data into xml/txt file
I want to export data stored in oracle as xmltype table into xml format file.
I want to use alternatives to the method shown below as my xml file is large.
set long 10000000
spool c:\\StudentXMLJan08.xml
SELECT
XMLElement("Student",
XMLForest(s.studentid "studentid",
s.firstname "firstname",
s.lastname "surname"),
XMLElement("enrollments",
(SELECT XMLAGG(
XMLForest(sc.coursecode "courseid"))
FROM studentcourse sc
WHERE sc.studentid = s.studentid
and sc.is_approved='Y'
and sc.takenyear='2008'
and sc.takenterm='1')))
FROM student s
where s.statuscode in (select studentstatuscode from studentstatus where studentstatusactive=1)
order by s.studentid;
spool off
please help, thank youHow's this one for size
SQL> create or replace view DEPARTMENT_XML of xmltype
2 with object id
3 (
4 'DEPARTMENT'
5 )
6 as
7 select xmlElement
8 (
9 "Departments",
10 (
11 select xmlAgg
12 (
13 xmlElement
14 (
15 "Department",
16 xmlAttributes( d.DEPARTMENT_ID as "DepartmentId"),
17 xmlElement("Name", d.DEPARTMENT_NAME),
18 xmlElement
19 (
20 "Location",
21 xmlForest
22 (
23 STREET_ADDRESS as "Address", CITY as "City", STATE_PROVINCE as "State",
24 POSTAL_CODE as "Zip",COUNTRY_NAME as "Country"
25 )
26 ),
27 xmlElement
28 (
29 "EmployeeList",
30 (
31 select xmlAgg
32 (
33 xmlElement
34 (
35 "Employee",
36 xmlAttributes ( e.EMPLOYEE_ID as "employeeNumber" ),
37 xmlForest
38 (
39 e.FIRST_NAME as "FirstName", e.LAST_NAME as "LastName", e.EMAIL as "EmailAddre
ss",
40 e.PHONE_NUMBER as "Telephone", e.HIRE_DATE as "StartDate", j.JOB_TITLE as "Job
Title",
41 e.SALARY as "Salary", m.FIRST_NAME || ' ' || m.LAST_NAME as "Manager"
42 ),
43 xmlElement ( "Commission", e.COMMISSION_PCT )
44 )
45 )
46 from HR.EMPLOYEES e, HR.EMPLOYEES m, HR.JOBS j
47 where e.DEPARTMENT_ID = d.DEPARTMENT_ID
48 and j.JOB_ID = e.JOB_ID
49 and m.EMPLOYEE_ID = e.MANAGER_ID
50 )
51 )
52 )
53 )
54 from HR.DEPARTMENTS d, HR.COUNTRIES c, HR.LOCATIONS l
55 where d.LOCATION_ID = l.LOCATION_ID
56 and l.COUNTRY_ID = c.COUNTRY_ID
57 )
58 )
59 from dual
60 /
View created.
SQL> create or replace trigger DEPARTMENT_DML
2 instead of INSERT or UPDATE or DELETE
3 on DEPARTMENT_XML
4 begin
5 null;
6 end;
7 /
Trigger created.
SQL> declare
2 cursor getDepartments is
3 select ref(d) XMLREF
4 from DEPARTMENT_XML d;
5 res boolean;
6 targetFolder varchar2(1024) := '/public/Departments';
7 begin
8 if dbms_xdb.existsResource(targetFolder) then
9 dbms_xdb.deleteResource(targetFolder,dbms_xdb.DELETE_RECURSIVE_FORCE);
10 end if;
11 res := dbms_xdb.createFolder(targetFolder);
12 for dept in getDepartments loop
13 res := DBMS_XDB.createResource(targetFolder || '/Departments.xml', dept.XMLREF);
14 end loop;
15 end;
16 /
PL/SQL procedure successfully completed.
SQL> select path
2 from path_view
3 where equals_path(RES,'/public/Departments/Departments.xml') = 1
4 /
PATH
/public/Departments/Departments.xml
SQL> select xdburitype('/public/Departments/Departments.xml').getXML()
2 from dual
3 /
XDBURITYPE('/PUBLIC/DEPARTMENTS/DEPARTMENTS.XML').GETXML()
<Departments>
<Department DepartmentId="60">
<Name>IT</Name>
<Location
SQL> quit
Disconnected from Oracle Database 11g Enterprise Edition Release 11.2.0.1.0 - 64bit Production
With the Partitioning, OLAP, Data Mining and Real Application Testing options
C:\Temp>ftp localhost
Connected to mdrake-lap.
220- mdrake-lap
Unauthorised use of this FTP server is prohibited and may be subject to civil and criminal prosecution.
220 mdrake-lap FTP Server (Oracle XML DB/Oracle Database) ready.
User (mdrake-lap:(none)): SCOTT
331 pass required for SCOTT
Password:
230 SCOTT logged in
ftp> cd /public/Departments
250 CWD Command successful
ftp> ls -l
200 EPRT Command successful
150 ASCII Data Connection
-rw-r--r-- 1 SCOTT oracle 0 NOV 10 20:18 Departments.xml
226 ASCII Transfer Complete
ftp: 71 bytes received in 0.01Seconds 7.10Kbytes/sec.
ftp> get Departments.xml -
200 EPRT Command successful
150 ASCII Data Connection
<Departments><Department DepartmentId="60"><Name>IT</Name><Location><Address>2014 Jabberwocky Rd</Address><City>Southlak
e</City><State>Texas</State><Zip>26192</Zip><Country>United States of America</Country></Location><EmployeeList><Employe
e employeeNumber="103"><FirstName>Alexander</FirstName><LastName>Hunold</LastName><EmailAddress>AHUNOLD</EmailAddress><T
elephone>590.423.4567</Telephone><StartDate>2006-01-03</StartDate><JobTitle>Programmer</JobTitle><Salary>9000</Salary><M
anager>Lex De Haan</Manager><Commission></Commission></Employee><Employee employeeNumber="105"><FirstName>David</FirstNa
me><LastName>Austin</LastName><EmailAddress>DAUSTIN</EmailAddress><Telephone>590.423.4569</Telephone><StartDate>2005-06-
25</StartDate><JobTitle>Programmer</JobTitle><Salary>4800</Salary><Manager>Alexander Hunold</Manager><Commission></Commi
ssion></Employee><Employee employeeNumber="106"><FirstName>Valli</FirstName><LastName>Pataballa</LastName><EmailAddress>
VPATABAL</EmailAddress><Telephone>590.423.4560</Telephone><StartDate>2006-02-05</StartDate><JobTitle>Programmer</JobTitl
e><Salary>4800</Salary><Manager>Alexander Hunold</Manager><Commission></Commission></Employee><Employee employeeNumber="
107"><FirstName>Diana</FirstName><LastName>Lorentz</LastName><EmailAddress>DLORENTZ</EmailAddress><Telephone>590.423.556
7</Telephone><StartDate>2007-02-07</StartDate><JobTitle>Programmer</JobTitle><Salary>4200</Salary><Manager>Alexander Hun
old</Manager><Commission></Commission></Employee><Employee employeeNumber="104"><FirstName>Bruce</FirstName><LastName>Er
nst</LastName><EmailAddress>BERNST</EmailAddress><Telephone>590.423.4568</Telephone><StartDate>2007-05-21</StartDate><Jo
bTitle>Programmer</JobTitle><Salary>6000</Salary><Manager>Alexander Hunold</Manager><Commission></Commission></Employee>
</EmployeeList></Department><Department DepartmentId="50"><Name>Shipping</Name><Location><Address>2011 Interiors Blvd</A
ddress><City>South San Francisco</City><State>California</State><Zip>99236</Zip><Country>United States of America</Count
ry></Location><EmployeeList><Employee employeeNumber="120"><FirstName>Matthew</FirstName><LastName>Weiss</LastName><Emai
lAddress>MWEISS</EmailAddress><Telephone>650.123.1234</Telephone><StartDate>2004-07-18</StartDate><JobTitle>Stock Manage
r</JobTitle><Salary>8000</Salary><Manager>Steven King</Manager><Commission></Commission></Employee><Employee employeeNum
ber="122"><FirstName>Payam</FirstName><LastName>Kaufling</LastName><EmailAddress>PKAUFLIN</EmailAddress><Telephone>650.1
23.3234</Telephone><StartDate>2003-05-01</StartDate><JobTitle>Stock Manager</JobTitle><Salary>7900</Salary><Manager>Stev
en King</Manager><Commission></Commission></Employee><Employee employeeNumber="121"><FirstName>Adam</FirstName><LastName
Fripp</LastName><EmailAddress>AFRIPP</EmailAddress><Telephone>650.123.2234</Telephone><StartDate>2005-04-10</StartDate><JobTitle>Stock Manager</JobTitle><Salary>8200</Salary><Manager>Steven King</Manager><Commission></Commission></Employee
<Employee employeeNumber="124"><FirstName>Kevin</FirstName><LastName>Mourgos</LastName><EmailAddress>KMOURGOS</EmailAddress><Telephone>650.123.5234</Telephone><StartDate>2007-11-16</StartDate><JobTitle>Stock Manager</JobTitle><Salary>5800<
/Salary><Manager>Steven King</Manager><Commission></Commission></Employee><Employee employeeNumber="123"><FirstName>Shan
ta</FirstName><LastName>Vollman</LastName><EmailAddress>SVOLLMAN</EmailAddress><Telephone>650.123.4234</Telephone><Start
Date>2005-10-10</StartDate><JobTitle>Stock Manager</JobTitle><Salary>6500</Salary><Manager>Steven King</Manager><Commiss
ion></Commission></Employee><Employee employeeNumber="128"><FirstName>Steven</FirstName><LastName>Markle</LastName><Emai
lAddress>SMARKLE</EmailAddress><Telephone>650.124.1434</Telephone><StartDate>2008-03-08</StartDate><JobTitle>Stock Clerk
</JobTitle><Salary>2200</Salary><Manager>Matthew Weiss</Manager><Commission></Commission></Employee><Employee employeeNu
mber="127"><FirstName>James</FirstName><LastName>Landry</LastName><EmailAddress>JLANDRY</EmailAddress><Telephone>650.124
.1334</Telephone><StartDate>2007-01-14</StartDate><JobTitle>Stock Clerk</JobTitle><Salary>2400</Salary><Manager>Matthew
Weiss</Manager><Commission></Commission></Employee><Employee employeeNumber="126"><FirstName>Irene</FirstName><LastName>
Mikkilineni</LastName><EmailAddress>IMIKKILI</EmailAddress><Telephone>650.124.1224</Telephone>
<StartDate>2002-06-07</St
artDate><JobTitle>Public Relations Representative</JobTitle><Salary>10000</Salary><Manager>Neena Kochhar</Manager><Commi
ssion></Commission></Employee></EmployeeList></Department></Departments>226 ASCII Transfer Complete
ftp: 40392 bytes received in 0.08Seconds 480.86Kbytes/sec.
ftp> -
Import/export data from ms sql 7 to xml file in a particular xpdl format
I'm trying to write java program to import/export data from ms sql 7 to xml file in a particular xpdl format. Can anyone suggest how to do it?
take a glance at what these guys do: http://www.openbusinessengine.org/docs/guide.html
-
Exporting data from database tables to a XML file
Hi,
We want to export data from Oracle database tables to an XML
file. What tool can we use for this purpose, and how do we go
about it ?
Can we extract data only from an Oracle8 database, or can we
extract data from Oracle7.3 databases too ?
Any help in this regard would be appreciated.
Thanks
Dipanjan
nullDipanjan (guest) wrote:
: Hi,
: We want to export data from Oracle database tables to an XML
: file. What tool can we use for this purpose, and how do we go
: about it ?
: Can we extract data only from an Oracle8 database, or can we
: extract data from Oracle7.3 databases too ?
: Any help in this regard would be appreciated.
: Thanks
: Dipanjan
Start by downloading the XML SQL Utility and make sure you have
the approriate JDBC 1.1 drivers installed for your database.
There are samples which will get you going included in the
archive.
Oracle XML Team
http://technet.oracle.com
Oracle Technology Network
null -
Exporting form field data to xml
Hello,
I want to export pdf form data to xml file.
I don't want to use adobe Livecycle Designer.
I want to save the data in xml file where pdf file is present.
i have created button as export.
when user clciks on export button, the data has to be exported to xml file.
how can i do this using Java script, is there any sample code available?
Please help me
Thanks in avance,thanks for your help.
I want to save form data to xfdf file, on click of button.
I have written below code in one .js file.
Export = app.trustPropagatorFunction(function(oDoc, sPath, bXDP, sPackets)
app.beginPriv();
oDoc.exportXFAData(sPath, bXDP);
app.endPriv();
TrustedExportXFAData = app.trustedFunction(function(oDoc, sPath, bXDP, sPackets)
var bSuccess = false;
app.beginPriv();
try {
Export(oDoc, sPath, bXDP, sPackets);
bSuccess = true;
catch(e){
app.alert(sPath + " NOT exported!\n" + e.message + "\n" + e.name);
app.endPriv();
return( bSuccess );
on button mouseup action i am calling trusted function as
TrustedExportXFAData(this, "/c/testing", "True", "*");
I am getting error as /c/testing NOT exported
Secuirty settings prevent access to this property or method.
NotAllowedError.
Please help me to solve this issue.a -
Is there any online reference to the XML methods available in 6.1?
I would like to set up a LabView system that acquires data from local hardware, and then sends acquired data as XML "packets" to a remote web service. I can't seem to find any online reference to this when I search the site. I don't want the "gee golly 6.1 is cool" marketing stuff. Just a simple technical reference to abilities.If you're looking for more technical information about all the new features of 6.1, try the LabVIEW 6.1 Upgrade Notes. Here's what they say about the XML functions:
"Use the Flatten to XML function located on the Functions»Advanced»Data Manipulation palette to convert any LabVIEW data type to the XML format according to the LabVIEW XML schema. Use the Unflatten from XML function located on the same palette to convert a data type in the XML format into LabVIEW data.
For these conversions, LabVIEW uses a predefined XML schema that is described in labview\help\LVXMLSchema.xsd."
Kelly Holmes
LabVIEW Documentation
Kelly H
LabVIEW Documentation
National Instruments -
How do I set up my drag and drop questionaire to export to a XML file?
How do I set up my drag and drop questionaire to export to a
XML file?
I have a 70 seperate SWF files that pose a question and
contain a drag and drop rank order response of 1,2,3,4.How do I set
up a XML file that receives the responses.I don't understand how to
do the Actionscript
and get my responses to connect to the XML.Please
Help!Thanks!
Here's an example of my XML.
<assessment>
<sessionid>ffae926ea290ee93c3f26669c6c04a92</sessionid>
<request>save_progress</request>
<question>
<number>1</number>
<slot_a>2</slot_a>
<slot_b>1</slot_b>
<slot_c>4</slot_c>
<slot_d>3</slot_d>
</question>
<question>
<number>2</number>
<slot_a>4</slot_a>
<slot_b>3</slot_b>
<slot_c>2</slot_c>
<slot_d>1</slot_d>
</question>
<question>
<number>3</number>
<slot_a>1</slot_a>
<slot_b>2</slot_b>
<slot_c>3</slot_c>
<slot_d>4</slot_d>
</question>
</assessment>Use XML.sendAndLoad.
http://livedocs.macromedia.com/flash/8/main/00002879.html
You will need a server script to receive the XML structure
and it depends on
the server scripting language how you obtain that data. Then
you can either
populate a database or write to a static file or even email
the XML data
received from Flash.
For a basic example, I have two links I use for students in
my Flash
courses:
http://www.hosfordusa.com/ClickSystems/courses/flash/examples/XMLASP/Ex01/XMLASPEchoEx01_D oc.php
http://www.hosfordusa.com/ClickSystems/courses/flash/examples/XMLPHP/EX01/XMLPHPEchoEx01_D oc.php
Lon Hosford
www.lonhosford.com
May many happy bits flow your way!
"kenpoian" <[email protected]> wrote in
message
news:e5i9hp$cs6$[email protected]..
How do I set up my drag and drop questionaire to export to a
XML file?
I have a 70 seperate SWF files that pose a question and
contain a drag and
drop rank order response of 1,2,3,4.How do I set up a XML
file that receives
the responses.I don't understand how to do the Actionscript
and get my responses to connect to the XML.Please
Help!Thanks!
Here's an example of my XML.
<assessment>
<sessionid>ffae926ea290ee93c3f26669c6c04a92</sessionid>
<request>save_progress</request>
<question>
<number>1</number>
<slot_a>2</slot_a>
<slot_b>1</slot_b>
<slot_c>4</slot_c>
<slot_d>3</slot_d>
</question>
<question>
<number>2</number>
<slot_a>4</slot_a>
<slot_b>3</slot_b>
<slot_c>2</slot_c>
<slot_d>1</slot_d>
</question>
<question>
<number>3</number>
<slot_a>1</slot_a>
<slot_b>2</slot_b>
<slot_c>3</slot_c>
<slot_d>4</slot_d>
</question>
</assessment> -
Is there any way to export data from a calendar 5 instance to 6.3?
I've run into yet another issue with my migration from calendar 5 to 6.3.
It turns out that one of our satellite clinics has a very large amount of data stored on our older server. Right now we're having to put the migration on hold because there are several hundred events on the old server that are repeat events and/or events scheduled relatively far in the future. This issue, along with the possibility of double booking events/appointments while both servers are active, is a serious risk that could have detrimental effects on this site.
There are a few issues that I'm not certain how to handle in this case. First of all, the old server's database is stored in schema 1, and changes in the LDAP directory structure from cal 5 vs. 6.3 made it impossible to migrate the old database and accounts. The new server is schema 2. So migrating the whole directory, especially at this point, seems rather unlikely.
Is there any way that I can export data for specific accounts and calendars for the people at this site in a version-independent format and import it to the new server? If nothing else we can schedule somebody to come in on one of the weekends and manually copy the data, but if possible I'd like to avoid devoting somebody to that for the several hours that it would take to copy that by hand. Also, this would not be the preferred method due to the fact that human error could result in our clients being misscheduled, which would obviously be bad for business.
I'd appreciate any ideas anybody may have on this matter.
Thanks in advance.
-Damondamo.gets wrote:
Actually I guess I was missing the obvious method of simply exporting to xml and importing on the new calendar. For some reason I thought that the exports were incompatible between versions as well.Hmm... whilst this may have worked on the face-of-it I do wonder whether everything has indeed been moved across and more importantly translated into the correct form e.g. access controls, uids => uids@domain format.
Is there anybody that can answer definitively whether or not any data will be lost by this procedure?There are simply too many variables involved in your proposed migration to provide any kind of 100% iron-clad guarantees. I would suggest you perform a thorough test migration of the data and then compare the ics/xml export from the ics5/6 systems to see if any of the data has changed. Also test to see whether access controls are still working (can a user who could previously edit another persons calendar on ics5 now do so with ics6).
Things to look out for are that meeting attendee information is kept, any 'fancy' characters (i.e. 8-bit characters) and formatting information is kept, the number of tasks/meetings is consistent between the two versions and so forth.
Regards,
Shane. -
PROBLEM IN EXPORTING DATA FROM A RELATIONAL TABLE TO ANOTHER RELATIONAL TAB
Hi,
While trying to export data from a source table to a target table, problem occurs with loading the data in the work table(SrcSet0)[As shown in the operator]. The Work Table has been dropped and created successfully, the problem is coming with loading the data( in this work table(SrcSet0)). The error details as mentioned below. Please advise:-
ODI-1227: Task SrcSet0 (Loading) fails on the source ORACLE connection ORACLE_SOURCE.
Caused By: java.sql.SQLException: SQL string is not Query
at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:1442)
at oracle.jdbc.driver.OraclePreparedStatement.executeInternal(OraclePreparedStatement.java:3752)
at oracle.jdbc.driver.OraclePreparedStatement.executeQuery(OraclePreparedStatement.java:3806)
at oracle.jdbc.driver.OraclePreparedStatementWrapper.executeQuery(OraclePreparedStatementWrapper.java:1667)
at oracle.odi.query.JDBCTemplate.executeQuery(JDBCTemplate.java:189)
at oracle.odi.runtime.agent.execution.sql.SQLDataProvider.readData(SQLDataProvider.java:89)
at oracle.odi.runtime.agent.execution.sql.SQLDataProvider.readData(SQLDataProvider.java:1)
at oracle.odi.runtime.agent.execution.DataMovementTaskExecutionHandler.handleTask(DataMovementTaskExecutionHandler.java:67)
at com.sunopsis.dwg.dbobj.SnpSessTaskSql.processTask(SnpSessTaskSql.java:2906)
at com.sunopsis.dwg.dbobj.SnpSessTaskSql.treatTask(SnpSessTaskSql.java:2609)
at com.sunopsis.dwg.dbobj.SnpSessStep.treatAttachedTasks(SnpSessStep.java:537)
at com.sunopsis.dwg.dbobj.SnpSessStep.treatSessStep(SnpSessStep.java:453)
at com.sunopsis.dwg.dbobj.SnpSession.treatSession(SnpSession.java:1740)
at oracle.odi.runtime.agent.processor.impl.StartSessRequestProcessor$2.doAction(StartSessRequestProcessor.java:338)
at oracle.odi.core.persistence.dwgobject.DwgObjectTemplate.execute(DwgObjectTemplate.java:214)
at oracle.odi.runtime.agent.processor.impl.StartSessRequestProcessor.doProcessStartSessTask(StartSessRequestProcessor.java:272)
at oracle.odi.runtime.agent.processor.impl.StartSessRequestProcessor.access$0(StartSessRequestProcessor.java:263)
at oracle.odi.runtime.agent.processor.impl.StartSessRequestProcessor$StartSessTask.doExecute(StartSessRequestProcessor.java:822)
at oracle.odi.runtime.agent.processor.task.AgentTask.execute(AgentTask.java:123)
at oracle.odi.runtime.agent.support.DefaultAgentTaskExecutor$2.run(DefaultAgentTaskExecutor.java:82)
at java.lang.Thread.run(Thread.java:662)
Thanks
AnindyaHi actdi,
This is my KM_IKM SQL Incremental Update.xml code:-
and I have find it(for (int i=odiRef.getDataSetMin(); i <= odiRef.getDataSetMax(); i++)) and high lighted it(Bold Text).
So, please advise.
Here is the main part of this code because the code is too long to post.It exceeds maxlength for the msg.
So here it is:
<Object class="com.sunopsis.dwg.dbobj.SnpTxtHeader">
<Field name="Enc" type="java.lang.String">null</Field>
<Field name="EncKey" type="java.lang.String">null</Field>
<Field name="ITxt" type="com.sunopsis.sql.DbInt"><![CDATA[1695003]]></Field>
<Field name="ITxtOrig" type="com.sunopsis.sql.DbInt"><![CDATA[102]]></Field>
<Field name="SqlIndGrp" type="java.lang.String"><![CDATA[2]]></Field>
<Field name="Txt" type="java.lang.String"><![CDATA[insert into <%=odiRef.getTable("L","INT_NAME","A")%>
<%=odiRef.getColList("", "[COL_NAME]", ",\n\t", "", "(((INS or UPD) and !TRG) and REW)")%>,
IND_UPDATE
*<%for (int i=odiRef.getDataSetMin(); i <= odiRef.getDataSetMax(); i++){%>*
<%=odiRef.getDataSet(i, "Operator")%>
select <%=odiRef.getPop("DISTINCT_ROWS")%>
<%=odiRef.getColList(i,"", "[EXPRESSION]", ",\n\t", "", "(((INS or UPD) and !TRG) and REW)")%>,
<% if (odiRef.getDataSet(i, "HAS_JRN").equals("1")) { %>
JRN_FLAG IND_UPDATE
<%} else {%>
'I' IND_UPDATE
<%}%>
from <%=odiRef.getFrom(i)%>
where (1=1)
<%=odiRef.getJoin(i)%>
<%=odiRef.getFilter(i)%>
<%=odiRef.getJrnFilter(i)%>
<%=odiRef.getGrpBy(i)%>
<%=odiRef.getHaving(i)%>
<%}%>
]]></Field>
</Object>
<Object class="com.sunopsis.dwg.dbobj.SnpLineTrt">
<Field name="AlwaysExe" type="java.lang.String"><![CDATA[0]]></Field> -
Exporting data from table to Excel in a particular format using BSP.
Hello all,
I am creating a application in BSP wherein i have to export data to excel sheet.
I am able to do that but the output in excel sheet is not formatted. it is displaying the data in a single
column. For example, the internal table which i am exporting to excel contains fields "product
name", "area name", country name", "values". all these should be displayed in different columns.How
can i achieve this functionality.A sample code will be of great help..
Below is the code i hav written for exporting to excel :
data: l_len type i,
l_string type string,
app_type type string,
file_content type xstring,
file_mime_type type string.
create OBJECT cached_response TYPE cl_http_response EXPORTING add_c_msg = 1.
cached_response->set_data( file_content ).
cached_response->set_header_field(
name = if_http_header_fields=>content_type
value = file_mime_type ).
LOOP AT itab_xls INTO wa_xls.
CONCATENATE L_STRING wa_xls-product_name
wa_xls-area_name
wa_xls-landx
CL_ABAP_CHAR_UTILITIES=>CR_LF INTO L_STRING SEPARATED BY SPACE.
ENDLOOP.
APP_TYPE = 'APPLICATION/MSEXCEL; charset=utf-16le'.
data: l_xstring type xstring.
call function 'SCMS_STRING_TO_XSTRING'
exporting
text = l_string
MIMETYPE = 'APPLICATION/MSEXCEL; charset=utf-16le'
IMPORTING
BUFFER = l_xstring.
Add the Byte Order Mark - UTF-16 Little Endian
concatenate cl_abap_char_utilities=>byte_order_mark_little
l_xstring
into l_xstring in byte mode.
cached_response->set_data( l_xstring ).
cached_response->set_header_field( name = if_http_header_fields=>content_type
value = 'APPLICATION/MSEXCEL; charset=utf-16le' ).
*Set the filename into the response header
cached_response->set_header_field( name = 'Content-Disposition'
value = 'attachment; filename=gkb_excel.xls' ).
*Set the Response Status
cached_response->set_status( code = 200 reason = 'OK' ).
*Set the Cache Timeout - 60 seconds - we only need this in the cache
*long enough to build the page and allow the IFrame on the Client to request it.
cached_response->server_cache_expire_rel( expires_rel = 60 ).
CALL FUNCTION 'GUID_CREATE'
IMPORTING
ev_guid_32 = guid.
CONCATENATE runtime->application_url '/' guid '.xls' INTO url.
cl_http_server=>server_cache_upload( url = url
response = cached_response ).
Can anyone help me with some solution.
Thanks in advance.
Gurmahima.the issue is here
LOOP AT itab_xls INTO wa_xls.
CONCATENATE L_STRING wa_xls-product_name
wa_xls-area_name
wa_xls-landx
CL_ABAP_CHAR_UTILITIES=>CR_LF INTO L_STRING SEPARATED BY SPACE.
ENDLOOP.
instead do the following
LOOP AT itab_xls INTO wa_xls.
CONCATENATE L_STRING wa_xls-product_name ','
wa_xls-area_name ','
wa_xls-landx ','
CL_ABAP_CHAR_UTILITIES=>CR_LF INTO L_STRING .
ENDLOOP.
and then change the file name extension from xls to csv. it should open properly in excel.
Note that this is only excel csv file. if you want a proper excel excel file, then
option one: build a html table with your data into a string and pass it to excel
option 2: build excel xml using your data into a string and pass it to excel.
Regards
Raja
Maybe you are looking for
-
Follow up IE msstree's question
Thanks to all for your pass help! This is great, I have found most of my questions answered from pass discussions. Don, I have read of your fondless for OS9 and I agree. I have experienced several problem with IE and looking for a new browser I am fi
-
Notebook crashed, trying to install Win 8 again, receive product key error.
I have Pavilion 15-n037se notebook. Windows has crashed and I am trying to format my computer and install a new Windows 8. I have created a bootable Windows 8 USB disk. When I try to install Win 8, I receive this error: "The product key entered does
-
How can I install lion on a captive-network?
I recently purchased OSX Lion for a compatible Macbook Pro, and would be able to install it if not for the fact that I'm stuck on a captive-network for the next 2 weeks. When I boot into the Lion installer, it fails in the initial stages, as it is un
-
I am using Windows 7 oracle database 10g and developer Suite 10g configure all the steps accordingly but not showing icons, when I copy all the Gif files in /Forms/Java/ folder then showing icon only in push button not showing in Tree Node. Steps I f
-
Too many fields in SBO 2007.
Hi friends, I got an error at the moment to update or delete any account numbers in the areas of "Type of Account" from the G/L Account Determination, in a new company that I'm configuring in SBO 2007. The error says "too many fields" and I'm worrie