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
Similar Messages
-
Exporting data from DB to a XML file (in InDesign CS3)
Hi folks,
I receive my data from a call to a database in InDesign, then I need to save them in XML file in my local drive, I use Mac OS X but I want to use the same code (as much as possible) shared with the same version of plugin on Windows. I also need to import the data back from XML file (via using script) to the local doc in InDesign later on. Would you please advice me of how to export/import to/from XML file in InDesign's doc. I checked the code in SnpXMLSampleHelper file. Is that the good/best approach to do it in InDesign?
TIA,
NimaHi Martin,
Check this..u have to explore more for this issue but i think it can help u a bit
<a href="/people/anilkumar.vippagunta2/blog/2007/02/01/office-control-in-webdynpro--i:///people/anilkumar.vippagunta2/blog/2007/02/01/office-control-in-webdynpro--i
<a href="http://help.sap.com/saphelp_nw2004s/helpdata/en/ef/3483789514b748b6fe1f145e9685ab/content.htm">http://help.sap.com/saphelp_nw2004s/helpdata/en/ef/3483789514b748b6fe1f145e9685ab/content.htm</a>
regards
Sumit -
Importing/Exporting data from Microsoft Access
Hello to everybody!
I have to create a management software (client-server).
CLIENT SIDE: ClientS insert data into forms and these data are stored into a database Access (client database). Every month clients send to the server some of the data stored (data of the month!).
SERVER SIDE: "Server man" receive from clients those data by email end need to store them into the main server database.
Note: Data to be send have not a big dimension and, naturally, clients and server databases are identical (same structure)!
My questions are:
1) What is the best way to export data from database access to a file? (I imagine I need to use .XML file). Do I need to use particular package or software??
2) What is the best way to import data from a file (maybe .XML) into a database access (of server)?? Do I need to use particular package or software??
This is my first software of this kind.
Please HELP ME!
Thanks in advance, Liuk.1) What is the best way to export data from database
access to a file?That depends on many things.
(I imagine I need to use .XML
file). NO! That's not what XML is for
Do I need to use particular package or
software??Again, that depends on a lot of things.
2) What is the best way to import data from a file
(maybe .XML) into a database access (of server)?? Do
I need to use particular package or software??Look at Java IO packages for reading data from files. Then look at JDBC for writing data to databases. Avoid XML, you don't need it. -
Convert data from internal table to XML file.
Hi All,
I am selecting data from database into one internal table.
Now I want to convert data from internal table to xml file format and save in to my desktop. Please suggest me how I can achieve my requirement.
Kindly reply me ASAP.Use this FM. SAP_CONVERT_TO_XML_FORMAT
Check this link too -
Re: Data Export in XML format
XML files from ABAP programs -
How to import/export data in pl/sql developer
how to import/export data,table script in pl/sql developer.
By using the export functionality i am getting the dump file.I want a sql file.How do i do it?
And i want the data in csv file and table script in a sep sql file.How do i do it?<li>run your query in "Query Builder"
<li>Right-Click on the Query-Results
<li>Click "Export"
<li>Click on the "Drop-Down" in front of "Format" and choose "insert"
<li>Provide the location and name of ther "sql" file.
If you want output in CSV format, choose "csv" from the "format" drop-down.
HTH -
Export data from MS sql server table to an oracle table
I need to move data from a sql server table to an oracle table and when ever the sql server table is updated it needs to automatically update the oracle table. Is there procedure to do this or do I migrate the data once and set up a trigger on the sql server table to update the oracle table? If the trigger is the answer how do I do that?
You might want to check out Oracle's heterogeneous services functionality if you haven't done so already. Here are a few links:
http://download.oracle.com/docs/cd/B19306_01/server.102/b14232/toc.htm
http://download.oracle.com/docs/cd/B19306_01/server.102/b14232/majfeat.htm#sthref74
Also, consulting the Oracle streams manual may be helpful -- particularly Chapter 5.
http://download.oracle.com/docs/cd/B19306_01/server.102/b14228/toc.htm
Perhaps someone who is more familiar with SQL Server could provide a more helpful answer. -
Exporting Data from WebDynpro to a Word-file
Hello,
I'm looking for a way to export data from a WebDynpro to a MS Word-file. I have already a template of the word-document, so the data should be transfered to a specific area of the file.
I already checked the Jakarta project, but the Word sub-project seems not mature yet. I also read about the possibility to do this using XML. But because I'm not familiar with XML, I don't know if it is possible to fill an already existing file. Are there some free APIs which can be used for this purpose?
Thanks for any hint!
Regards,
MartinHi Martin,
Check this..u have to explore more for this issue but i think it can help u a bit
<a href="/people/anilkumar.vippagunta2/blog/2007/02/01/office-control-in-webdynpro--i:///people/anilkumar.vippagunta2/blog/2007/02/01/office-control-in-webdynpro--i
<a href="http://help.sap.com/saphelp_nw2004s/helpdata/en/ef/3483789514b748b6fe1f145e9685ab/content.htm">http://help.sap.com/saphelp_nw2004s/helpdata/en/ef/3483789514b748b6fe1f145e9685ab/content.htm</a>
regards
Sumit -
Export data from a table to text file using srcipt task
Hi
i am new to SSIS
i have to export data from a table and append it into a existing file through SSIS script task
please help
Thanks
UmeshHi Umesh,
The data structure of the source table and the structure of the destination file are the same, right? Is the destination file a flat file? Do you have to do it through Script Task? If the destination file is a flat file, this can be done easily by using
the stock tasks/components other than .NET code. In the Data Flow Task, we choose the appropriate source adapter (such as OLE DB Source or ADO.NET Source) to extract data from the source table, perform transformation if necessary, and then load to the destination
file via a Flat File Destination. When setting up the Flat File Destination, uncheck the “Overwrite data in the file” option so that the extracted data will be appended to the existing file.
If you need to implement it through Script Task/Component indeed, you may benefit from the following code examples:
http://stackoverflow.com/questions/8070163/how-to-add-custom-footer-to-an-ssis-flat-file-seperate-component-or-script-tas
http://stackoverflow.com/questions/8467326/add-header-and-footer-row-flat-file-ssis
If you need further help about the script, I suggest that you ask a new question in .NET forums where you can get more dedicated support:
http://social.msdn.microsoft.com/Forums/vstudio/en-US/home?category=netdevelopment
Regards,
Mike Yin
TechNet Community Support -
Importing the data from MS SQL Server 7.0 SP3 to ORACLE 8i - 8.1.7
How can I import a database from SQL Server to ORACLE Databas
server ?
It would be great if you could help me with that ...
Thanks,
MuradHi,
This error is fixed in the production verison of the SQL Server 7.0 plugin. This will be released in the next few weeks with the Oracle 8i relase 2 for Windows NT.
Regards
John -
Error while downloading data from internal table into XML file
hi all,
i developed a program to download data from into internal table to xml file like this.
tables: mara.
parameters: p_matnr like mara-matnr.
data: begin of itab_mara occurs 0,
matnr like mara-matnr,
ernam like mara-ernam,
aenam like mara-aenam,
vpsta like mara-vpsta,
end of itab_mara.
data: lv_field_seperator type c, " value 'X',
lv_xml_doc_name(30) type c, " string value my xml file,
lv_result type i.
lv_field_seperator = 'x'.
lv_xml_doc_name = 'my xml file'.
types: begin of truxs_xml_line,
data(256) type x,
end of truxs_xml_line.
types:truxs_xml_table type table of truxs_xml_line.
data:lv_tab_converted_data type truxs_xml_line,
lt_tab_converted_data type truxs_xml_table.
data: lv_xml_file type rlgrap-filename value 'c:\simp.xml'.
select matnr ernam aenam vpsta from mara into table itab_mara up to 5
rows where matnr = p_matnr.
CALL FUNCTION 'SAP_CONVERT_TO_XML_FORMAT'
EXPORTING
I_FIELD_SEPERATOR = lv_field_seperator
I_LINE_HEADER =
I_FILENAME =
I_APPL_KEEP = ' '
I_XML_DOC_NAME = lv_xml_doc_name
IMPORTING
PE_BIN_FILESIZE = lv_result
TABLES
I_TAB_SAP_DATA = itab_mara
CHANGING
I_TAB_CONVERTED_DATA = lt_tab_converted_data
EXCEPTIONS
CONVERSION_FAILED = 1
OTHERS = 2
IF SY-SUBRC <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
open dataset lv_xml_file for output in binary mode.
loop at lt_tab_converted_data into lv_tab_converted_data.
transfer lv_tab_converted_data to lv_xml_file.
endloop.
close dataset lv_xml_file.
this program is syntactically correct and getting executed, but when i open the target xml file it is showing the following error.
The XML page cannot be displayed
Cannot view XML input using style sheet. Please correct the error and then click the Refresh button, or try again later.
XML document must have a top level element. Error processing resource 'file:///C:/simp.xml'.
will anyone show me the possible solution to rectify this error
thanks and regards,
anil.Hi,
Here is a small sample program to convert data in an internal table into XML format and display it.
DATA: itab TYPE TABLE OF spfli,
l_xml TYPE REF TO cl_xml_document.
* Read data into a ITAB
SELECT * FROM spfli INTO TABLE itab.
* Create the XML Object
CREATE OBJECT l_xml.
* Convert data in ITAB to XML
CALL METHOD l_xml->create_with_data( name = 'Test1'
dataobject = t_goal[] ).
* Display XML Document
CALL METHOD l_xml->display.
Here are some other sample SAP programs to handle XML in ABAP:
BCCIIXMLT1, BCCIIXMLT2, and BCCIIXMLT3.
Hope this helps,
Sumant. -
Extracting data from a tag of xml file which is(xml) in a Field of Csv.
We have a xlm script which is stored in the clob column of the csv file. we have to extract one value from the <tag> and reject remaining data.
Sample:-
<ROW>
<ID>100</ID>
<ORDER_DATE>2000.12.20</ORDER_DATE>
<SHIPTO_NAME>Adrian Howard</SHIPTO_NAME>
<SHIPTO_STREET>500 Marine World Parkway</SHIPTO_STREET>
<SHIPTO_CITY>Redwood City</SHIPTO_CITY>
<SHIPTO_STATE>CA</SHIPTO_STATE>
<SHIPTO_ZIP>94065</SHIPTO_ZIP>
</ROW>
Required Output:-
We have to extract the "500 Marine World Parkway"
from tag <SHIPTO_STREET>
and the above sample xml file is in one of the column which is clob datatype
Any idea How to perform the above activity in PL/SQL ?As BP suggested you can use an XPATH query to extract that information from your XML. However it depends a bit on your XML data.
Here are two examples:
one row XML
select extractvalue(xmltype('<ROW>
<ID>100</ID>
<ORDER_DATE>2000.12.20</ORDER_DATE>
<SHIPTO_NAME>Adrian Howard</SHIPTO_NAME>
<SHIPTO_STREET>500 Marine World Parkway</SHIPTO_STREET>
<SHIPTO_CITY>Redwood City</SHIPTO_CITY>
<SHIPTO_STATE>CA</SHIPTO_STATE>
<SHIPTO_ZIP>94065</SHIPTO_ZIP>
</ROW>')
,'//SHIPTO_STREET/text()') as result
from dual;
RESULT
500 Marine World Parkway
multi rows XML
select extractvalue(column_value,'SHIPTO_STREET/text()') as result
from table(xmlsequence(extract(xmltype('<ROWS>
<ROW>
<ID>100</ID>
<ORDER_DATE>2000.12.20</ORDER_DATE>
<SHIPTO_NAME>Adrian Howard</SHIPTO_NAME>
<SHIPTO_STREET>500 Marine World Parkway</SHIPTO_STREET>
<SHIPTO_CITY>Redwood City</SHIPTO_CITY>
<SHIPTO_STATE>CA</SHIPTO_STATE>
<SHIPTO_ZIP>94065</SHIPTO_ZIP>
</ROW>
<ROW>
<ID>200</ID>
<ORDER_DATE>2000.12.20</ORDER_DATE>
<SHIPTO_NAME>Adrian Howard</SHIPTO_NAME>
<SHIPTO_STREET>Test</SHIPTO_STREET>
<SHIPTO_CITY>Redwood City</SHIPTO_CITY>
<SHIPTO_STATE>CA</SHIPTO_STATE>
<SHIPTO_ZIP>94065</SHIPTO_ZIP>
</ROW>
</ROWS>'
),'ROWS/ROW/SHIPTO_STREET')));
RESULT
500 Marine World Parkway
Test -
Export data from iphoto 09 to searchable file
I have iphoto 09. I would like to export the titles, locations, times and dates, and comments for the photos in an album to a searchable file. I can't find a simple way to do this. Please help
I have created a database of family photos. I would like to merge the information I have stored in the database about each photo with the information from iphoto into a single set of files I can distribute to other family members. iphoto lets me export the photos and ancillary information html files but I have no way to combine that with the other information stored in my database.
I can export the information from the database to a tab delimited file which makes it accessible to all sorts of other applications. I would like to be able to do the same thing with the iphoto data.
Thanks. -
Publish Report through RTF Template based on data from 2 diff. XML Files
We are trying and facing issue to generate report in BI Publisher by concatenating 2 XML files as described below. Please help!
1.We have two xml.One xml is comming from our data base query (through data template) and other is coming through url (using HTTP xml feed option)
We are concanating thse two xml in BI Publisher. Now i am getting the concanated xml as shown below .
<?xml version="1.0"?>
<STAR>
<DATA>
<ROWSET>
<ROW>
<USER_NAME>ABC</USER_NAME>
<STAFF_ID>589089</STAFF_ID>
<COLOR_HOURS>2</COLOR_HOURS>
<OPINION_HOURS>3</OPINION_HOURS>
<DOWN_HOURS>4</DOWN_HOURS>
</ROW>
</ROWSET>
</DATA>
<HRMS_DATA_RESPONSE>
<EMP_DETAIL>
<EMPID>589089</EMPID>
<REGULAR_TIME>19</REGULAR_TIME>
<OVER_TIME>4.75</OVER_TIME>
<MAKEUP_TIME>3</MAKEUP_TIME>
<DOUBLE_TIME>4</DOUBLE_TIME>
<REDUCED_TIME>1</REDUCED_TIME>
<UNPAID_TIME/>
</EMP_DETAIL>
<STATUS>SUCCESS</STATUS>
<ERROR>
<ERROR_CD />
<ERROR_DESC />
</ERROR>
</HRMS_DATA_RESPONSE>
</STAR>
2.Now we have to calculate like eg.( COLOR_HOURS+ DOWN_HOURS -MAKEUP_TIME-REDUCED_TIME ) for each EMPID which is same as STAFF_ID .
3. Now our concern is that we are not able to get values.
we are doing something like:
<?for each:data?><?for each: row?><?STAFF_ID?><?for each:HRMS_DATA_RESPONSE?><?for each:EMP_DETAI?><?if:EMPID= STAFF_ID?><?( COLOR_HOURS+ DOWN_HOURS -MAKEUP_TIME-REDUCED_TIME )?><?end if?><?end for each?><?end for each?><?end for each?><?end for each?>Hi,
Thanks a lot, it really helps me a lot, i hav one more issue, In a field i hav to calculate Adjusted hrs, which i hav calculate like this
for adjusted hrs----
<?for-each://EMPDETAIL?><?if:xdoxslt:get_variable($_XDOCTX,’STAFF_ID’) = EMPID?>
<?xdoxslt:set_variable($_XDOCTX,'Diff',REGULAR_TIME + OVER_TIME + MAKEUP_TIME + DOUBLE_TIME - REDUCED_TIME) ?>
<?xdoxslt:get_variable($_XDOCTX,'Diff') - xdoxslt:get_variable($_XDOCTX,'STAFF_HOURS')?
its working fine now again i store this in another variable 'A'.
<?xdoxslt:set_variable($_XDOCTX,'A',
xdoxslt:get_variable($_XDOCTX,'Diff') - xdoxslt:get_variable($_XDOCTX,'STAFF_HOURS'))?>
<?END IF?><?end for-each?>
Now again i take a variable SUM in which this calculation is done, all these fields r in each ROW of DATA.
<?xdoxslt:set_variable($_XDOCTX,'SUM',((TOTAL_PRELIM TOTAL_DOUBLETOTAL_TRIPLE+TOTAL_QA+TOTAL_GDC+((TOTAL_DOSSIER) div (2)))*8))?>
<?if@column:../../STATUS1 != 'GRADING DEVELOPMENT COORDINATOR' ?>(*STATUS1 is field in DATA/ROW)
<?if:../../STATUS1 = 'Prelim' ?>
<?xdofx: if to_number(PRELIM_MONTHS)<12 then 10
else to_number( ( xdoxslt:get_variable($_XDOCTX,'SUM' )) div (xdoxslt:get_variable($_XDOCTX,'A'))) end if?>
Now when i m performing the above division between 'SUM' and 'A'. I am not geeting the desired result.pls help..
Detailed xml is given below:(there is little difference between previous xml and this like star =DATA, AND DATA=QA)
<DATA>
<QA>
<ROWSET>
<USER1>170702</USER1>
<START_DATE>12/12/2007</START_DATE>
<END_DATE>02/02/2008</END_DATE>
<STATUS1>Prelim</STATUS1>
<WORKAREA/>
<SERVICE_GROUP/>
<LOC>1</LOC>
<WEIGHT>0-40</WEIGHT>
<LIST_ROW>
<ROW>
<USER_NAME>AKATHMAN</USER_NAME>
<STAFFID>589089</STAFFID>
<PRELIM_DATE>12</PRELIM_DATE>
<PRELIM_MONTHS>12</PRELIM_MONTHS>
<DOUBLE_DATE>10</DOUBLE_DATE>
<DOUBLE_MONTHS>7</DOUBLE_MONTHS>
<QA_DATE>3</QA_DATE>
<QA_MONTHS>5</QA_MONTHS>
<GDC_DATE>23</GDC_DATE>
<GDC_MONTHS>12</GDC_MONTHS>
<DOWN_HRS>1</DOWN_HRS>
<COLOR_HRS>1</COLOR_HRS>
<OPINION_HRS>1</OPINION_HRS>
<TOTAL_REVIEWED/>
<TOTAL_DOSSIER>2</TOTAL_DOSSIER>
<TOTAL_COLORS>0</TOTAL_COLORS>
<TOTAL_OPINION>0</TOTAL_OPINION>
<TOTAL_COLORED_DIAMONDS>0</TOTAL_COLORED_DIAMONDS>
<REVIEWED>0</REVIEWED>
<TOTAL_PRELIM>67</TOTAL_PRELIM>
<TOTAL_DOUBLE>10</TOTAL_DOUBLE>
<TOTAL_TRIPLE>0</TOTAL_TRIPLE>
<TOTAL_QA>0</TOTAL_QA>
<TOTAL_GDC>0</TOTAL_GDC>
<TOTAL_REPORT>67</TOTAL_REPORT>
<QUALITY_SCORE>0</QUALITY_SCORE>
</ROW>
<ROW>
<USER_NAME>EKWON</USER_NAME>
<STAFFID>180602</STAFFID>
<PRELIM_DATE/>
<PRELIM_MONTHS/>
<DOUBLE_DATE/>
<DOUBLE_MONTHS/>
<QA_DATE/>
<QA_MONTHS/>
<GDC_DATE/>
<GDC_MONTHS/>
<DOWN_HRS>0</DOWN_HRS>
<COLOR_HRS>0</COLOR_HRS>
<OPINION_HRS>0</OPINION_HRS>
<TOTAL_REVIEWED/>
<TOTAL_DOSSIER>0</TOTAL_DOSSIER>
<TOTAL_COLORS>0</TOTAL_COLORS>
<TOTAL_OPINION>0</TOTAL_OPINION>
<TOTAL_COLORED_DIAMONDS>0</TOTAL_COLORED_DIAMONDS>
<REVIEWED>0</REVIEWED>
<TOTAL_PRELIM>1</TOTAL_PRELIM>
<TOTAL_DOUBLE>0</TOTAL_DOUBLE>
<TOTAL_TRIPLE>0</TOTAL_TRIPLE>
<TOTAL_QA>0</TOTAL_QA>
<TOTAL_GDC>0</TOTAL_GDC>
<TOTAL_REPORT>1</TOTAL_REPORT>
<QUALITY_SCORE>0</QUALITY_SCORE>
</ROW>
</LIST_ROW>
</ROWSET></QA><pocQA><HRMS_DATA_RESPONSE>
<EMPDETAIL>
<EMPID>589089</EMPID>
<REGULAR_TIME>19</REGULAR_TIME>
<OVER_TIME>4.75</OVER_TIME>
<MAKEUP_TIME>3</MAKEUP_TIME>
<DOUBLE_TIME>4.25</DOUBLE_TIME>
<REDUCED_TIME>1</REDUCED_TIME>
<UNPAID_TIME/>
</EMPDETAIL>
<STATUS></STATUS>
<ERROR>
<ERROR_CD/>
<ERROR_DESC/>
</ERROR>
</HRMS_DATA_RESPONSE>
</pocQA>
</DATA> -
Xslt and getting data from a uri in xml file
In my xml file, i have a node that conains a uri to another xml file
Is it possible to use XSLT to open the hyperlink and get the content of that xml file?Possibly using the document() function.
-
How get data from business object to xml file
Hi all,
My new problem is ,,
In my application, I have check list of selected business partners. In that , I want to save the checked oBusinessPartners complete information to an XML file(created dynamically),
How to do?
Thanks in advance
shashi kiranShashi Kiran,
Can you explain me detail where
you want to save check business partners in xml ?
Jeyakanthan
Maybe you are looking for
-
Query help, subtract two query parts
Hi, I am beginner of PL/SQL and have a problem I couldn't solve: Table (op_list): Item - Amount - Status Item1 - 10 - in Item2 - 12 - in Item3 - 7 - in Item1 - 2 - out Item2
-
How do i transfer movies purchased in itunes to a new computer?
I would appreciate advice on how to transfer movies that i purchased on itunes from an old computer to a new one? I have figured out the music and podcasts but the movies and tv shows are not transferring. Advice? thanks!
-
Trying to figure out why MacBook Pro 1,1 shuts down randomly
Hi- I have a MacBook Pro that shuts down frequently, almost during every use. This has been happening over the last 2-3 months. It will be working fine, then the pointer freezes, then the screen will flicker, then it will shut off. The problem happen
-
JMaskField mask input : delete and backspace do not work
I am using this package for formatted input. Delete and backspace do not work if the field is created with a default text as in the code snippet I attach. Did somebody managed this to work? How? delete and backspace work badly in everycase anyway. be
-
When I search for a web sites, it gives a list of connected web site. If I click a particular web site, it immediately opens a blank page and says"done" at the bottom of the page. The opened web address is wrong even though the link property shows th