Problem solve Get help with specific problems with your technologies, process and projects.

Sending data to remote IP address in XML without using BC

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"?>
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

* 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

Have a question for an expert?

Please add a title for your question

Get answers from a TechTarget expert on whatever's puzzling you.

You will be able to add details on the next page.

Start the conversation

Send me notifications when other members comment.

Please create a username to comment.