on 10-28-2005 11:55 PM
Hi,
I need to submit data from my Web Dynpro UI to XI. Once i fill up all the fields in the UI (Eg: Place Order) and hit the submit button, I want the order details to be sent to XI as an XML file. How do i generate the XML file? Please give me a step by step process, as I am very new to WebDynpro with very minimal programming exp.
Eg: In the Place order page , I have the following fields "Item no", "Item Material", "Quantity". Once, i fill up these fields and hit "Submit" button, these details should be converted to xml so that it can be sent to XI. Please give me the complete process involved (Also, provide code, if any).
Kindly help
Hi Sandeep,
Have you got the answer.If so how .I am having the same problem,i need to create a webdynpro application which shall send the user inputs in the form of XML, please send me the steps u followed to create this.
its very urgent please
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I am trying to build an EP application using WebDynpro to send/receive XML from/to XI. I have built the UI, but I am facing problem in parsing the XML. I have gone through a particular article in SDM named "Parse xml form" and i found it very useful to our scenario. But, the code given in this article is specific to the XML given by that user... So, I could not use it..
This is my scenario. The system is an online ordering and reporting system. I
need to submit data from my UI to XI. Once i fill up all the fields in the UI (Eg: Generate Order Report page) and click on the submit button, I want the order details to be sent to XI as an XML file. The XI will accept the XML over http.
I am able to generate the XML string and display it on a Dialog box(This basically validates that on clicking submit button, the data entered in the UI is getting converted into a XML string). But, from then onwards, i don't know how to parse it or send this XML to XI. I am not asking about the XI implementation part, but all i need to know is - In EP, what should i code to send the XML string from EP to XI.
Eg: In the Generate Order Report page , I have the following fields "CustomerNumber", "ItemNumber", "Material",''OrderStartDate", "OrderEndDate" . Once, i fill up these fields and click "Submit" button, these details should be converted to xml so that it can be sent to XI. The XI will interact with R/3 server and return a result as a XML (We need not bother about this part). The problem is that I can generate the XML string (shown below). I don't know how to take it forward from here. Please give me the complete process involved along with the code to convert this XML string and sent it to XI.
The XML is as follows:
String str= "<?xml version=\"1.0\"\"UTF-8\"?>\n"
"<nsOrderDisplay:MT_Order_Display xmlns:nsOrderDisplay=\"http://www.xxxxxxxxx.com/BDC/POC\">\n"+
"<FilterCondition>\n"+
"<CustomerNumber>"m_cust_num"</CustomerNumber>\n"+
"<ItemNumber>"m_item_num"</ItemNumber>\n"+
"<Material>"m_item_mat"</Material>\n"+
"<OrderStartDate>"m_start_date"</OrderStartDate>\n"+
"<OrderEndDate>"m_end_date"</OrderEndDate>\n"+
"</FilterCondition>\n"+
"</nsOrder:MT_Order_Display>";
I am looking for the JAVA code for the above XML in EP (not XI) and a detailed explanation along with it.
Kindly help.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello Sandeep,
Thank you very very much for the 10 points, I would like you to unassign those since the problem is not solved yet. The reason being you would not be able to get the help cos of the blue star next to your post (it indicates that the thread is closed - problem being solved).
Till then I would try to find the solution for your problem.
Best regards,
Dharmi
Message was edited by: Dharmi Tanna
Hello Sandeep,
I looked up for you and the findings are:
<b>Proxy Runtime</b>
To be able to use proxies you require SAP Exchange Infrastructure Add-On 2.0. This add on
<b>enables you to connect the following applications to SAP Exchange Infrastructure by means
of proxies:</b> Java standalone applications that use synchronous calls to call an XI-connected
system.
<b> Java J2EE applications for SAP Web Application Server 6.20 or higher, including XI 2.0
Add-On.</b>
ABAP applications for SAP Web Application Server 6.20 or higher, including XI 2.0
Add-On. In this case, a client corresponds to a business system.
Page 183 onwards from the following link:
Just curious to know, why not set directly in XI the sender and receiver configurations as was mentioned in the previous document link I send?
Best regards,
Dharmi
p.s. If you would like to use a bit of shortcut on reading the following links would be helpful:
https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/xi/java proxies and sap xi - the inside story, part 1.pdf
More info:
/people/rashmi.ramalingam2/blog/2005/06/25/an-illustration-of-java-server-proxy
Lastly help on Java Proxies in that refer to the Java Proxy as sender in your case:
http://help.sap.com/saphelp_nw04/helpdata/en/64/7e5e3c754e476ee10000000a11405a/content.htm
Message was edited by: Dharmi Tanna
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello Sandeep,
I am new to XI as you are to Web Dynpro but here are the few links that I found which could be useful:
On Page 6 of the following pdf link you can find info regarding picking up the XML file and sending it to XI and then receving message in TXT.
Best regards,
Dharmi
User | Count |
---|---|
90 | |
10 | |
10 | |
10 | |
7 | |
7 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.