XML File to SAP R/3 using SAP XI
Hello Everyone,
I'm hoping someone has done this scenario and can provide a step by step example for me. The scenario I have is as follows:
-- An XML file is placed manually on a UNIX SAP Server
-- SAP XI should, once the file is placed on the server, go to a specific directory, pick the file up, and then send it to an RFC of which I've already mapped.
-- Once the file is placed in the SAP R3 system, then the processing is over and no further processing should take place.
-- This is an inbound message to SAP XI and also to SAP R/3
I was thinking of using a File adapter as a "Sender", and poll every 60 seconds on a directory mentioned above. Once the file is there, then I would call the RFC and then the mapping of the XML would put the data into R/3.
Any help anyone can provide would be most appreciated. Thanks in advance for your help!
Regards,
John
John,
You are looking for File -XI-RFC scenario right, please follow the below weblog
/people/arpit.seth/blog/2005/06/27/rfc-scenario-using-bpm--starter-kit
If you need more details, reply!!!!
Best regards,
raj.
Similar Messages
-
How to create interactive map in SAP Visual Business using SAP UI5 SDK
Hi,
Please tell me,
How to create interactive map in SAP Visual Business using SAP UI5 SDK.
Is it possible to create interactive map using VB Control in SAP UI5 SDK..?
if possible please any one let me know.Hi folks, one question:
We have our development close moved and now it is earlier than originally planned.
That means that we maybe can't finish our convenient API and you have to wait till we will release it - early 2015 is planned.
But there is another option:
Currently we have a API based on json. The developer has to create json and to transfer it to the Visual Business control.
This interface is more used as a low level API and we are developing on top the more convenient one. So all the features are the same.
It will stay stable & compatible in the future and you can build on it.
Do you want to use this interface?
Then I will publish the documentation.
Let me know.
Thanks -
SAP UI5 Chart using SAP MII Query template
Hi All, I am new to SAP UI5. I am trying to create SAP UI5 chart using SAP MII Query template. could anyone please tell me how to pass the Query Template as input to the SAPUI5 Chart? If possible please share sample code for doing so Regards Praveen Reddy
Hi,
If you want to embed UI5 objects in an IRPT here is a very simple code snippet:
<HTML>
<HEAD>
<TITLE>TestUI5</TITLE>
<SCRIPT type="text/javascript" src="/XMII/JavaScript/bootstrap.js" data-libs="i5Chart,i5Grid,i5SPCChart"></SCRIPT>
<SCRIPT>
var Grid = new com.sap.xmii.grid.init.i5Grid(SpecifyDisplayTemplateHere, SpecifyQueryTemplateHere);
Grid.setGridWidth("640px");
Grid.setGridHeight("400px");
Grid.draw("div1");
</SCRIPT>
</HEAD>
<BOD
<DIV id="div1"/>
</BODY>
</HTML> -
Reading of File from legacy system into SAP Application Server using SAP XI
Hi All,
I have a file in <b>Legacy System with Exchange rates information data</b> i have to read that file using SAP XI process and put that file in SAP Application Server in SAP Specific Format and latter i have to use program RFTBFF00 to upload the file in the Application Server into SAP Tables.
Can anybody tell me how can i do this with some example of same scenario.
It would be better if anybody provides code example as i am new to SAP XI.
Thanks in advance.
Warm Regards,
Rayeez.Hi Shaik,
You need the access to the file system of ur legacy application and then you can follow this link for the required ifnormation
File & Header
Regards
Vishnu -
IDOC data transfer SAP to Java using SAP JCo
Dear Experts,
The challenging requirement we are having is, we need to create the interface for data transfer between SAP system and the Java system. The data will be transferred from SAP to java and similarly once some processing done in Java again the details needs to be transferred from Java to SAP.
For this data transferred we are planning to use IDOC process and for interface "SAP Java connector" we are planning to use. In this case we are having some doubts.
1. The data from SAP is going to be transfered from one Custom transaction (Z tcode). Once "Outbound IDOC" will get triggered and will carry the details. Now the doubt is, whether the data / details will get transfered to JAVA system automatically or we need to perform any other steps from SAP ABAP coding...(like converting in to flat file, XML file and etc) ??
2. We are planning to install "SAP Jco" in Java server. Is this correct...??
3. Other than SAP Jco any other softwares needs to be installed or not..??
4. Since we are going to trigger the "outbound IDOC" from custom transaction, we are planning to develope one program in SE37. Other than this any other program we need to develop or not..??
If anybody has detailed steps or explanation please share it with us.
Warm Regards,
VELHi All,
For the above mentioned issue, we implemented JCo software in JAVA system and created the JAVA program including SAP logon credential details like Client, User name, password and Language details.
When this JAVA program was compiled successfully then, that non SAP system will appear in SAP gateway Tcode.
Once non SAP system started appearing in SAP gateway that means, both SAP & Non SAP are connected automatically.
Regards,
Velmurugan P -
Upload xml file to internal table only using simple transformation
Hi Friends
How to write transformation code for the following xml data.. Please let me know immedately if any one know..
I have written as following but i encountered an eror staating -
Iam facing the following error
An exception occurred that is explained in detail below.
The exception, which is assigned to class 'CX_ST_REF_ACCESS', was not caught in
procedure "UPLOAD_XML" "(FORM)", nor was it propagated by a RAISING clause.
Since the caller of the procedure could not have anticipated that the
exception would occur, the current program is terminated.
The reason for the exception is:
The goal was to access variable "ROOT1". However, this access was not
possible.
Go through my xml file , the code and code in simple transformation.. Please reply(transformation code) me as soon as possible
- <Negara>
- <item>
- <COUNTRY>
<MANDT>600</MANDT>
<ZCODE>500</ZCODE>
<ZDESC>Pening Lalat</ZDESC>
<ZSAPCD>T1</ZSAPCD>
</COUNTRY>
</item>
- <item>
- <COUNTRY>
<MANDT>600</MANDT>
<ZCODE>600</ZCODE>
<ZDESC>Pening Lalat2</ZDESC>
<ZSAPCD>T2</ZSAPCD>
</COUNTRY>
</item>
</Negara>
DATA : BEGIN OF XDATA OCCURS 0,
STR(255) TYPE C,
END OF XDATA.
DATA: XMLUPL TYPE string .
DATA : BEGIN OF ITAB OCCURS 0,
MANDT(3) TYPE C,
ZCODE(3) TYPE C,
ZDESC(15) TYPE C,
ZSAPCD(2) TYPE C,
END OF ITAB.
CALL FUNCTION 'GUI_UPLOAD'
EXPORTING
FILENAME = 'C:\country.xml'
FILETYPE = 'BIN'
TABLES
DATA_TAB = XDATA.
LOOP AT XDATA.
CONCATENATE XMLUPL XDATA-STR INTO XMLUPL.
ENDLOOP.
CALL TRANSFORMATION ('Y_XMLCTRY')
SOURCE XML XMLUPL
result xml = ITAB[].
BREAK-POINT.
<?sap.transform simple?>
<tt:transform template="temp1"
xmlns:tt="http://www.sap.com/transformation-templates">
<tt:root name="ROOT1"/>
<tt:root name="ROOT2"/>
<tt:template name="temp1">
<Negara>
<tt:loop ref=".ROOT1" name="i">
<item>
<tt:loop ref=".ROOT2" name="c">
<COUNTRY>
<MANDT>
<tt:value ref="$c.nummer" />
</MANDT>
<ZCODE>
<tt:value ref="$c.nummer" />
</ZCODE>
<ZDESC>
<tt:value ref="$c.name" />
</ZDESC>
<ZSAPCD>
<tt:value ref="$c.name" />
</ZSAPCD>
</COUNTRY>
</tt:loop>
</item>
</tt:loop>
</Negara>
</tt:template>
</tt:transform>
Thanking You
DeviHi Friends
How to write transformation code for the following xml data.. Please let me know immedately if any one know..
I have written as following but i encountered an eror staating -
Iam facing the following error
An exception occurred that is explained in detail below.
The exception, which is assigned to class 'CX_ST_REF_ACCESS', was not caught in
procedure "UPLOAD_XML" "(FORM)", nor was it propagated by a RAISING clause.
Since the caller of the procedure could not have anticipated that the
exception would occur, the current program is terminated.
The reason for the exception is:
The goal was to access variable "ROOT1". However, this access was not
possible.
Go through my xml file , the code and code in simple transformation.. Please reply(transformation code) me as soon as possible
- <Negara>
- <item>
- <COUNTRY>
<MANDT>600</MANDT>
<ZCODE>500</ZCODE>
<ZDESC>Pening Lalat</ZDESC>
<ZSAPCD>T1</ZSAPCD>
</COUNTRY>
</item>
- <item>
- <COUNTRY>
<MANDT>600</MANDT>
<ZCODE>600</ZCODE>
<ZDESC>Pening Lalat2</ZDESC>
<ZSAPCD>T2</ZSAPCD>
</COUNTRY>
</item>
</Negara>
DATA : BEGIN OF XDATA OCCURS 0,
STR(255) TYPE C,
END OF XDATA.
DATA: XMLUPL TYPE string .
DATA : BEGIN OF ITAB OCCURS 0,
MANDT(3) TYPE C,
ZCODE(3) TYPE C,
ZDESC(15) TYPE C,
ZSAPCD(2) TYPE C,
END OF ITAB.
CALL FUNCTION 'GUI_UPLOAD'
EXPORTING
FILENAME = 'C:\country.xml'
FILETYPE = 'BIN'
TABLES
DATA_TAB = XDATA.
LOOP AT XDATA.
CONCATENATE XMLUPL XDATA-STR INTO XMLUPL.
ENDLOOP.
CALL TRANSFORMATION ('Y_XMLCTRY')
SOURCE XML XMLUPL
result xml = ITAB[].
BREAK-POINT.
<?sap.transform simple?>
<tt:transform template="temp1"
xmlns:tt="http://www.sap.com/transformation-templates">
<tt:root name="ROOT1"/>
<tt:root name="ROOT2"/>
<tt:template name="temp1">
<Negara>
<tt:loop ref=".ROOT1" name="i">
<item>
<tt:loop ref=".ROOT2" name="c">
<COUNTRY>
<MANDT>
<tt:value ref="$c.nummer" />
</MANDT>
<ZCODE>
<tt:value ref="$c.nummer" />
</ZCODE>
<ZDESC>
<tt:value ref="$c.name" />
</ZDESC>
<ZSAPCD>
<tt:value ref="$c.name" />
</ZSAPCD>
</COUNTRY>
</tt:loop>
</item>
</tt:loop>
</Negara>
</tt:template>
</tt:transform>
Thanking You
Devi -
How to deliver an order created in SAP R/3 using sap gui.
Hi all,
I have created an order in SAP R/3 with two items.Now i want to deliver the order using sap gui.Pls tell me the bapi or steps of doing it.
Regards,
Kiran.Hi,
Kindly check the link for creating Outbound delivery for
customer sales order:
http://help.sap.com/saphelp_47x200/helpdata/en/dd/56078c545a11d1a7020000e829fd11/frameset.htm
best regards,
Thangesh -
Code to transfer xml file to abap internal table using transformation
Hi friends
Given the following xml file .the requirementis to display and transfer the xml file to internal table usin transformation and gui_upload.If any onehaving simple code on this please send .
Can any one sugest the steps to be followed to write source code using simple transformation.
<?xml version="1.0" encoding="utf-8" ?>
- <Negara>
- <item>
- <COUNTRY>
<MANDT>600</MANDT>
<ZCODE>500</ZCODE>
<ZDESC>Pening Lalat</ZDESC>
<ZSAPCD>T1</ZSAPCD>
</COUNTRY>
</item>
- <item>
- <COUNTRY>
<MANDT>600</MANDT>
<ZCODE>600</ZCODE>
<ZDESC>Pening Lalat2</ZDESC>
<ZSAPCD>T2</ZSAPCD>
</COUNTRY>
</item>
</Negara>
Thaking Youhi..
1. itab --- > xml
xml ---> itab.
2. This program will do both.
(just copy paste in new program)
3.
REPORT abc.
DATA
DATA : t001 LIKE TABLE OF t001 WITH HEADER LINE.
DATA : BEGIN OF itab OCCURS 0,
a(100) TYPE c,
END OF itab.
DATA: xml_out TYPE string .
DATA : BEGIN OF upl OCCURS 0,
f(255) TYPE c,
END OF upl.
DATA: xmlupl TYPE string .
FIRST PHASE
FIRST PHASE
FIRST PHASE
Fetch Data
SELECT * FROM t001 INTO TABLE t001.
XML
CALL TRANSFORMATION ('ID')
SOURCE tab = t001[]
RESULT XML xml_out.
Convert to TABLE
CALL FUNCTION 'HR_EFI_CONVERT_STRING_TO_TABLE'
EXPORTING
i_string = xml_out
i_tabline_length = 100
TABLES
et_table = itab.
Download
CALL FUNCTION 'GUI_DOWNLOAD'
EXPORTING
filetype = 'BIN'
filename = 'd:\xx.xml'
TABLES
data_tab = itab.
SECOND PHASE
SECOND PHASE
SECOND PHASE
REFRESH t001.
CLEAR t001.
CALL FUNCTION 'GUI_UPLOAD'
EXPORTING
filename = 'D:\XX.XML'
filetype = 'BIN'
TABLES
data_tab = upl.
LOOP AT upl.
CONCATENATE xmlupl upl-f INTO xmlupl.
ENDLOOP.
XML
CALL TRANSFORMATION ('ID')
SOURCE XML xmlupl
RESULT tab = t001[].
<b>Reward points if useful</b>
Regards
Ashu -
How to deliver items in SAP R/3 using sap gui
Hi all,
I have created an order.I want to deliver the items contained in it. pls tell me how to do it using sap gui.
Regards,
Kiran.Hi Anil
You can create a normal ABAP report to delete or modify records from database table.
You can use statements such as delete or modify for this purpose.
First select the records from table bring them into internal table and use that table to delete the records from database.
Note: If you are trying to delete records from Z tables then this approch can be adopted but if you are dealing with Standard tables it`s not a option to directly delte the reocrds from database table .
For that purpose you can use BDC or any othe available FM/BAPI.
Note :When you are deleting records from the database table please use locking function module to lock the database entries.
Regards
Neha -
Connect to SAP R/3 using SAP GUI for HTML through saprouter
Hello,
I have my system running on my intranet, but I need to connect some support enginners through an Internet connection. Nowadays some users can connect to QAS and PRO systems using SAP GUI for windows and java with the saprouter string, but the support enginners are using SAP GUI for HTML, do I need a special string or configuration so html users can connect to my system from the Internet?
Thanks in advance.thanks, I can get the data from SAP R/3 to crystal report.
but still dont know how to do the second question mentioned in previous message:
once the table I want to get the data from is a cluster, and have found the mapping data dictionary of this data cluster, which displayed in crystal report connection as well, however, the data is not what I wanted. -
Import an xml file into adobe designer field using javascript
Adobe javascript experts ,please help me.
I need to load the data from an xml file into a text field in designer
using javascript and then go through each node in the loaded xml and compare that with form fields in designer and if matching fill the value(node's value from the loaded xml) in form fields.
Please give ur suggestions.
Thanks in advance!!!
regards,
sowmyaThanks for the fast response.
I saw your example and specifically the javascript code
xfa.host.importData("filename.xml").
Just by giving this alone how do I access the values in the xml???
Just by giving the above javascript, my value is not getting populated when I see in pdf preview.
But apart from that you have done dataconnection also and binding in all the columns.What is this for??
Could you kindly explain what u r doing step by step??
Thanks again.
regards,
Sowmya -
Unabel to Import XML file in Internet Explorer 9 Using PHP
I have created a project Using PHP in which i need to import a xml file for my further use, I am able to import XML File in IE 10 & IE11 but unable to import in IE9.
Hi Sunil,
I recommend that you post in some PHP related forums, since this forum is only for VSTO related questions.
Thanks for your understanding.
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. -
How can I skip the XML file's space & "\n" when using a DOM?
This is my xml file below:
<?xml version="1.0" encoding="UTF-8"?>
<inventory>
<item>
<sku>3965</sku>
<describtion>widget</describtion>
<quality>108</quality>
</item>
<item>
<sku>5478</sku>
<describtion>gadget</describtion>
<quality>101</quality>
</item>
<item>
<sku>4575</sku>
<describtion>sprocket</describtion>
<quality>106</quality>
</item>
</inventory>between the <inventory> and the<item>,there is one "\n" and tow "space" ,
then between the <item> and the <sku>,there is ...
on and on...
and this is my java code:
import javax.xml.parsers.*;
import org.w3c.dom.*;
public class DomDemo {
DocumentBuilderFactory dbf = null;
DocumentBuilder df = null;
Document doc = null;
public DomDemo() {
try {
dbf = DocumentBuilderFactory.newInstance();
dbf.setIgnoringElementContentWhitespace(true);
catch(FactoryConfigurationError fce) {
fce.printStackTrace();
try {
df = dbf.newDocumentBuilder();
catch(ParserConfigurationException pce) {
pce.printStackTrace();
public void printXML(Node node) {
short nodeTypeValue;
String nodeType = null;
Node currentNode = null;
nodeTypeValue = node.getNodeType();
nodeType = getNodeType(nodeTypeValue);
System.out.println("NodeType:" + nodeType);
System.out.println("NodeName:" + node.getNodeName());
System.out.println("NodeValue:" + node.getNodeValue());
for(currentNode = node.getFirstChild(); currentNode != null; currentNode = currentNode.getNextSibling()) {
printXML(currentNode);
public String getNodeType(short nodeTypeValue) {
String nodeType = null;
switch(nodeTypeValue) {
case Node.DOCUMENT_NODE:
nodeType = "DocumentNode";
break;
case Node.ELEMENT_NODE:
nodeType = "ElementNode";
break;
case Node.ATTRIBUTE_NODE:
nodeType = "AttributeNode";
break;
case Node.TEXT_NODE:
nodeType = "TextNode";
break;
default:
nodeType = "OtherNode";
return nodeType;
public static void main(String[] args) {
if(args.length == 0) {
System.out.println("Usage:java DomDemo filename");
System.exit(1);
String file = args[0];
DomDemo dd = new DomDemo();
Document doc = null;
try {
doc = dd.df.parse(file);
catch(Exception e) {
e.printStackTrace();
dd.printXML(doc);
}when run the class, the result is below:
NodeType:DocumentNode
NodeName:#document
NodeValue:null
NodeType:ElementNode
NodeName:inventory
NodeValue:null
NodeType:TextNode
NodeName:#text
NodeValue:
NodeType:ElementNode
NodeName:item
NodeValue:null
NodeType:TextNode
NodeName:#text
NodeValue:
It contains a TextNode and its value is " " and a "\n".
I used setIgnoringElementContentWhitespace feature, but it seems didn't work.
How can i solve it?I used setIgnoringElementContentWhitespace feature, but it seems didn't work.
Add a DTD to the XML document for setIgnoringElementContentWhitespace feature. -
Appending content to an XML file in the Root tag using FileAdapter
Hi Friends..!!
I have got a requirement like this. There will be an XML file with List of Employees like following...
<Employees>
<Emp>
<SNo>111</Sno>
<Fname>Mahesh<Fname>
<Lname>Babu</Lname>
</Emp>
<Emp>
<SNo>222</Sno>
<Fname>----<Fname>
<Lname>-----</Lname>
</Emp>
<Emp>
<SNo>----</Sno>
<Fname>----<Fname>
<Lname>----</Lname>
</Emp>
</Employees>
.. So What i have to do is Appending the given Employees info to the existed XML file using File Adapter. But When i m trying to figure it out.. the given details are appended at the end of the previous content.. but i want to see all the Emp tags(the newly appended emp list also) in the existed <Employees> tag only..
(i m also facing namespace issues here)
Can u plz provide solution for this problem..?
Thanks in advance.
Regards-
Nlion7Hi Nilon7,
the given details are appended at the end of the previous contentThat will be the behaviour if you are just using file write with append...
You will need to expand your solution into three steps, firstly a file adapter sync read to retrieve the current contents of the file, then a xslt transformation to "merge" the current data with the new data and finally a file adapter write with the merged content...
Cheers,
Vlad -
Testing SAP HCM application using SAP TAO
I have the following questions regarding SAP HCM testing.
1) Do we use any third-party i.e, HP's Quality Center, QTP tools to test SAP HCM applicationa?
2) Do any one tested SAP HCM using SAP TAO tool?
I am new to SAP HCM testing, appreciate if someone can send some documents related to testing using SAP TAO and other third-party tools.Basuvarma:
I understand that we use Quality Center to maintain the test cases. I want to know if you can provid me any documents related to SAP HCM testing using QC or Rations tools....
Appreciate your response.
Maybe you are looking for
-
Change length of individual slide. Keynote 6.2 Mavericks
In general I want 5 second slides with a 1 sec. dissolve between. Slide show is autoplay. But some slides have video clips that last longer than 5 sec. and they are getting cut off. I also want to set a few slides to less than 5 sec. The only slide l
-
My Cannon LCD LV-7210 projector does not recognize my Macbook Air nor does my Macbook Air recognize it is attached to an LCD projector. Yes, I do have the proper adapter. What LCD projectors work best with Macbook Air? Does this LCD projector have
-
MY question is about creating forms for iweb sites. How do you do it? I think I read somewere that you can't do this with iweb, so I downloaded a free trial of rapidweaver, which will give me 3 pages for the free trial, but it says you need php. Whic
-
I'm new to mac. Is there a need for Clean my Mac?
I'm new to mac. Is there a need to have Clean my Mac on my computer?
-
Restore (Windows) Elements 11 catalog on Mac
Hi everyone-- I am a Windows user moving to a Mac. I did a backup of my (Windows) Photoshop Elements 11 catalog on an external drive in preparation for restoring in on my MacBook pro. I've read a number of different posts on here regarding the res