2010 Apr 13 9:08 AM
Hi, Gurus, i have a question for you.
We need to know how we can pass a XML archive to an Idoc in SAP, someone have any idea to do this?
Many Thanks
J.G.
Hi, Gurus, i have a question for you.
We need to know how we can pass a XML archive to an Idoc in SAP, someone have any idea to do this?
Many Thanks
J.G.
2010 Apr 13 12:58 PM
place the xml file in application server. Use the function module "IDOC_XML_FROM_FILE" to convert xml to IDOC.
XML Must be compatible with the structure of IDOC.
Regards
Vinod
2010 Apr 13 2:32 PM
Hi,
You can do so by using the SPROXY transaction.
I have worked on the scenario where the xml input comes from the third party system and I posted the IDOC with the file data in SAP.
do get back if this scenario matches yours or you need more inputs.
You can also refer to the following link, it explains how you can fill xml data in an internal table.
Later you can loop on this table and fill the IDOC segments.
http://wiki.sdn.sap.com/wiki/display/ABAP/UploadXMLfiletointernal+table
Thanks,
Manish
2011 Jul 16 12:25 PM