Data trabsfer using XML
i need help in transefering data from one website to other, i had read some where that the data tranfer can be done thru XML can any please help me on that.
the idea basically is to tranfer data from A to B and once the work is done B acknowldeges A
You can do calculation on XML Data output. However you will have to cast it to numeric or date based on the datatype. For example if you are working on a numeric cell, you will have to use Value() function to cast that to a number.
Anil
Similar Messages
-
Connecting to ADO Data Services using XML Data
Has anyone attempted to connect to a database using ADO Data Services? My understanding of ADO Data Services is that it allows querying of the database in a REST format. So if I publish a site, I can get to its data with a URL like this:
http://mysite/myservice.svc/entity where entity is a defined entity like Product, or supplier. Going to this site returns data that I have included at the end of this post, with the Entry node repeating (I only included the first Entry node). I definitely cannot use Web Service as my connection method, because there is no WSDL, but I was thinking maybe I could use XML. However, I have read the help file and several forum posts and I can't seem to figure out how to make XML work.
<?xml version="1.0" encoding="utf-8" standalone="yes" ?>
- <feed xml:base="http://mysite/FpWebDataService.svc/" xmlns:d="http://schemas.microsoft.com/ado/2007/08/dataservices" xmlns:m="http://schemas.microsoft.com/ado/2007/08/dataservices/metadata" xmlns="http://www.w3.org/2005/Atom">
<title type="text">InfrastructureTickets</title>
<id>http://mysiteFpWebDataService.svc/InfrastructureTickets</id>
<updated>2008-12-22T14:44:03Z</updated>
<link rel="self" title="InfrastructureTickets" href="InfrastructureTickets" />
- <entry>
<id>http://mysite/FpWebDataService.svc/InfrastructureTickets(1)</id>
<title type="text" />
<updated>2008-12-22T14:44:03Z</updated>
+ <author>
<name />
</author>
<link rel="edit" title="InfrastructureTickets" href="InfrastructureTickets(1)" />
<category term="FootprintsModel.InfrastructureTickets" scheme="http://schemas.microsoft.com/ado/2007/08/dataservices/scheme" />
- <content type="application/xml">
- <m:properties>
<d:TicketID m:type="Edm.Int32">1</d:TicketID>
<d:UserLastName>Phillips</d:UserLastName>
<d:UserFirstName>Michael</d:UserFirstName>
<d:TicketTitle>FAStT 700 updates</d:TicketTitle>
<d:TicketAssigned xml:space="preserve">miphillips</d:TicketAssigned>
<d:DateSubmitted>Jul 18 2005 9:55AM</d:DateSubmitted>
<d:ChangeRequestType>BIOS__fFirmware__bUpdate</d:ChangeRequestType>
<d:ChangeImpact>Major</d:ChangeImpact>
<d:ChangeRisk m:null="true" />
<d:OutageRootCause m:null="true" />
<d:SolutionType m:null="true" />
<d:TicketType m:null="true" />
<d:ChangeReason>Maintenance</d:ChangeReason>
<d:OutageScope m:null="true" />
<d:OutageManagerDescription m:null="true" />
<d:ProblemCategory m:null="true" />
<d:SubmissionType m:null="true" />
<d:TicketPriority m:type="Edm.Int32">3</d:TicketPriority>
<d:TicketStatus>_DELETED_</d:TicketStatus>
<d:UserID>MiPhillips</d:UserID>
<d:SubmitDate m:type="Edm.DateTime">2005-07-18T09:55:51</d:SubmitDate>
<d:UpdateDate m:type="Edm.DateTime">2005-07-19T09:26:41</d:UpdateDate>
<d:TicketAge m:type="Edm.Int32">1253</d:TicketAge>
<d:TicketUpdateAge m:type="Edm.Int32">1252</d:TicketUpdateAge>
<d:DescriptionCount m:type="Edm.Int32">2</d:DescriptionCount>
</m:properties>
</content>
</entry>Hi lilutchay,
If the SQL Server Integration Services is Enterprise or Developer edition of SQL Server 2008, we can use
Microsoft Connector Version 1.2 for Oracle to connect Oracle databases with version Oracle 9.2.0.4 or higher, Oracle 10.x or Oracle 11.x. If the SQL Server Integration Services is Enterprise or Developer edition of SQL Server 2012, we can use
Microsoft Connector Version 2.0 for Oracle to connect Oracle databases with version Oracle 9.2.0.4 or higher, Oracle 10.x or Oracle 11.x.
While if we want to connect to other Oracle version databases, we can use
OLE DB provider for Oracle which has been tested in SSIS labs and is recommended by Microsoft.
For the detail steps for Microsoft Connector for Oracle, we can refer to the first blog suggested by Deric. For more details about the use of connecting to oracle using Oracle Provider for OLEDB from SSIS, please refer to the blog below:
http://www.databasefun.com/archives/591
Reference:
SSIS with Oracle Connectors
Thanks,
Katherine Xiong
Katherine Xiong
TechNet Community Support -
DATA exchange using XML using ABAP
Client is having requirement of sharing data with Third party using XML files and this needs to be done using ABAP and changes in XML structure are highly likely in the future and structure is very complex around 100 fields corresponding to an account , three ways are there as far i am aware of :-IXML library,Simple transformation and XSLT ,
confusion is which way to follow as Performance constraints are also there and Simple transformation had failed in the past with large amount of data,
I would like to know what is Industry wide accepted way of doing this in SAP ( XI is out of scope here ) using ABAP and which one will be the best regarding quality of design and performanceHi,
what about the Client Data Bag? http://help.sap.com/saphelp_nw70ehp1/helpdata/en/68/322a9261c54e51b7965f86aac3dae2/content.htm
Stores data on the client (browser) side and as long as the user is using CTRL+L to open the new window, the information is preserved.
br,
Tobias -
Serialising data objects using XML
Does the support for XML in wl6.0 mean that java data objects can be serialized using xml entirely within weblogic (currently we use a 3rd party product, and are hoping to remove this if possible)?
What about SOAP?
Isn't that what SOAP does - marshals and unmarshals between objects and XML
You can use SOAP from Java, or C++ or whatever.
Contrary to a commonly held perception, SOAP doesn't require remote
transmission of the serialized XML datastream.
Where is the SOAP support for WLS6 ? I heard it was separately
downloadable?
"Alex Thomas" <[email protected]> wrote in message
news:3a532681$[email protected]..
>
With some limitations, yes, if you are starting from a DTD - see the docsfor the WebLogic DTD2Parser tool which generates a high-speed custom parser
for a given DTD.
>
This tool anticipates the JAXB standard (aka Data Binding, formerlyProject Adelard) - see http://java.sun.com/xml/ - which is due fairly
shortly AFAIK.
>
If you were wanting to start with arbitrary Java classes and serializethem to XML you'd have to wait longer unfortunately, though there are some
implementations around, e.g. http://www.wutka.com/jox.html. This would then
correspond to marshalling if the objects were parameters to an RPC of some
kind.
>
cheers
(another) alex
"alex" <[email protected]> wrote:
What I should have said is: can wl6 automatically populate java objects
from xml and vice versa? I believe this is called 'data marshalling and
unmarshalling', but I cannot find references to this in the doco.
>>
> -
OLAP cubes from heterogeneous data sources using XML DB
hi.
Q:1
How we can create an OLAP cube (XML cubes) from XML data sources if using XML DB.
Q:2
How we can create an OLAP cubes from warehouses and flat files and covert these cubes into XML cubes.
Q:3
Is there any other tool (Except Analytical workspace manager AWM) which supports the construction of OLAP cubes in XML format from heterogeneous data sources?
Edited by: user11236392 on Aug 21, 2009 3:50 AMHi Stuart!
Your undersatnding is partially correct. i am working for providing an architecture for XOLAP, XML is one of my data source.
The idea is to generate uniform cubes from heterogeneous sources that can be integrated into a global cube. instead of building Oracle OLAP cubes from all the sources (this work is already done) i want to generate an XCube from XML data sources using XQuery.
On the other hand if we have generated the Oracle OLAP cube from other sources like warehouses or flat files. i have to convert these Oracle OLAP cube into XML cube for uniformity. in an research paper i find that there is an operator Xcube embedded in XQuery which converts the multidimensional data (cube) into XML cube. im looking for the implementation of this operator in Query that how this operator works.
hope u understand my architecture. but if u still have some confusion, kindly give me ur mail id. i will mail the diagram of my architecture.
thanks.
saqib -
Dynamically change data model using xml
Hi there,
I need to exclude certain type of invoices from several reports. I also need to recalculate invoice amount if invoice is of a particular type.
Is there a way to do it using xml report definition instead of directly modifing report?
If you can point me to some examples, it will be greatly appreciated.
Thanks!Hi there,
I need to exclude certain type of invoices from several reports. I also need to recalculate invoice amount if invoice is of a particular type.
Is there a way to do it using xml report definition instead of directly modifing report?
If you can point me to some examples, it will be greatly appreciated.
Thanks! -
Data Binding using XML as data connection
I'm using an XML as my data connection. It has several order fields in various sections that have unique field identifiers. I have created a random order # script that runs fine inside of the form that occurs on the first order number field but I need that same number to populate into each of the additional order fields, again that have unique identifiers. Is there a way to combine data fields?
Thanks!usually you can make the binding global and all same named fields will end up with the same value. You may not be able to do that if you have bound your field to a data node in your XML. If that is the case then you will have to do it programatically. Lets assume you have Order_Number on Page 1 and Order_Number2 on Page 2. You would code on the calculate event of the 1st Order_Number field (the one where the number is calculated) - form1.Page2.Order_Number2.rawValue = form1.Page1.Order_Number.rawValue;
You can add multiple statements to equate that value to other instances of the field as you see fit. Now when any one of those values changes all of the others will be updated auto-magically! -
Binding data when using xml data files
Hello,
I am pretty new to Flex4 and hope you hang on with my question. MAny thanks:
I built an application first with PHP connection into a database which essentially listed IP of my company in a grid.
One could filter the IP depending of technology, type of Ip and so on.
When clicking in the grid, the details with many more fileds would apprear. This was working niceley as I had my services defined and needed only to drag services in the right place and add here and there some changes in the code
Now, I wanted to do the same with an xml file instead of a mySQL database so to deploy it a little easier.
I have the grid and the filtering working nicely.
But I cannot create the data binding for the details.
Below is the code. See the line before last where I tested if I could access to the descriptipn fuield in my arrayCollection (coming from my xml)
CAn anyone help me, please
many thanks in advance and best regards
Peter
<?xml version="1.0" encoding="utf-8"?>
<s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
xmlns:s="library://ns.adobe.com/flex/spark"
xmlns:mx="library://ns.adobe.com/flex/mx"
applicationComplete="myServ.send()" width="900" height="500">
<fx:Script>
<![CDATA[
import mx.collections.ArrayCollection;
import mx.controls.Alert;
import mx.events.ListEvent;
import mx.rpc.events.FaultEvent;
import mx.rpc.events.ResultEvent;
import spark.events.TextOperationEvent;
[Bindable]
private var myIPList:ArrayCollection;
protected function myServ_faultHandler(event:FaultEvent):void
Alert.show("Something went wrong", "Cannot load data");
protected function myServ_resultHandler(event:ResultEvent):void
if(event.result.test.IP is ArrayCollection){
this.myIPList = event.result.test.IP as ArrayCollection;
}else{
var buffer:ArrayCollection = new ArrayCollection([event.result.test.IP]);
this.myIPList = buffer;
this.searchInput.enabled = false;
this.searchInputTechnology.enabled = false;
this.searchInputProvider.enabled = false;
// serach for IP
protected function searchInput_changeHandler(event:TextOperationEvent):void
this.myIPList.filterFunction = filterFunc;
this.myIPList.refresh();
private function filterFunc(item:Object):Boolean
if(String(item.IP).toLowerCase().indexOf(this.searchInput.text.toLowerCase()) > -1){
return true;
}else{
return false;
// Search for Technology
protected function searchInputTechnology_changeHandler(event:TextOperationEvent):void
this.myIPList.filterFunction = filterFuncTechnology;
this.myIPList.refresh();
private function filterFuncTechnology(item:Object):Boolean
if(String(item.Technology).toLowerCase().indexOf(this.searchInputTechnology.text.toLowerCa se()) > -1){
return true;
}else{
return false;
// Search for Provider
protected function searchInputProvider_changeHandler(event:TextOperationEvent):void
this.myIPList.filterFunction = filterFuncProvider;
this.myIPList.refresh();
private function filterFuncProvider(item:Object):Boolean
if(String(item.Provider).toLowerCase().indexOf(this.searchInputProvider.text.toLowerCase() ) > -1){
return true;
}else{
return false;
protected function myDG_changeHandler(event:ListEvent):void
Alert.show("I Clicked. It should now be possible to see details, damned");
]]>
</fx:Script>
<fx:Declarations>
<s:HTTPService id="myServ" url="IP.xml" fault="myServ_faultHandler(event)" result="myServ_resultHandler(event)"/>
</fx:Declarations>
<mx:DataGrid id="myDG" change="myDG_changeHandler(event)" x="37" y="134" width="814" height="159" dataProvider="{this.myIPList}">
<mx:columns>
<mx:DataGridColumn headerText="IP" dataField="IP"/>
<mx:DataGridColumn headerText="short description" dataField="detail"/>
<mx:DataGridColumn headerText="type" dataField="type"/>
<mx:DataGridColumn headerText="Provider" dataField="Provider"/>
<mx:DataGridColumn headerText="Technology" dataField="Technology"/>
</mx:columns>
</mx:DataGrid>
<s:HGroup x="33" y="74" width="152" height="41" verticalAlign="middle">
<mx:Spacer width="100%">
</mx:Spacer>
<s:Label text="IP"/>
<s:TextInput id="searchInput" change="searchInput_changeHandler(event)" width="103"/>
</s:HGroup>
<s:HGroup x="686" y="74" width="153" height="41" verticalAlign="middle">
<mx:Spacer width="100%">
</mx:Spacer>
<s:Label text="Technology"/>
<s:TextInput id="searchInputTechnology" change="searchInputTechnology_changeHandler(event)" width="94"/>
</s:HGroup>
<s:HGroup x="519" y="74" width="153" height="41" verticalAlign="middle">
<mx:Spacer width="100%">
</mx:Spacer>
<s:Label text="Provider"/>
<s:TextInput id="searchInputProvider" change="searchInputProvider_changeHandler(event)" width="94"/>
</s:HGroup>
<s:Label x="135" y="38" text="IP Road Map" fontSize="29" color="#524E4E"/>
<s:TextArea id="myText" x="37" y="315" width="204" text="{this.myIPList}" height="164"/>
<mx:Image x="33" y="18" width="74" height="57" id="STLogo" source="file:/Users/peterhirt/Pictures/stlogo.png"/>
</s:Application>
Here at tzhe end I append one record out of the xml files I used
<?xml version="1.0" encoding="utf-8" ?>
<test>
<IP>
<IP>USB2 PHY</IP>
<detail>single port </detail>
<type>USB</type>
<Provider>TR&D</Provider>
<Technology>65lp</Technology>
<maturity_status>MAT20</maturity_status>
<status_date>Q4/09</status_date>
<next_Maturity>MAT30</next_Maturity>
<next_Date></next_Date>
<HED>y</HED>
<HED_criticality>2</HED_criticality>
<HED_MAT20_request>Q4/09</HED_MAT20_request>
<CCI></CCI>
<CCI_criticality></CCI_criticality>
<_CCI_MAT20_request></_CCI_MAT20_request>
<APG></APG>
<APG_criticality></APG_criticality>
<APG_MAT20_request></APG_MAT20_request>
<STE></STE>
<STE_criticality></STE_criticality>
<STE_MAT20_request></STE_MAT20_request>
<IMS></IMS>
<IMS_criticality></IMS_criticality>
<IMS_MAT20_request></IMS_MAT20_request>
</IP>Hi Kevin,
the current XML export version is admittedly not suitable for handling HTML data, as it doesn´t put any data inside CDATA sections.
How can I strip out this HTML using the XML export?
I´m not aware of this functionality, but I´m sure it would have to be integrated into the respective "includes" files in order to become effective.
However, you might consider using the manual "converting database queries to XML" approach explained on this page: http://labs.adobe.com/technologies/spry/samples/utils/query2xml.html -- this will give you notably more freedom to e.g. preprocess some data before it´s getting stuffed inside an XML node.
I am pulling RSS feeds from news sites and storing the rss items in a database
Would it be possible to rather sanitize the data before it´s getting stored in the database ?
Cheers,
Günter Schenk
Adobe Community Expert, Dreamweaver -
No Error, No Data When Using XML Source in Data Flow Task
Hi! I want to transfer XML Source to SQL DB. The SSIS version is 2008 and I use inline schema. The package works fine without error but there's no input records in the destination.
Execution without error and no record counts.
Here is my XML (generated by C# Web Service Project), can you help me find out what the problem is .
<?xml version="1.0" encoding="utf-16"?>
<DataTable>
<xs:schema id="NewDataSet" xmlns="" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
<xs:element name="NewDataSet" msdata:IsDataSet="true" msdata:MainDataTable="dt_fuzzy" msdata:UseCurrentLocale="true">
<xs:complexType>
<xs:choice minOccurs="0" maxOccurs="unbounded">
<xs:element name="dt_fuzzy">
<xs:complexType>
<xs:sequence>
<xs:element name="ACCNT_NAME_SUGGEST" minOccurs="0">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:maxLength value="200" />
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="_Similarity" type="xs:float" minOccurs="0" />
<xs:element name="_Confidence" type="xs:float" minOccurs="0" />
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:choice>
</xs:complexType>
</xs:element>
</xs:schema>
<diffgr:diffgram xmlns:msdata="urn:schemas-microsoft-com:xml-msdata" xmlns:diffgr="urn:schemas-microsoft-com:xml-diffgram-v1">
<DocumentElement>
<dt_fuzzy diffgr:id="dt_fuzzy1" msdata:rowOrder="0">
<ACCNT_NAME_SUGGEST>AIRMES</ACCNT_NAME_SUGGEST>
<_Similarity>1</_Similarity>
<_Confidence>1</_Confidence>
</dt_fuzzy>
<dt_fuzzy diffgr:id="dt_fuzzy2" msdata:rowOrder="1">
<ACCNT_NAME_SUGGEST>SIRMET</ACCNT_NAME_SUGGEST>
<_Similarity>0.6214263</_Similarity>
<_Confidence>0.03890347</_Confidence>
</dt_fuzzy>
<dt_fuzzy diffgr:id="dt_fuzzy3" msdata:rowOrder="2">
<ACCNT_NAME_SUGGEST>SIRMEL</ACCNT_NAME_SUGGEST>
<_Similarity>0.6190274</_Similarity>
<_Confidence>0.03705673</_Confidence>
</dt_fuzzy>
<dt_fuzzy diffgr:id="dt_fuzzy4" msdata:rowOrder="3">
<ACCNT_NAME_SUGGEST>GRUPO AIRMET GESTION COMERCIAL, S.L.</ACCNT_NAME_SUGGEST>
<_Similarity>0.483897179</_Similarity>
<_Confidence>0.000368847366</_Confidence>
</dt_fuzzy>
<dt_fuzzy diffgr:id="dt_fuzzy5" msdata:rowOrder="4">
<ACCNT_NAME_SUGGEST>FIRME INFORMATIQUE</ACCNT_NAME_SUGGEST>
<_Similarity>0.4699396</_Similarity>
<_Confidence>0.000164090918</_Confidence>
</dt_fuzzy>
<dt_fuzzy diffgr:id="dt_fuzzy6" msdata:rowOrder="5">
<ACCNT_NAME_SUGGEST>STEFAN HIRMER</ACCNT_NAME_SUGGEST>
<_Similarity>0.434566617</_Similarity>
<_Confidence>1.28168531E-05</_Confidence>
</dt_fuzzy>
<dt_fuzzy diffgr:id="dt_fuzzy7" msdata:rowOrder="6">
<ACCNT_NAME_SUGGEST>Sirmet</ACCNT_NAME_SUGGEST>
<_Similarity>0.4278418</_Similarity>
<_Confidence>7.149945E-06</_Confidence>
</dt_fuzzy>
<dt_fuzzy diffgr:id="dt_fuzzy8" msdata:rowOrder="7">
<ACCNT_NAME_SUGGEST>FIRME ARQUITECTOS,S.L.P.</ACCNT_NAME_SUGGEST>
<_Similarity>0.328356117</_Similarity>
<_Confidence>1.35651484E-12</_Confidence>
</dt_fuzzy>
<dt_fuzzy diffgr:id="dt_fuzzy9" msdata:rowOrder="8">
<ACCNT_NAME_SUGGEST>Tirme S.A.</ACCNT_NAME_SUGGEST>
<_Similarity>0.3022916</_Similarity>
<_Confidence>4.76196153E-16</_Confidence>
</dt_fuzzy>
<dt_fuzzy diffgr:id="dt_fuzzy10" msdata:rowOrder="9">
<ACCNT_NAME_SUGGEST>OEUVRE DES JEUNES INFIRMES</ACCNT_NAME_SUGGEST>
<_Similarity>0.261523962</_Similarity>
<_Confidence>1.31722347E-24</_Confidence>
</dt_fuzzy>
</DocumentElement>
</diffgr:diffgram>
</DataTable>I think problem is your namespaces are different.
Please Mark This As Answer if it helps to solve the issue Visakh ---------------------------- http://visakhm.blogspot.com/ https://www.facebook.com/VmBlogs -
Using XML extraction from Oracle and XSLT data transformation
Hi
How can transfer data ie: Using XML extraction from Oracle and XSLT data transformation with java application?
usually i use to do querying sql, getting data from table assinging to model class then send it to UI. how can i go for XML extraction form oracle?
thanksSorry, I don't understand what exactly you want to do. And I'm under the impression that you might not know exactly what you want to do as well. Could you explain a bit more detailed what you want to achieve?
-
Date format in XML sys.dbms_xmlgen
hello all,
i have posted this question in "general XML " forum also....so please dont mind
i am using following query to generate insert SQL statements
SELECT
'insert into ' || table_name || ' (' || (select rtrim(extract(xmlagg(xmlelement(e, t.column_value.getrootelement() || ',')),'//text()'),',') from table(xmlsequence(t.column_value.extract('ROW/*'))) t) || ') values (' ||
(select dbms_xmlgen.convert(rtrim(extract(xmlagg(xmlelement(e, '''' || t.column_value.extract('//text()') || ''',')),'//text()'),','),1) from table(xmlsequence(t.column_value.extract('ROW/*')))t) || ');' ins_stmt
from user_tables,
table(xmlsequence(dbms_xmlgen.getxmltype('select * from ' || a_TblName ||' WHERE MODIFIEDON >'||a_date).extract('ROWSET/ROW'))) t
where table_name in (select table_name from user_tables where table_name =a_TblName);but when i execute the procedure as
sql> exec Gen_Insert_Statement('11-jun-2009');
ORA-19202: Error occurred in XML processing
ORA-00904: "JUN": invalid identifier
ORA-06512: at "SYS.DBMS_XMLGEN", line 288
ORA-06512: at line 1
ORA-06512: at "MRILDATA17TEST.GEN_INSERT_STATEMENT", line 22
ORA-06512: at line 2 and if i do this
SQL> exec Gen_Insert_Statement('11-06-2009');
begin Gen_Insert_Statement('11-06-2009'); end;
ORA-01843: not a valid month
ORA-06512: at line 2is there any format to pass date while using XML packages??? i am also not getting in which this issue is occuring??
any suggestion will be appreciable
thanks and regards
VD
Edited by: dixit on Aug 13, 2009 6:15 AMthanks for not replying
-
Using a SQL data source and XML data source in the same template
I am trying to develop a template for the Request for Quote report generated in Apps 11.5.10. I have loaded the data from the XML output into the template, but I am missing one field - I need the org_id from the po_headers table. Is it possible to use a sql data source (i.e., "select org_id from po_headers_all where po_header_id = [insert header_id from xml data]...") in addition to the xml data source to populate the template at runtime? When you use the Insert > SQL functionality is it static at the time the template is created, or does it call to the database at runtime? I've looked through all the docs I could find, but this isn't clear.
Thanks for any help or suggestions you may have.
RhondaHi Pablo
Thats a tough one ... if you go custom with a data template you will at least get support on the data template functionality ie you have a problem when you try and build one. You will not get support on the query inside the data template as you might have gotten with the Oracle Report, well you could at least log a bug against development for a bad query.
Eventually that Oracle Report will be converted by development anyway, theres an R12 project going on right now to switch the shipped OReports to data templates. AT this point you'll be fully supported again but:
1. You have to have R12 and
2. You'll need to wait for the patch
On reflection, if you are confident enough in the query then Oracle will support you on its implementation within a data template. Going forward you may be able to swap out your DT and out in the Oracle one without too much effort.
Regards, Tim -
How to create a report using XML data source from Crystal Report Designer
Hi,
Iu2019m having Crystal Report Designer XI R2 SP4. Iu2019m trying to create a report using XML data source stored on disk. This is a customer order report and the xml is structured in such a way that it has an order details header part (master) and then it has several order lines (detail). One order line can have several order line characteristics (detail-detail). So what I need to know is now I can design this layout from the designer. If this was done using views I can do it with sub-reports but using xml data this seems to be different. Can you help me to design this layout? I have included the xml and xsd as well.
Thank you in advance.
Regards,
Chanaka
XML
<?xml version="1.0" encoding="UTF-8"?>
<CUSTOMER_ORDER_CONF_REP_REQUEST xmlns:xsi="http://www.w3.org/2001/XMLSchema" xmlns="urn:ifsworld-com:customer_order_conf_rep">
<CUSTOMER_ORDER_CONF_REP>
<ORDER_NO>D555809</ORDER_NO>
<PRINTED_DATE>2009-03-26T08:52:54</PRINTED_DATE>
<AUTHORIZE_NAME>Chanaka</AUTHORIZE_NAME>
<CUSTOMER_NO>CU-1473-INV</CUSTOMER_NO>
<CUST_NAME>Mr.Johan Matts</CUST_NAME>
<SHIP_ADDR_1>93,Main Street</SHIP_ADDR_1>
<SHIP_ADDR_2>Negambo Road</SHIP_ADDR_2>
<SHIP_ADDR_3>Watthala</SHIP_ADDR_3>
<SHIP_ADDR_4>SRI LANKA</SHIP_ADDR_4>
<BILL_ADDR_1>93,Main Street</BILL_ADDR_1>
<BILL_ADDR_2>Negambo Road</BILL_ADDR_2>
<BILL_ADDR_3>Watthala</BILL_ADDR_3>
<BILL_ADDR_4>SRI LANKA</BILL_ADDR_4>
<CUSTOMER_PO_NO>112984638</CUSTOMER_PO_NO>
<CUSTOMER_FAX>112984639</CUSTOMER_FAX>
<CUSTOMER_EMAIL>abcbababab</CUSTOMER_EMAIL>
<ORDER_LINES>
<ORDER_LINE>
<LINE_NO>1</LINE_NO>
<CUSTOMER_PART_NO>NW-IP11</CUSTOMER_PART_NO>
<CUSTOMER_PART_DESC>iPod</CUSTOMER_PART_DESC>
<SALE_UNIT_PRICE>1200</SALE_UNIT_PRICE>
<PRICE_TOTAL>1200</PRICE_TOTAL>
<DISCOUNT>0</DISCOUNT>
<PRICE_QTY>1</PRICE_QTY>
<ORDER_LINE_CHARACTERSTICS>
<CHARACTERISTIC_ITEM>
<CHARACTERISTIC_ID xsi:nil="1"/>
<CHARACTERISTIC_VALUE xsi:nil="1"/>
</CHARACTERISTIC_ITEM>
</ORDER_LINE_CHARACTERSTICS>
</ORDER_LINE>
<ORDER_LINE>
<LINE_NO>2</LINE_NO>
<CUSTOMER_PART_NO>NW-IP24</CUSTOMER_PART_NO>
<CUSTOMER_PART_DESC>XGA Projector</CUSTOMER_PART_DESC>
<SALE_UNIT_PRICE>500</SALE_UNIT_PRICE>
<PRICE_TOTAL>1500</PRICE_TOTAL>
<DISCOUNT>0</DISCOUNT>
<PRICE_QTY>3</PRICE_QTY>
<ORDER_LINE_CHARACTERSTICS>
<CHARACTERISTIC_ITEM>
<CHARACTERISTIC_ID>1</CHARACTERISTIC_ID>
<CHARACTERISTIC_VALUE>Free Instalation</CHARACTERISTIC_VALUE>
</CHARACTERISTIC_ITEM>
</ORDER_LINE_CHARACTERSTICS>
</ORDER_LINE>
<ORDER_LINE>
<LINE_NO>3</LINE_NO>
<CUSTOMER_PART_NO>NW-IP02</CUSTOMER_PART_NO>
<CUSTOMER_PART_DESC>Sony DVD Player</CUSTOMER_PART_DESC>
<SALE_UNIT_PRICE>1000</SALE_UNIT_PRICE>
<PRICE_TOTAL>1000</PRICE_TOTAL>
<DISCOUNT>0</DISCOUNT>
<PRICE_QTY>1</PRICE_QTY>
<ORDER_LINE_CHARACTERSTICS>
<CHARACTERISTIC_ITEM>
<CHARACTERISTIC_ID>1</CHARACTERISTIC_ID>
<CHARACTERISTIC_VALUE>Free 5 DVDs</CHARACTERISTIC_VALUE>
</CHARACTERISTIC_ITEM>
</ORDER_LINE_CHARACTERSTICS>
</ORDER_LINE>
<ORDER_LINE>
<LINE_NO>4</LINE_NO>
<CUSTOMER_PART_NO>NW-IP99</CUSTOMER_PART_NO>
<CUSTOMER_PART_DESC>Flatscreen TV</CUSTOMER_PART_DESC>
<SALE_UNIT_PRICE>1500</SALE_UNIT_PRICE>
<PRICE_TOTAL>1350</PRICE_TOTAL>
<DISCOUNT>10</DISCOUNT>
<PRICE_QTY>1</PRICE_QTY>
<ORDER_LINE_CHARACTERSTICS>
<CHARACTERISTIC_ITEM>
<CHARACTERISTIC_ID>1</CHARACTERISTIC_ID>
<CHARACTERISTIC_VALUE>Free Delivery</CHARACTERISTIC_VALUE>
</CHARACTERISTIC_ITEM>
<CHARACTERISTIC_ITEM>
<CHARACTERISTIC_ID>2</CHARACTERISTIC_ID>
<CHARACTERISTIC_VALUE>1 year additional warranty</CHARACTERISTIC_VALUE>
</CHARACTERISTIC_ITEM>
</ORDER_LINE_CHARACTERSTICS>
</ORDER_LINE>
<ORDER_LINE>
<LINE_NO>5</LINE_NO>
<CUSTOMER_PART_NO>NW-IP56</CUSTOMER_PART_NO>
<CUSTOMER_PART_DESC>Sony MP3 Player</CUSTOMER_PART_DESC>
<SALE_UNIT_PRICE>200</SALE_UNIT_PRICE>
<PRICE_TOTAL>400</PRICE_TOTAL>
<DISCOUNT>0</DISCOUNT>
<PRICE_QTY>2</PRICE_QTY>
<ORDER_LINE_CHARACTERSTICS>
<CHARACTERISTIC_ITEM>
<CHARACTERISTIC_ID>1</CHARACTERISTIC_ID>
<CHARACTERISTIC_VALUE>Free carry belt</CHARACTERISTIC_VALUE>
</CHARACTERISTIC_ITEM>
<CHARACTERISTIC_ITEM>
<CHARACTERISTIC_ID>2</CHARACTERISTIC_ID>
<CHARACTERISTIC_VALUE>Free promotional 4GB memory bar</CHARACTERISTIC_VALUE>
</CHARACTERISTIC_ITEM>
<CHARACTERISTIC_ITEM>
<CHARACTERISTIC_ID>3</CHARACTERISTIC_ID>
<CHARACTERISTIC_VALUE>No warranty on memory bar</CHARACTERISTIC_VALUE>
</CHARACTERISTIC_ITEM>
</ORDER_LINE_CHARACTERSTICS>
</ORDER_LINE>
</ORDER_LINES>
</CUSTOMER_ORDER_CONF_REP>
</CUSTOMER_ORDER_CONF_REP_REQUEST>
XSD
<?xml version="1.0" encoding="UTF-8"?>
<?report module="ORDER" package="CUSTOMER_ORDER_CONF_REP" ?>
<xs:schema targetNamespace="urn:ifsworld-com:customer_order_conf_rep" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns="urn:ifsworld-com:customer_order_conf_rep" elementFormDefault="qualified" attributeFormDefault="unqualified">
<xs:element name="CUSTOMER_ORDER_CONF_REP_REQUEST">
<xs:complexType>
<xs:all minOccurs="1" maxOccurs="1">
<xs:element name="CUSTOMER_ORDER_CONF_REP">
<xs:complexType>
<xs:choice minOccurs="0" maxOccurs="50">
<xs:element name="ORDER_NO" nillable="true" minOccurs="0">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:maxLength value="2000"/>
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="PRINTED_DATE" type="xs:dateTime" nillable="true" minOccurs="0"/>
<xs:element name="AUTHORIZE_NAME" nillable="true" minOccurs="0">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:maxLength value="2000"/>
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="CUSTOMER_NO" nillable="true" minOccurs="0">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:maxLength value="2000"/>
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="CUSTOMER_PO_NO" nillable="true" minOccurs="0">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:maxLength value="2000"/>
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="CUST_NAME" nillable="true" minOccurs="0">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:maxLength value="2000"/>
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="SHIP_ADDR_1" nillable="true" minOccurs="0">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:maxLength value="2000"/>
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="SHIP_ADDR_2" nillable="true" minOccurs="0">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:maxLength value="2000"/>
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="SHIP_ADDR_3" nillable="true" minOccurs="0">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:maxLength value="2000"/>
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="SHIP_ADDR_4" nillable="true" minOccurs="0">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:maxLength value="2000"/>
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="BILL_ADDR_1" nillable="true" minOccurs="0">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:maxLength value="2000"/>
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="BILL_ADDR_2" nillable="true" minOccurs="0">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:maxLength value="2000"/>
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="BILL_ADDR_3" nillable="true" minOccurs="0">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:maxLength value="2000"/>
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="BILL_ADDR_4" nillable="true" minOccurs="0">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:maxLength value="2000"/>
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="CUSTOMER_FAX" nillable="true" minOccurs="0">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:maxLength value="2000"/>
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="CUSTOMER_EMAIL" nillable="true" minOccurs="0">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:maxLength value="2000"/>
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="ORDER_LINES" nillable="true" minOccurs="0">
<xs:complexType>
<xs:sequence minOccurs="0" maxOccurs="unbounded">
<xs:element name="ORDER_LINE">
<xs:complexType>
<xs:choice minOccurs="0" maxOccurs="39">
<xs:element name="LINE_NO" nillable="true" minOccurs="0">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:maxLength value="2000"/>
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="SALE_UNIT_PRICE" type="xs:float" nillable="true" minOccurs="0"/>
<xs:element name="PRICE_TOTAL" type="xs:float" nillable="true" minOccurs="0"/>
<xs:element name="DISCOUNT" type="xs:float" nillable="true" minOccurs="0"/>
<xs:element name="PRICE_QTY" type="xs:float" nillable="true" minOccurs="0"/>
<xs:element name="CUSTOMER_PART_NO" nillable="true" minOccurs="0">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:maxLength value="4000"/>
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="CUSTOMER_PART_DESC" nillable="true" minOccurs="0">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:maxLength value="4000"/>
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="ORDER_LINE_CHARACTERSTICS" nillable="true" minOccurs="0">
<xs:complexType>
<xs:sequence minOccurs="0" maxOccurs="unbounded">
<xs:element name="CHARACTERISTIC_ITEM">
<xs:complexType>
<xs:choice minOccurs="0" maxOccurs="6">
<xs:element name="CHARACTERISTIC_ID" nillable="true" minOccurs="0">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:maxLength value="2000"/>
</xs:restriction>
</xs:simpleType>
</xs:element>
<xs:element name="CHARACTERISTIC_VALUE" nillable="true" minOccurs="0">
<xs:simpleType>
<xs:restriction base="xs:string">
<xs:maxLength value="2000"/>
</xs:restriction>
</xs:simpleType>
</xs:element>
</xs:choice>
</xs:complexType>
</xs:element>
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:choice>
</xs:complexType>
</xs:element>
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:choice>
</xs:complexType>
</xs:element>
</xs:all>
</xs:complexType>
</xs:element>
</xs:schema>Hi Sourashree,
Thank you for the response and ideas you have given me so far. I can get the fetch the data from the data source without any problem. That is I do the following,
1. New Report
2. From Create New Connection-> XML
3. Provide the u201CLocal XML Fileu201D and have u201CSpecify Schema Fileu201D checked -> Next
4. Provide the u201CLocal Schema Fileu201D -> Finish
Then I can see the following under XML
+ CUSTOMER_ORDER_CONF_REP_REQUEST
CUSTOMER_ORDER_CONF_REP_REQUEST
CUSTOMER_ORDER_CONF_REP_REQUEST/CUSTOMER_ORDER_CONF_REP
CUSTOMER_ORDER_CONF_REP_REQUEST/ CUSTOMER_ORDER_CONF_REP/ORDER_LINES
CUSTOMER_ORDER_CONF_REP_REQUEST/ CUSTOMER_ORDER_CONF_REP/ORDER_LINES/ORDER_LINE
CUSTOMER_ORDER_CONF_REP_REQUEST/ CUSTOMER_ORDER_CONF_REP/ORDER_LINES/ORDER_LINE/ORDER_LINE_CHARACTERSTICS
CUSTOMER_ORDER_CONF_REP_REQUEST/ CUSTOMER_ORDER_CONF_REP/ORDER_LINES/ORDER_LINE/ORDER_LINE_CHARACTERSTICS/CHARACTERSTIC_ITEM
And from here if I add the following three I can get all the fields I need to the report
CUSTOMER_ORDER_CONF_REP_REQUEST/CUSTOMER_ORDER_CONF_REP
CUSTOMER_ORDER_CONF_REP_REQUEST/ CUSTOMER_ORDER_CONF_REP/ORDER_LINES/ORDER_LINE
CUSTOMER_ORDER_CONF_REP_REQUEST/ CUSTOMER_ORDER_CONF_REP/ORDER_LINES/ORDER_LINE/ORDER_LINE_CHARACTERSTICS/CHARACTERSTIC_ITEM
Then I come to the Linking section. Here I canu2019t link anything. There is a common field called u201CInternal_IDu201D but I canu2019t link using it. So I get a message when I click Next. From here I add all the fields.
For this point onwards only I need help. How do I group, add fields and design the layout so I can get an report output as follows.
Date
Order number Authorized code
Customer No
Name
Phone
Fax email
Shipping address 1 Billing Address 1
Shipping address 2 Billing Address 2
Shipping address 3 Billing Address 3
Shipping address 4 Billing Address 4
Order Line 1 detailsu2026u2026u2026u2026u2026u2026u2026u2026u2026u2026u2026u2026u2026 LINE_NO CUSTOMER_PART_NO CUSTOMER_PART_DESC SALE_UNIT_PRICE PRICE_QTY DISCOUNT PRICE_TOTAL
Characteristic details belonging to Order line 1 CHARACTERISTIC_ID 1 CHARACTERISTIC_VALUE1
CHARACTERISTIC_ID 2 CHARACTERISTIC_VALUE2
CHARACTERISTIC_ID 3 CHARACTERISTIC_VALUE3
Order Line 2 detailsu2026u2026u2026u2026u2026u2026u2026u2026u2026u2026u2026u2026u2026u2026
Characteristic details belonging to Order line 2
Order Line 3 detailsu2026u2026u2026u2026u2026u2026u2026u2026u2026u2026u2026u2026u2026u2026
Characteristic details belonging to Order line 3
Order Line 4 detailsu2026u2026u2026u2026u2026u2026u2026u2026u2026u2026u2026u2026u2026u2026
Characteristic details belonging to Order line 4
Order Line 5 detailsu2026u2026u2026u2026u2026u2026u2026u2026u2026u2026u2026u2026u2026u2026
Characteristic details belonging to Order line 5
How can I achieve this kind of a layout using the give xml and xsd? Should I use grouping if so how should I do the grouping?
I have included the full xml and xsd in the first mail I posted but I canu2019t see it now. I can include that again if you want.
Regards,
Chanaka -
Create a Purchase order using the BAPI using the data in the XML file.
Hello Gurus,
here is the scenario can anyone help me how to proceed explaining the procedure?
Create a Purchase order using the BAPI using the data in the XML file.
comprehensive explanations are appreciated.
thanks in advance.hi,
first use fm "bapi_po_create".
then use fm "BAPI_ACC_GL_POSTING_POST"
The demo environment was made with real business scenario in mind, but following subjects need to be addressed in a live implementation:
No exceptions and error handling is implemented, except the order rejection (e.g. partly delivery);
In Navision both XML Ports and the XML DOM has been used to integrate with SAP XI, because XML ports has some drawbacks regarding to Namespaces in XML Documents (mandatory in SAP XI);
A minimum of SAP and Navision customization is required to implement this solution. (e.g. user exit in SAP, Navision XML DOM). -
Hi,
Iam new to the xml,
can u please anyone help me how to write procedure to load the data into a table using xml as input parameter to a procedure and xml file is as shown below which is input to me.
<?xml version="1.0"?>
<DiseaseCodes>
<Entity><dcode>0</dcode><ddesc>(I87)Other disorders of veins - postphlebitic syndrome</ddesc><claimid>34543></claimid><reauthflag>0</reauthflag></Entity>
<Entity><dcode>0</dcode><ddesc>(J04)Acute laryngitis and tracheitis</ddesc><claimid>34543></claimid><reauthflag>0</reauthflag></Entity>
<Entity><dcode>0</dcode><ddesc>(J17*)Pneumonia in other diseases - whooping cough</ddesc><claimid>34543></claimid><reauthflag>0</reauthflag></Entity>
</DiseaseCodes>.
Regards,
vikram.here is the your XML parse in 11g :
select *
from xmltable('//Entity' passing xmltype
'<?xml version="1.0"?>
<DiseaseCodes>
<Entity><dcode>0</dcode><ddesc>(I87)Other disorders of veins - postphlebitic syndrome</ddesc><claimid>34543></claimid><reauthflag>0</reauthflag></Entity>
<Entity><dcode>0</dcode><ddesc>(J04)Acute laryngitis and tracheitis</ddesc><claimid>34543></claimid><reauthflag>0</reauthflag></Entity>
<Entity><dcode>0</dcode><ddesc>(J17*)Pneumonia in other diseases - whooping cough</ddesc><claimid>34543></claimid><reauthflag>0</reauthflag></Entity>
</DiseaseCodes>
') columns
"dcode" varchar2(4000) path '/Entity/dcode',
"ddesc" varchar2(4000) path '/Entity/ddesc',
"reauthflag" varchar2(4000) path '/Entity/reauthflag'
dcode ddesc reauthflag
0 (I87)Other disorders of veins - postphlebitic syndrome 0
0 (J04)Acute laryngitis and tracheitis 0
0 (J17*)Pneumonia in other diseases - whooping cough 0
SQL>
Using this parser you can create procedure as
SQL> create or replace procedure myXMLParse(x clob) as
2 begin
3 insert into MyXmlTable
4 select *
5 from xmltable('//Entity' passing xmltype(x) columns "dcode"
6 varchar2(4000) path '/Entity/dcode',
7 "ddesc" varchar2(4000) path '/Entity/ddesc',
8 "reauthflag" varchar2(4000) path '/Entity/reauthflag');
9 commit;
10 end;
11
12 /
Procedure created
SQL>
SQL>
SQL> exec myXMLParse('<?xml version="1.0"?><DiseaseCodes><Entity><dcode>0</dcode><ddesc>(I87)Other disorders of veins - postphlebitic syndrome</ddesc><claimid>34543></claimid><reauthflag>0</reauthflag></Entity><Entity><dcode>0</dcode><ddesc>(J04)Acute laryngitis and tracheitis</ddesc><claimid>34543></claimid><reauthflag>0</reauthflag></Entity><Entity><dcode>0</dcode><ddesc>(J17*)Pneumonia in other diseases - whooping cough</ddesc><claimid>34543></claimid><reauthflag>0</reauthflag></Entity></DiseaseCodes>');
PL/SQL procedure successfully completed
SQL> select * from MYXMLTABLE;
dcode ddesc reauthflag
0 (I87)Other disorders of veins - postphlebitic syndrome 0
0 (J04)Acute laryngitis and tracheitis 0
0 (J17*)Pneumonia in other diseases - whooping cough 0
SQL>
SQL>
Ramin Hashimzade
Maybe you are looking for
-
Change documents or logs for Analysis authorisation access changes
Is there a way to review the change history or table logs in BI 7.0 to show who assigned analysis authorizations and when it was assigned or removed? I presume there should be a SUIM change document that shows the Analysis authorization access chang
-
I have downloaded forte 4 community edition. I want to run a stand alone swing application using the accompanying RDBMS pointbase 4.2. While connecting to database it is giving error: 'class not found' com.pointbase.jdbc..... I think i can overcome t
-
How to Hide / Unhide iGrid Applet
I'm attempting to develop an irpt page which will feature two grids / applets. The topmost grid will be visible upon initial load of the page. Upon selecting a record from the top grid, I'd like to then unhide the bottom grid so that a user may sel
-
Hi Experts, I was playing/experimenting with query plans but got stuck up with the below. I guess, I'm overlooking something. ranit@XE11GR2>> create table t 2 as 3 select * from all_objects; Table created. ranit@XE11GR2>> exec dbms_stats.gather
-
Instance Settings: Wallet path and wallet password
What is the purpose of the wallet settings in the instance settings for apex if you are using the modplsql instead of the XDB http server. Do you still need to set the wallet if you are doing ssl and the oracle app server with modplsql.