Posted: Wed Sep 08, 2004 8:19 am Post subject: SAP IDoc to XML message
Newbie
Joined: 08 Sep 2004 Posts: 2
Hello,
I am new to MQSeries.net and hopeful that someone can provide some general information on using WebSphere/MQ - SAP integration ...
Has anyone used Websphere/MQI to pickup SAP IDocs and generate xml messages and vice versa (pickup xml messages and post SAP IDocs to SAP)?
I am looking for a mechanism to pickup a "native" SAP IDoc from SAP's ALE layer and output an xml-formatted IDoc. Likewise, a mechanism which will accept an xml-formatted IDoc, convert it to a "native" SAP IDoc and post the message to the ALE layer.
What tools/modules are required in order to do this? (i.e. Websphere/MQ SAP adapter? etc.)
Is this a configuration excercise or development excercise?
Posted: Wed Sep 08, 2004 1:04 pm Post subject: YES
Acolyte
Joined: 02 Aug 2003 Posts: 59
Why do you want to convert to XML? Are you trying to do any IDOC transformation?? If just you want to send IDOCS from one system to the other you can use MQSeries and MQSeries Link for R/3. And if you want to do any IDOC transformation you can use MQ and MQSI.
Easier way, but requires some java knowledge and programation skills
Use SAP JCO. with the add ons for Idocs: sapidoc.jar and sapjcoidoc.jar
you can output directly in XML (see JCoDocument methods)
On the inbound I get Idocs that are XML and formatted as Idocs.
I use a xerces parser and the DOM model. I parse the Doc to the Idoc and send it. I have a backout queue on which I put messages with error and the error with the correl Id of the message that produced it
Hema30 - Thanks for your reply. I need the IDocs in xml-format because I run them through an xslt (xml transform) which formats the data for an external application. All of our data transformation is built with xslt ... thus the need to have the IDocs in an xml format.
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum