Data Transfer Workbech - XML File
Hi,
I pretend use the Task Scheduler for importation data to the SAP Business One System. For this, I created a batch file with information:
cd "C:\Program Files (x86)\SAP\Data Transfer Workbench"
DTW -S C:\Temp\DTW_ScheduleItemImport.xml
Also, I exported for xml file the data to import in the system through Data Transfer Workbench. The content of xml file is:
<DTW><BOM><BO><AdmInfo><Object>13</Object><Version>2</Version></AdmInfo><Documents><row><CardCode>C1001</CardCode><DocDate>20050223</DocDate><DocDueDate>20050223</DocDueDate><Series>1000</Series><TaxDate>20050223</TaxDate></row></Documents><Document_Lines><row><ItemCode>A1008</ItemCode><Price>8</Price><Quantity>2</Quantity><WarehouseCode>01</WarehouseCode></row></Document_Lines></BO></BOM></DTW>
When I schedule a task in Task Scheduler runs the same but the data are not imported.
I believe that not import due to the fact that in the XML file will not be exported data on BD certified in Data Transfer Workbench.
Anyone help me?
Thanks.
Sandra Pereira
Hello Sandra,
I trust you.
>The objective this process is to schedule of importing data into the system using the mapping in xml, right?
Yes, and all the login information, file information, etc. the filename should be the same each time to import the data.
Maybe you are using older version of DTW than it knows. You may try to upgrade to the latest DTW, or at least B1 2007 SP 01 version (i have DTW 2005.0.30)
my xml file looks like
<Transfer>
- <Logon>
<UserName>manager</UserName>
<Password>tCmKcJvLfKqJ</Password>
<Company>FRMARPSAPHU</Company>
<Server>(local)sqlexpress</Server>
<UserAuthentication>True</UserAuthentication>
<Language></Language>
<LicenseServer></LicenseServer>
<ChooseDB>False</ChooseDB>
<DBType>4</DBType>
<DBUser></DBUser>
<SybasePort></SybasePort>
<DBPassword></DBPassword>
</Logon>
<ObjectCode>oItems</ObjectCode>
- <FileExtractor>
- <Extorlogin>
<ExID></ExID>
<ExDSN></ExDSN>
</Extorlogin>
<FilesTypes>2</FilesTypes>
- <Files>
<Items>C:SBOProjectsBio-RAD2010Service Implementationitems.txt</Items>
</Files>
</FileExtractor>
etc
Regards
János
Similar Messages
-
How to transfer a (XML) file from EJB to WebDynpro / User ??
Hello!
Actually I'm working on an EJB which is able to generate an XML file by the data I saved before in a JDBC database.
Now I'd like to create a WebDynpro view, from where the user can download this file (after giving the order to generate it) to his local machine.
For the UI element FileDownload I already have inserted the binary type element into the context.
Now I'm looking for the best way to transfer the XML file from the EJB to the view, so that it can be downloaded.
Is it better to transfer it by DOMSource and to create the file in the view or to create the file in the EJB and transfer the binary data to the view?
Or is there another possibility?
Greetings,
RamóIn transaction SM69 external operating system commands can be set up and then these can be executed using function SXPG_CALL_SYSTEM from ABAP or using SM49 transaction.
See documentation in the function module and application help in the SM69 / SM49 transactions.
You could set up commands for copy, move, delete for the relevant directories. Be careful to limit the directories and set security appropriately.
Andrew -
How to transfer an xml file to NW Portal Knowledge Management from XI?
Hi all,
Anybody knows how to transfer an xml file to NW Portal Knowledge Management from XI?
What kind of adapter type I have to choose? And which procedures I have to do in KM Portal? Create a folder, what kind of folder and permissions?
Suggestions and ideas are appreciated.
Thanks in advance,
Ricardo.Hi
Can anyone tell me how XI sends messages to applications like J2EE. In REceiver comm channel, I think we specify about the target system like J2EE appl.
Aadapter Type: HTTP
Receiver
Transport Protocol: HTTP1.0
Message Protocol: XI payload in HTTP body
Adapter Engine: Integration Server
Addressing Type: URL address
Target host: localhost
Service Number: 7001(Port number of Weblogic appl server--where my J2EE appl is deployed).
Path : /Invoke/DisplayRes/
Authentication Type:Use Logon Data for SAP System
Content Type: text/xml
Username: xiappluser
password: xx
XML code: UTF-8
I suppose XI sends msgs to http://localhost:7001/Invoke/DisplayRes/........
in this example if am correct?
Then I have given all tyhe necessary setting but my servlet is not able to display XML msg in browser?
This is my servlet code:
public void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException
PrintWriter out = response.getWriter();
BufferedReader brin =new BufferedReader(new InputStreamReader(request.getInputStream()));
String inputLine;
StringBuffer sBuf = new StringBuffer();
response.setContentType("text/xml");
while ((inputLine = brin.readLine()) != null)
sBuf.append(inputLine);
out.println("hi");
out.println(sBuf.toString());
brin.close();
out.flush();
What went wrong?
Help me, all helpful answers are highly rewarded.
Thanks -
How to transfer a xml file?
Dear friends,
I have a question about how to transfer a xml file between server and client using axis or weblogic.
My application needs to send xml files instead of primitive data types and bean objects.
Is it possible to tranfer files between server and client?
thank you very much for your great help!
jayanandan.hi,
There are two ways in which u can send an xml file.
1) U send it along with the body of the soap message.
2)u can send it as an attachment in the soap envelope. this method u can use for any type of files.
If u send it in soap body the it will take more time for the processing of the soap body.so attachment is the best way.
I case of any queries please feel free to post it in the forum
Regards
Sandy -
How to export a data as an XML file from oracle data base?
could u pls tell me the step by step procedure for following questions...? how to export a data as an XML file from oracle data base? is it possible? plz tell me itz urgent requirement...
Thankz in advance
BalaSQL> SELECT * FROM v$version;
BANNER
Oracle DATABASE 11g Enterprise Edition Release 11.1.0.6.0 - Production
PL/SQL Release 11.1.0.6.0 - Production
CORE 11.1.0.6.0 Production
TNS FOR 32-bit Windows: Version 11.1.0.6.0 - Production
NLSRTL Version 11.1.0.6.0 - Production
5 rows selected.
SQL> CREATE OR REPLACE directory utldata AS 'C:\temp';
Directory created.
SQL> declare
2 doc DBMS_XMLDOM.DOMDocument;
3 xdata XMLTYPE;
4
5 CURSOR xmlcur IS
6 SELECT xmlelement("Employee",XMLAttributes('http://www.w3.org/2001/XMLSchema' AS "xmlns:xsi",
7 'http://www.oracle.com/Employee.xsd' AS "xsi:nonamespaceSchemaLocation")
8 ,xmlelement("EmployeeNumber",e.empno)
9 ,xmlelement("EmployeeName",e.ename)
10 ,xmlelement("Department",xmlelement("DepartmentName",d.dname)
11 ,xmlelement("Location",d.loc)
12 )
13 )
14 FROM emp e
15 , dept d
16 WHERE e.DEPTNO=d.DEPTNO;
17
18 begin
19 OPEN xmlcur;
20 FETCH xmlcur INTO xdata;
21 CLOSE xmlcur;
22 doc := DBMS_XMLDOM.NewDOMDocument(xdata);
23 DBMS_XMLDOM.WRITETOFILE(doc, 'UTLDATA/marco.xml');
24 end;
25 /
PL/SQL procedure successfully completed.
. -
How to update data in a xml file.
I am able to retrieve data from a xml file but not able to update data. Also how can i add or delete node from a xml file.
Hi,
For some time I have also been trying to do the same thing with no success. So far I have tried a few approaches like $.post functions $.ajax post functions and HTML5 fileWriter functions. I am not well aware of the web development techniques but as fas as I understand the post or update of the json file should be done on the serverside mainly because of security issues. I am not sure how appbuilder works entirely and if there is any way to do this.
Have you managed to find a solution ?
(P.S. my goal is to update my chart data which is of course json file. So the idea here is to get some values from the user input and update the json file values then refresh the chart and display it with the new values).
Best Regards,
A.Dyankov. -
how to add data in xml file from textbox in c# without overwriting???
Hi,
As Andy said, add data to an xml file is overwriting, if you mean append data to xml file, please look this article:
http://codesamplez.com/programming/linq-to-xml-tutorial, Since this issue is more related to ASP.net, you could also ask this issue in asp.net forum:
http://forums.asp.net/
Best Regards,
Jambor
We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
Click
HERE to participate the survey. -
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). -
Error in Reading data from a xml file in ESB
Hi,
i created a inbound file adapter service which reads data from a xml file and passes it to the routing service and from there updates to the database.....
(everything created in jdeveloper)
But i am getting error....it is not getting updated to the database...when i check the database(select * from table) its showing one row selected but i couldnt find the data....
Transformation mapping also i did...
i think may be some error in reading the data from the xml file but not so sure.....
please reply to this mail as soon as possible its very urgentMichael R wrote:
The target table will be created when you execute the interface, if you set the option on the flow tab as instructed in step #6 of the "Setting up ODI Constraint on CLIENT Datastore" Section.
Option Value
CREATE_TARG_TABLE trueHi Michel,
This was not my required answer.I am sorry that I was unable to clarify my question.Actually
+This project executed successfully with some warning.Target Table is automatically created in database and also populated with data.But when I right-click Target Datastore(in >Mapping Tab of the Interface), and then select Data to View Data that needs to be inserted in the target table.I get some error like this:-...+This above line is the result of my project my problem is
when I right-click Target Datastore(in Mapping Tab of the Interface), and then select Data to View Data that already inserted in the target table.Is not shown by the view data operation.
I meant to say I am facing this error
At the10(1010 written) step of
Creating a New ODI Interface to Perform XML File to RDBMS Table Transformation
wehre it says
Open the Interface tab. Select Mapping tab, right-click Target Datastore - CLIENT, and then select Data. View Data inserted in the target table. Close Data Editor. Close the tabs...
In my case when I use my sqldeveloper I can see data successfully inserted in my target table and also in error table (data that can't satisfy the constraint) .But I was unable to check this by following the above mentioned 10 th step and got this error.
Thanks -
How to edit the existing data in the XML file from java programming.
Hi all
i am able to create XML file with the sample data as below from java programming.
i need sample code on how to edit the existing data in the XML file?
for example
<?xml version="1.0"?>
<mydata>
<data1>
<key1>467</key1>
<name1>Paul</name1>
<id1>123</id1>
</data1>
<data2>
<key2>467</key2>
<name2>Paul</name2>
<id2>123</id2>
</data2>
</mydata>
i am able to insert the data in the XML.
now i need sample code on how to modify the data in the above XML file from the java programming for only key2,name2,id2 tags only. the remaining tags data in the XML file i want to keep same data except for key2,name2,id2 which are i want to modify from java code
Regards
Sunil
[points will be always rewardable]hi
u need a parser or validate the xml file for to read the xml file from java coding u need for this
xml4j.jar u can download this file from here
http://www.alphaworks.ibm.com/tech/xml4j
or we can use the SAX(simple API for XML)
some sample applications for this
http://www.java-tips.org/java-se-tips/javax.xml.parsers/how-to-read-xml-file-in-java.html
http://www.developertutorials.com/tutorials/java/read-xml-file-in-java-050611/page1.html
http://www.xml-training-guide.com/e-xml44.html
let me know u need any other info
bvr -
Transfer 100M XML file with XSL
Hi,
I am trying to transfer 100M XML file with XSL. Input.xml is the XML file, format.xsl is the XSL file. I type in the command line as:
java org.apache.xalan.xslt.Process -IN input.xml -XSL format.xsl -OUT output.xml
It got "out of memeory" error. My questions are:
1. Is it possible to transfer such large XML file with XSLT?
2. The XSL processor used SAX or DOM to parse XML file?
3. Any suggestions?
Thanks.
Jamesmaybe?
java -Xmx200m org.apache.xalan.xslt.Process -IN input.xml -XSL format.xsl -OUT output.xml
http://java.sun.com/j2se/1.3/docs/tooldocs/win32/java-classic.html -
Hi,
I have a problem to transfer a XML file content to a MS SQL database by a given/fixed stored procedure. I'm able to transfer the content of the file by using following method ...
hstmt = DBPrepareSQL (hdbc, EXEC usp_InsertReport '<Report> ..... </Report>');
resCode = DBExecutePreparedSQL (hstmt);
resCode = DBClosePreparedSQL (hstmt);
... but in this case I'm not able to fetch the return value of the stored procedure!
I have tried to follow the example of the stored procedure in the help documentation (DBPrepareSQL) but I miss a datatype for xml?!?
Any idea how to solve my problem?
KR Cake
Solved!
Go to Solution.After some additional trials I found a solution by calling the stored procedure in this way
DBSetAttributeDefault (hdbc, ATTR_DB_COMMAND_TYPE, DB_COMMAND_STORED_PROC);
DBPrepareSQL (hdbc, "usp_InsertReport");
DBCreateParamInt (hstmt, "", DB_PARAM_RETURN_VALUE, -1);
DBCreateParamChar (hstmt, "XMLCONTENT", DB_PARAM_INPUT, sz_Buffer, (int) strlen(sz_Buffer) + 1 );
DBExecutePreparedSQL (hstmt);
DBClosePreparedSQL (hstmt);
DBGetParamInt (hstmt, 1, &s32_TestId);
where sz_Buffer is my xml file content and s32_TestID the return value of the stored procdure (usp_InsertReport(@XMLCONTENT XML))
Now I face the problem, that DBCreateParamChar limits the buffer size to 8000 Bytes.
Any idea to by-pass this shortage?? -
Pooling data from an XML file to another XML file using File Adapter
Hi,
I am trying to Pool data from an XML file to another XML file using File Adapter. I have added "Target Namespace" in both the XML and XSD.The problem is "At the destination given in the FileAdapter" only a blank XML file is created and it doesnot have any data.
Kindly suggest me some methods
Thanks in Advance.Ok here is a solution with external tables.
SQL> CREATE DIRECTORY my_xml_dir AS 'E:\oracle\Log_files\UTL_AKIVATST'
2 /
Directory created.
SQL> DROP TABLE my_xml_et
2 /
Table dropped.
SQL> CREATE TABLE my_xml_et
2 ( EMPNO NUMBER,
3 EMPNAME VARCHAR2(10),
4 JOB VARCHAR2(10),
5 HIREDATE DATE,
6 SAL NUMBER
7 )
8 ORGANIZATION EXTERNAL
9 (
10 TYPE ORACLE_LOADER
11 DEFAULT DIRECTORY my_xml_dir
12 ACCESS PARAMETERS
13 (
14 records delimited by "</EMP>"
15 badfile my_xml_dir:'empxt%a_%p.bad'
16 logfile my_xml_dir:'empxt%a_%p.log'
17 FIELDS
18 (
19 filler char(2000) terminated by "<EMP>",
20 EMPNO char(2000) enclosed by "<EMPNO>" and "</EMPNO>",
21 EMPNAME char(2000) enclosed by "<ENAME>" and "</ENAME>",
22 JOB char(2000) enclosed by "<JOB>" and "</JOB>",
23 HIREDATE char(2000) enclosed by "<HIREDATE>" and "</HIREDATE>",
24 SAL char(2000) enclosed by "<SAL>" and "</SAL>"
25 )
26 )
27 LOCATION ('emp.xml')
28 )
29 PARALLEL
30 REJECT LIMIT UNLIMITED
31 /
Table created.
SQL> SELECT * FROM my_xml_et
2 /
EMPNO EMPNAME JOB HIREDATE SAL
7369 SMITH CLERK 17-DEC-80 800
7499 ALLEN SALESMAN 20-FEB-81 1600
This is the XML file i used emp.xml
<EMPLOYEES>
<EMP>
<EMPNO>7369</EMPNO>
<ENAME>SMITH</ENAME>
<JOB>CLERK</JOB>
<HIREDATE>17-DEC-80</HIREDATE>
<SAL>800</SAL>
</EMP>
<EMP>
<EMPNO>7499</EMPNO>
<ENAME>ALLEN</ENAME>
<JOB>SALESMAN</JOB>
<HIREDATE>20-FEB-81</HIREDATE>
<SAL>1600</SAL>
<COMM>300</COMM>
</EMP>
</EMPLOYEES>
Use this external table to insert into your table.
Thanks,
Karthick. -
How to fetch the relational data from the xml file registered in xdb
Hi,
I have to register the xml file into the xdb repository and i have to fetch the data of the xml file as relational structure through the select statement .
i used the below query to register the xml file in xdb.
DECLARE
v_return BOOLEAN;
BEGIN
v_return := DBMS_XDB.CREATERESOURCE(
abspath => '/public/demo/xml/db_objects.xml',
data => BFILENAME('XML_DIR', 'db_objects.xml')
COMMIT;
END;
Now i have to fetch the values in the xml file as relational data .
whether it is possible ?
can any one help me.
Regards,
suresh.When you transform your XMLdata to a xmltype you can do something like this for example:
select
extractvalue(value(p),'/XMLRecord/Session_Id') session_id,
extractvalue(value(p),'/XMLRecord/StatementId') StatementId,
extractvalue(value(p),'/XMLRecord/EntryId') EntryId
from
table(xmlsequence(extract(xmltype('
<XMLdemo>
<FormatModifiers><FormatModifier>UTFEncoding</FormatModifier></FormatModifiers>
<XMLRecord>
<Session_Id>117715</Session_Id>
<StatementId>6</StatementId>
<EntryId>1</EntryId>
</XMLRecord>
</XMLdemo>
'),'/XMLdemo/*'))) p
where extractvalue(value(p),'/XMLRecord/Session_Id') is not null;
For this sample I've put a readable XML in plain text and convert it to xmltype so you can run it on your own database. -
IDOC (Source) to JDA data base(thru XML files)
hi,
Source structure is a IDOC. I have to pass IDOC data to Function module(Z function). it will return some hierarchy levels. (For example if it's generates 12 hierarchy levels), i have to pass each hierarchy level data to one XML file.
According to my understand source is IDOC and target is some intermediate data type. In between i am calling user defined function. it will generates the hierarchy levels and i have to pass the hierarchy level data to intermediate data type.
this logic is correct or not?
if this is correct how to pass data from user defined function to intermediate data type.Windows app should work. Web app will not. See
[1218745 - Chart backgrounds are not transparent when report is viewed over the web |http://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/oss_notes_boj/sdn_oss_boj_erq/sap(bD1lbiZjPTAwMQ==)/bc/bsp/spn/scn_bosap/notes.do]
Also below is copy of a reply to another forum thread I did on what I think is a similar issue:
The limitation is specifically with viewing reports on the web. The trouble is that when you view a report in a web browser, we convert each graph on the report into a picture file, and display that picture in the HTML page. In this case, if you have one picture file on top of another, the top one will cover the bottom one. The only way to make it look transparent as it does in Crystal is to combine both charts into one picture. Unfortunately we don't have the ability to put two pictures into one file, that's simply one of our limitations. At this point the only work around is to export the report to PDF and view that instead.
Ludek
Maybe you are looking for
-
Can a subreport select records based on values in the main report record?
Post Author: calvin CA Forum: General Perhaps my understanding of a subreport is incorrect as this is the first time I've used one, but it seems to me that the subreport should be able to use the values from the main report record in its (the subrepo
-
Tomcat server is not running automatically
Hi BO experts, I have installed SAP Business Objects XI 3.1 in my system and noticed that Tomcat server is not running in Central Configuration Manager where the status is "Stopped". If I start manually also it's not starting (In properties, the star
-
Problems with Apple Mail attachments not showing in Outlook
I am experiencing problems when using the new Apple Mail 5.0 (with OSX Lion) to send PDF attachments. The recipient using MS Outlook on a PC will see the email, see the attachment icon (paper clip) but they cannot click to open the attachment. It's l
-
This basically means that I have to watch for updates and update Firefox by re-downloading it from firefox.com each time. It's like the "Apply Update" button mysteriously turned into a "restart Firefox" button.
-
NetBeans and Sun ONE Web Server 6.1
I have a JSP / Beans / Servlet Web application working in Tomcat on my local machine, a Macintosh laptop. I used NetBeans to create it all, and everything works fine there. I have tried to upload everything to another computer (Solaris based) which i