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: 

IDOC to XML

Former Member
0 Kudos

hi friends,

I wan to convert idoc to xml. I am using function module IDOC_XML_TRANSFORM but this fm only shows xml but there is no option to save it as xml.

Please give some suggestions.

Regards,

Brijesh...

3 REPLIES 3

Former Member
0 Kudos

Hi ,

Please use this link .

[Idoc to XML conversion|http://saptechnical.com/Tutorials/ALE/IDOCToXML/IDOCToXML.htm]

Please reward if useful.

Former Member
0 Kudos

You need to follow the following steps:

1. Create a port under type XML file: Give a physical directory path and Function module name as EDI_PATH_CREATE_CLIENT_DOCNUM. Make sure that the physical directory exists in AL11.

2. Define a partner profile for your message type with the port created above. Give this as Receiver port in the outbound parameters for the required message type.

3. In WE19, give the IDOC number which needs to be downloaded as XML

4. Execute it

5. Edit the control record and change the receiver port data and click on ok button.

6. Click on Standard outbound processing button in application toolbar.

7. It gives a pop-up message with the port details. Click ok in that pop-up.

8. Now the IDOC is saved as XML file in the physical directory mentioned in the port.

You can download this file using transaction CG3Y.

Regards,

Lakshmi.

Former Member
0 Kudos

Thanks, I had solved this issue by creating XML port and using transaction C3GY