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: 

How to convert the data of an IDOC to XML format

Former Member
0 Kudos

Hi,

I have the data of an IDOC in aninternal table.

Now I wish to convert this to the XML format.

Is there any FM which does so?

Or is there some other way to do it?

Regards,

Harshit Rungta

2 REPLIES 2

Former Member
0 Kudos

Hi use CALL TRANSFORMATION statement to convert abap data to xml format.

Former Member
0 Kudos

Hi,

u can also use FM /OSP/SAP_QUERY_DATA_TO_XML

OR

1. Goto WE19 and select radio button File as Template and specify the complete path and file in the parameter and click execute

2. In the next screen SAP will read the file and display the IDoc

3. Change the Sender and Receiver data in control record. Make sure you specify the XML File port as the the receiver port.

4. Now click the Standard Outbound Processing button.

This will generate the IDoc in XML format in the path that you specified in the XML port.

Hope this works ..

THANKS

ravi