I have to send some SAP data in XML-format to an IP address. The data is in an internal table and NOT in an IDoc....
It is not a standard SAP object. Instead, it is some data gathered from the system. Can I do this without using the Business Connector, but with the use of the CRMXIF interface (I'm in CRM 3.0)? Are there any FM which can do this (just send data in XML format)?
Yes, you can. Assuming that your receiver understands an HTTP protocol, i.e. can act as a HTTP server you can use the SAP function HTTP_POST via RFC destination SAPHTTPA to post the data through the IP network as HTTP. (There was some more information on this in an earlier post.)
In order to pack your data as XML you simple generate a convenient (i.e. one that your receiver understands) XML envelope and pack your data in a n XML [CDATA] block. This might look like the following:
A CDATA section starts with "<![CDATA[" and ends with "]]>": <?xml version="1.0" encoding="ISO-8859-1"?> <sap> <body> <![CDATA[ here goes your arbitrary data e.g. The quick brown fox jumps over the lazy duck. An abundance of information about XML and its use can be found on http://www.w3schools.com ]]> </body> </sap>
* More on calling HTTP_POST is found in the mySAP section of my web site http://idocs.de alias http://logosworld.com.
* An abundance of information about XML and its use can be found on http://www.w3schools.com
Dig Deeper on SAP Java and J2EE
Related Q&A from Axel Angeli
An SAP user wants to know how to upload data into SAP R/3 when SAP Scripting is not enabled. Continue Reading
An SAP user is receiving an error message while integrating SAP iDoc PORDCR1 for a purchase order. Continue Reading
An SAP user is having difficulty with PERNR iDoc while transporting data from SAP to an external system. Continue Reading
Have a question for an expert?
Please add a title for your question
Get answers from a TechTarget expert on whatever's puzzling you.