cancel
Showing results for 
Search instead for 
Did you mean: 

Webpage online form to XI

Former Member
0 Kudos

Hi:

1) Suppose I have a sales order form filled online using a web page ,how can I have the web page take out an XML ,that is acceptable to XI .

2) How can I test that it is being accepted by XI.

Screenshots will be appreciated.

Thanks.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi

You can also post your sales order to XI using HTTP adapter.

Step1: Create a form attribute in your Sales order webpage

Step2: On form submit generate a XMLDom object based on your sales order values. Make sure the XMLDom ojbect complies to the Message type you have specified in your Integration repository.

Step3: Create a Javascript programme to submit the payload to XI HTTP adapter.

Sample JS to submit values to HTTP adapter

var xhttp = new ActiveXObject("msxml2.xmlhttp");

xhttp.open ("POST", reqString, false);

document.MessageParameters.URL.value=reqString;

payload = document.MessageParameters.xmlData.value;

xhttp.send (payload);

OR

var xmlDoc = new ActiveXObject("microsoft.xmldom");

xmlDoc.async=false;

xmlDoc.load (document.MessageParameters.xmlFile.value);

xhttp.send (xmlDoc);

This is to catch the HTTP response in

result = result + "\n" + xhttp.responseText;

xhttp.close;

Hope this helps

Thanks

Satish

Former Member
0 Kudos

Hi:

Is there some simpler and concrete approach to getting the Sales Order and posting to XI?

Because we are talking of many different tihngs like Java Script,Creating form attribute etc.

Screeenshots will be appreciated.

Thnx

Former Member
0 Kudos

HI,

You want to post into R3 through XI, then how you do want .

Is it IDoc.

Regards

Chilla

Former Member
0 Kudos

I will repeat my question:

1) Suppose I take a Sales order online ,like 1000 sales orders /day.. I want to post this to SAP XI and then from XI to SAP R/3 as an IDOC.

<b>question is to get an online form on a WEBPAGE on a real time basis to get into SAP XI...</b> After you get into SAP XI ,then it can be mapped to the respective IDOC.

Thanks.

Former Member
0 Kudos

HI,

Yes this can be possible through IDoc packaging , all sales orders can be packaged into IDoc package . see the below links

/people/michal.krawczyk2/blog/2005/12/04/xi-idoc-bundling--the-trick-with-the-occurance-change - IDOC bundling

/people/stefan.grube/blog/2006/09/18/collecting-idocs-without-using-bpm - collecting IDocs without BPM

/people/pooja.pandey/blog/2005/07/27/idocs-multiple-types-collection-in-bpm - Collection of IDoc to Single File

3 idocs to one file - /people/pooja.pandey/blog/2005/07/27/idocs-multiple-types-collection-in-bpm

Creating Purchase Order Idoc through XI - /people/ravikumar.allampallam/blog/2005/03/03/creating-purchase-order-idoc-through-xi

take a look at the note : 814393.

Also see the below links

/people/michal.krawczyk2/blog/2005/12/04/xi-idoc-bundling--the-trick-with-the-occurance-change

/people/sravya.talanki2/blog/2005/12/09/xiidoc-message-packages

/people/jin.shin/blog/2006/02/07/multi-mapping-without-bpm--yes-it146s-possible

Regards

Chilla..

<i>reward points if it is helpful..</i>

Former Member
0 Kudos

SAP XI,

you can do it . HTTP or Webservice -XI -R/3 IDOC .

use Http or webservice adapter to send data from webpage Xi receives it and maps it Orders IDOC and post it to SAP R/e uding IDOC adapter.

/message/266750#266750 [original link is broken]

Also, check these blogs. They use HTTP adapters for their configuration,

/people/siva.maranani/blog/2005/05/21/jdbc-stored-procedures

/people/sriram.vasudevan3/blog/2005/02/14/calling-stored-procs-in-maxdb-using-sap-xi

Former Member
0 Kudos

Hi,

Also see the below links

https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/66dadc6e-0a01-0010-9ea9-bb6...

/people/siva.maranani/blog/2005/05/21/jdbc-stored-procedures

/people/sriram.vasudevan3/blog/2005/02/14/calling-stored-procs-in-maxdb-using-sap-xi

regards

Chilla

Former Member
0 Kudos

I can now be able to get a VALID XML doc for each of my Sales Order..

Now what needs to be done into XI to read this XML and do i need to create DT ,MT ...

Finally i want to post as an IDOC into SAP..

Thnx

