2014 Feb 04 12:15 PM
Hi Folks,
Is there any way we can download an Idoc into XML apart from creating a XML port.
Raghav
2014 Feb 04 12:18 PM
Hi Raghavender,
This might help you:
http://scn.sap.com/thread/1673304
If you want to export an XML-file from your SAP System to your Computer, you can follow this tutorial:
http://wiki.scn.sap.com/wiki/pages/viewpage.action?pageId=153388639
Regards,
Niels
2014 Feb 04 12:35 PM
2014 Feb 04 12:39 PM
Hello Raghavender,
Try to use the below steps
1) Use FM "IDOC_READ_COMPLETELY" to read the Idoc data.
2) Use FM "SAP_CONVERT_TO_XML_FORMAT" to convert the internal table obtained in step1 into XML file.
Regards,
Thanga Prakash T
2014 Feb 04 1:48 PM
Hi All,
Thanks for your reply. I should have added to my question that I dont want a programmatic solution. Is there any standalone function module that can be used to get an XML.
I know of IDOC_XML_TRANSFORM FM which can do this. I can see the XML tags created in output but no option to download it in XML.
Raghav
2014 Feb 05 7:56 AM
The easiest way that I've found is to follow the tutorial underneath:
http://wiki.scn.sap.com/wiki/pages/viewpage.action?pageId=153388639
It doesn't involve any programming, you just have to follow the steps and copy the code they have written for you. This will create a program where you enter your iDoc number and exports an XML-file.
Hope this was helpfull.
Regards,
Niels
2016 Jul 13 8:30 PM
Hello,
You can use the FM "Out_Idoc_xml_Transform"-Just mention the Idoc number as 'docnum' and give the address and file name in 'out_file'. System will convert Idoc into XML format and it get stored.
Regards,
Soumya Chakraborty
2023 Mar 06 1:39 PM
2023 Aug 04 4:50 PM
2023 Aug 16 1:00 PM
Thank you. Worked like a charm, even on production where there were no rights for executing function modules.
2024 Oct 17 5:36 PM
You saved me! Thank you. Strange that this report is not more well known - and that it's such a hidden way to reach something so simple.