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.
cancel
Showing results for 
Search instead for 
Did you mean: 

Program to convert text(Idoc) to XML

Former Member
0 Kudos
468

Hi

Can some1 give me the name of this program.

I know it exists in SAP

5 REPLIES 5

Former Member
0 Kudos
98

Hi,

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 https://service.sap.com/xi

and webAS on http://help.sap.com/saphelp_nw04/helpdata/en/f3/e20f3adfd0a706e10000000a114084/frameset.htm

Check this also-

http://help.sap.com/saphelp_nw2004s/helpdata/en/6f/1bd5c2a85b11d6b28500508b5d5211/frameset.htm

https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/b4f3755a-0401-0010-b6b3-9b6...

Reward points if useful..

Regards

Nilesh

Former Member
0 Kudos
98

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 :

http://sourceforge.net/projects/txt2xml/

http://help.sap.com/saphelp_nw04/helpdata/en/a6/0e623c4f69b712e10000000a114084/frameset.htm

Reward points if helpful.

Regards,

Hemant

Former Member
0 Kudos
98

guys

thanks

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
98

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.