Application Development and Automation 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: 
Read only

XML to Idoc

0 Likes
857

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.

3 REPLIES 3
Read only

Former Member
0 Likes
794

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

Read only

manishgupta03
Product and Topic Expert
Product and Topic Expert
0 Likes
794

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

Read only

0 Likes
794

Hi,

Thank you very much for your help,

Regards,

Javier Gómez