Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
Showing results for 
Search instead for 
Did you mean: 

Program to convert text(Idoc) to XML

Former Member
0 Kudos


Can some1 give me the name of this program.

I know it exists in SAP


Former Member
0 Kudos


function module IDOC_XML_FROM_FILE to convert XML to IDOC

In general source Idoc, target Idoc Xml XSD take .

and map it, so it will be easy to do in XI.

With Business Connector see the below links

More info on XI can be found at

and webAS on

Check this also-

Reward points if useful..



Former Member
0 Kudos

Hi Anup,

- if the content of the txt file is in xml format you don't need such a tool.

- if the content of the text file is an unstructured text stream there can be no such tool.

- if the content of the text file is in any known and defined (but not XML) structured form, try to find a specific existing converter to XML for that.

- if the content of the text file is in an undefined but structured form or if you don't want to pay for the aforementioned transformer, get yourself any scripting language(e.g. PHP), learn regular expressions and parse the text file to XML you'll get maximum capabilities with that approach.

check this link also :

Reward points if helpful.



Former Member
0 Kudos



There is a Single program which converts the IDoc to the XML format

The PDF is good, but is somewhat of an overkill,good for XI.

not for traditional EDI/ALE.

Do u know the name of the Program!?

0 Kudos

You can simply create an Port (via WE21) for XML document creation which works like an RFC-Port but writes a XML file.

Of course you also need define a logical system that uses this port and a distribution model (BD64).

But then you can simply use RSEOUT00 to send the IDOC data to the XML-file.