Former Member
0 Kudos

Hey

i m doin a HTTP to FIle scenario and even i could not get a valid XML,wat i did waz i went ahead and created DataType and Message Type,and all the design objects,then do all the configuration steps and then create a URL and give that URL to the person who is gonna send the file to XI.

lemme know if u have any more questions

thanx

ahmad

Former Member
0 Kudos

Point is somehow if we get a Valid XML then what next ? I heard we got a valid one.

How do we proceed from a valid xml to finally reaching as an IDOC in SAP R/3

Screenshots will be appreciated .. for this scenario as it is somewhat clear now that HTTP adapter will be used to accomplish it .. but WHAT STEPS ARE NEEDED

Thnx

Former Member
0 Kudos

sapxi,

look into following blogs

/people/community.user/blog/2006/12/12/http-to-rfc--a-starter-kit

Answers (3)

Answers (3)

Former Member
0 Kudos

1) Are you sure ,the company which manages the webpage will be able to give the WSDL ,so that I culd go forward and ask for it?

2) Will the WSDL file be interpreted directly by the SOAP adapter or do we need to format it to be accepted by SOAP adapter?

Thnx

Former Member
0 Kudos

Hey

yes,the company which manages the webservice should provide you with WSDL file and this WSDL has to be imported in IR under the External Definitions,then u can use the WSDL in Message Interface.

thanx

ahmad

Pl:Reward with points if helpful

Former Member
0 Kudos

Like if Sales order are generated on an online basis ,how can we ask them to send a WSDL file every time order is generated?

Is my understanding correct?

Thnx

Former Member
0 Kudos

To develop the interface you need a datatype and message type. So if you have the WSDL you can use it directly. Then only you can complete the interface. Either you have to ask them WSDL or you manually create the Datatype and the message type. Then you can proceed further.

---Satish

Former Member
0 Kudos

Hey

they dont send u WSDL all the time,they send that to you once and u have to import that WSDL as External definition and use it in MI.

ask them for WSDL and start off with ur scenario

all da bst:)

thanx

ahmad

Former Member
0 Kudos

Hi:

If the form is going to be submitted on a real time basis then wsdl file needs to be generated on an online basis or how is it like?

I am sorry to ask you so many questions but I am just trying to get things clear in my mind since i have not dealt with this before.

Former Member
0 Kudos

Hey

have a look at the following blog,it tells everything about SOAP sender adapter

/people/siva.maranani/blog/2005/03/01/testing-xi-exposed-web-services

actually u create a URL which will point to ur XI and once sales order's are generated,they will be take the route of the URL u have provided.

thanx

ahmad

Former Member
0 Kudos

Hi,

Please see the below links to get an idea.

Troubleshooting SOAP Message - XI - /people/varadharajan.krishnasamy/blog/2007/01/09/troubleshooting-soap-message--xi

/people/kumar.prashant4/blog/2006/07/14/using-rfc-as-webservice-in-webdynpro

/people/siva.maranani/blog/2005/08/23/lookup146s-in-xi-made-simpler

/people/siva.maranani/blog/2005/03/01/testing-xi-exposed-web-services

Consuming XI Web Services using Web Dynpro – Part II-/people/riyaz.sayyad/blog/2006/05/08/consuming-xi-web-services-using-web-dynpro-150-part-ii

Consuming XI Web Services using Web Dynpro – Part I -/people/riyaz.sayyad/blog/2006/05/07/consuming-xi-web-services-using-web-dynpro-150-part-i

https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/0d7349b6-0901-0010-ddbe-ec43178a...

/people/sap.user72/blog/2006/01/16/xi-propagation-of-meaningful-error-information-to-soap-client

/people/kevin.liu/blog/2006/04/12/wsdl-11-binding-extension-for-soap-12

https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/d23cbe11-0d01-0010-5287-873...

https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/0d7349b6-0901-0010-ddbe-ec43178a...

Regards

Chilla

Former Member
0 Kudos

Hi;;

How can I get the WSDL file from a webpage..

Screenshots would be appreciated.

Thnx

Former Member
0 Kudos

you can get WSDL file from the company which manages the webpage,request them for a WSDL and then its a simple scenario

have a look at the following for SOAP to IDOC

https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/336365d3-0401-0010-9884-a651295a...

WSDL file can be used as an interface so u dont need any data type or message type

thanx

ahmad

Former Member
0 Kudos

Hey

u can get a WSDL file from the Webpage,and then use SOAP adapter on sender side

thanx

ahmad